@graphrefly/graphrefly 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -17
- package/dist/compat/index.cjs +20 -10
- package/dist/compat/index.cjs.map +1 -0
- package/dist/compat/index.d.cts +1 -22
- package/dist/compat/index.d.ts +1 -22
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -0
- package/dist/compat/jotai/index.cjs +21 -1
- package/dist/compat/jotai/index.cjs.map +1 -0
- package/dist/compat/jotai/index.d.cts +1 -2
- package/dist/compat/jotai/index.d.ts +1 -2
- package/dist/compat/jotai/index.js +3 -1
- package/dist/compat/jotai/index.js.map +1 -0
- package/dist/compat/nanostores/index.cjs +21 -1
- package/dist/compat/nanostores/index.cjs.map +1 -0
- package/dist/compat/nanostores/index.d.cts +1 -2
- package/dist/compat/nanostores/index.d.ts +1 -2
- package/dist/compat/nanostores/index.js +3 -1
- package/dist/compat/nanostores/index.js.map +1 -0
- package/dist/compat/nestjs/index.cjs +20 -10
- package/dist/compat/nestjs/index.cjs.map +1 -0
- package/dist/compat/nestjs/index.d.cts +1 -13
- package/dist/compat/nestjs/index.d.ts +1 -13
- package/dist/compat/nestjs/index.js +3 -1
- package/dist/compat/nestjs/index.js.map +1 -0
- package/dist/compat/react/index.cjs +21 -1
- package/dist/compat/react/index.cjs.map +1 -0
- package/dist/compat/react/index.d.cts +1 -2
- package/dist/compat/react/index.d.ts +1 -2
- package/dist/compat/react/index.js +3 -1
- package/dist/compat/react/index.js.map +1 -0
- package/dist/compat/solid/index.cjs +21 -1
- package/dist/compat/solid/index.cjs.map +1 -0
- package/dist/compat/solid/index.d.cts +1 -2
- package/dist/compat/solid/index.d.ts +1 -2
- package/dist/compat/solid/index.js +3 -1
- package/dist/compat/solid/index.js.map +1 -0
- package/dist/compat/svelte/index.cjs +21 -1
- package/dist/compat/svelte/index.cjs.map +1 -0
- package/dist/compat/svelte/index.d.cts +1 -2
- package/dist/compat/svelte/index.d.ts +1 -2
- package/dist/compat/svelte/index.js +3 -1
- package/dist/compat/svelte/index.js.map +1 -0
- package/dist/compat/vue/index.cjs +21 -1
- package/dist/compat/vue/index.cjs.map +1 -0
- package/dist/compat/vue/index.d.cts +1 -3
- package/dist/compat/vue/index.d.ts +1 -3
- package/dist/compat/vue/index.js +3 -1
- package/dist/compat/vue/index.js.map +1 -0
- package/dist/compat/zustand/index.cjs +21 -3
- package/dist/compat/zustand/index.cjs.map +1 -0
- package/dist/compat/zustand/index.d.cts +1 -6
- package/dist/compat/zustand/index.d.ts +1 -6
- package/dist/compat/zustand/index.js +3 -1
- package/dist/compat/zustand/index.js.map +1 -0
- package/dist/core/index.cjs +21 -1
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +1 -3
- package/dist/core/index.d.ts +1 -3
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -0
- package/dist/extra/browser.cjs +21 -1
- package/dist/extra/browser.cjs.map +1 -0
- package/dist/extra/browser.d.cts +1 -4
- package/dist/extra/browser.d.ts +1 -4
- package/dist/extra/browser.js +3 -1
- package/dist/extra/browser.js.map +1 -0
- package/dist/extra/index.cjs +20 -19
- package/dist/extra/index.cjs.map +1 -0
- package/dist/extra/index.d.cts +1 -17
- package/dist/extra/index.d.ts +1 -17
- package/dist/extra/index.js +3 -1
- package/dist/extra/index.js.map +1 -0
- package/dist/extra/node.cjs +21 -2
- package/dist/extra/node.cjs.map +1 -0
- package/dist/extra/node.d.cts +1 -187
- package/dist/extra/node.d.ts +1 -187
- package/dist/extra/node.js +3 -2
- package/dist/extra/node.js.map +1 -0
- package/dist/extra/operators.cjs +21 -1
- package/dist/extra/operators.cjs.map +1 -0
- package/dist/extra/operators.d.cts +1 -958
- package/dist/extra/operators.d.ts +1 -958
- package/dist/extra/operators.js +3 -1
- package/dist/extra/operators.js.map +1 -0
- package/dist/extra/reactive.cjs +21 -1
- package/dist/extra/reactive.cjs.map +1 -0
- package/dist/extra/reactive.d.cts +1 -353
- package/dist/extra/reactive.d.ts +1 -353
- package/dist/extra/reactive.js +3 -1
- package/dist/extra/reactive.js.map +1 -0
- package/dist/extra/render/index.cjs +21 -5
- package/dist/extra/render/index.cjs.map +1 -0
- package/dist/extra/render/index.d.cts +1 -183
- package/dist/extra/render/index.d.ts +1 -183
- package/dist/extra/render/index.js +3 -1
- package/dist/extra/render/index.js.map +1 -0
- package/dist/extra/sources.cjs +21 -3
- package/dist/extra/sources.cjs.map +1 -0
- package/dist/extra/sources.d.cts +1 -584
- package/dist/extra/sources.d.ts +1 -584
- package/dist/extra/sources.js +3 -1
- package/dist/extra/sources.js.map +1 -0
- package/dist/extra/storage-browser.cjs +21 -1
- package/dist/extra/storage-browser.cjs.map +1 -0
- package/dist/extra/storage-browser.d.cts +1 -37
- package/dist/extra/storage-browser.d.ts +1 -37
- package/dist/extra/storage-browser.js +3 -1
- package/dist/extra/storage-browser.js.map +1 -0
- package/dist/extra/storage-core.cjs +21 -1
- package/dist/extra/storage-core.cjs.map +1 -0
- package/dist/extra/storage-core.d.cts +1 -28
- package/dist/extra/storage-core.d.ts +1 -28
- package/dist/extra/storage-core.js +3 -1
- package/dist/extra/storage-core.js.map +1 -0
- package/dist/extra/storage-node.cjs +20 -0
- package/dist/extra/storage-node.cjs.map +1 -0
- package/dist/extra/storage-node.d.cts +1 -2
- package/dist/extra/storage-node.d.ts +1 -2
- package/dist/extra/storage-node.js +3 -0
- package/dist/extra/storage-node.js.map +1 -0
- package/dist/extra/storage-tiers-browser.cjs +21 -1
- package/dist/extra/storage-tiers-browser.cjs.map +1 -0
- package/dist/extra/storage-tiers-browser.d.cts +1 -120
- package/dist/extra/storage-tiers-browser.d.ts +1 -120
- package/dist/extra/storage-tiers-browser.js +3 -1
- package/dist/extra/storage-tiers-browser.js.map +1 -0
- package/dist/extra/storage-tiers-node.cjs +21 -1
- package/dist/extra/storage-tiers-node.cjs.map +1 -0
- package/dist/extra/storage-tiers-node.d.cts +1 -210
- package/dist/extra/storage-tiers-node.d.ts +1 -210
- package/dist/extra/storage-tiers-node.js +3 -1
- package/dist/extra/storage-tiers-node.js.map +1 -0
- package/dist/extra/storage-tiers.cjs +21 -1
- package/dist/extra/storage-tiers.cjs.map +1 -0
- package/dist/extra/storage-tiers.d.cts +1 -412
- package/dist/extra/storage-tiers.d.ts +1 -412
- package/dist/extra/storage-tiers.js +3 -1
- package/dist/extra/storage-tiers.js.map +1 -0
- package/dist/extra/storage-wal.cjs +21 -0
- package/dist/extra/storage-wal.cjs.map +1 -0
- package/dist/extra/storage-wal.d.cts +1 -0
- package/dist/extra/storage-wal.d.ts +1 -0
- package/dist/extra/storage-wal.js +3 -0
- package/dist/extra/storage-wal.js.map +1 -0
- package/dist/graph/index.cjs +21 -7
- package/dist/graph/index.cjs.map +1 -0
- package/dist/graph/index.d.cts +1 -7
- package/dist/graph/index.d.ts +1 -7
- package/dist/graph/index.js +3 -1
- package/dist/graph/index.js.map +1 -0
- package/dist/index.cjs +20 -227
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +45 -95
- package/dist/index.d.ts +45 -95
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -0
- package/dist/patterns/ai/browser.cjs +20 -7
- package/dist/patterns/ai/browser.cjs.map +1 -0
- package/dist/patterns/ai/browser.d.cts +1 -127
- package/dist/patterns/ai/browser.d.ts +1 -127
- package/dist/patterns/ai/browser.js +3 -3
- package/dist/patterns/ai/browser.js.map +1 -0
- package/dist/patterns/ai/index.cjs +20 -73
- package/dist/patterns/ai/index.cjs.map +1 -0
- package/dist/patterns/ai/index.d.cts +1 -20
- package/dist/patterns/ai/index.d.ts +1 -20
- package/dist/patterns/ai/index.js +3 -1
- package/dist/patterns/ai/index.js.map +1 -0
- package/dist/patterns/ai/node.cjs +21 -1
- package/dist/patterns/ai/node.cjs.map +1 -0
- package/dist/patterns/ai/node.d.cts +1 -59
- package/dist/patterns/ai/node.d.ts +1 -59
- package/dist/patterns/ai/node.js +3 -1
- package/dist/patterns/ai/node.js.map +1 -0
- package/dist/patterns/cqrs/index.cjs +21 -3
- package/dist/patterns/cqrs/index.cjs.map +1 -0
- package/dist/patterns/cqrs/index.d.cts +1 -8
- package/dist/patterns/cqrs/index.d.ts +1 -8
- package/dist/patterns/cqrs/index.js +3 -1
- package/dist/patterns/cqrs/index.js.map +1 -0
- package/dist/patterns/demo-shell/index.cjs +21 -5
- package/dist/patterns/demo-shell/index.cjs.map +1 -0
- package/dist/patterns/demo-shell/index.d.cts +1 -7
- package/dist/patterns/demo-shell/index.d.ts +1 -7
- package/dist/patterns/demo-shell/index.js +3 -1
- package/dist/patterns/demo-shell/index.js.map +1 -0
- package/dist/patterns/domain-templates/index.cjs +21 -3
- package/dist/patterns/domain-templates/index.cjs.map +1 -0
- package/dist/patterns/domain-templates/index.d.cts +1 -6
- package/dist/patterns/domain-templates/index.d.ts +1 -6
- package/dist/patterns/domain-templates/index.js +3 -1
- package/dist/patterns/domain-templates/index.js.map +1 -0
- package/dist/patterns/graphspec/index.cjs +21 -86
- package/dist/patterns/graphspec/index.cjs.map +1 -0
- package/dist/patterns/graphspec/index.d.cts +1 -8
- package/dist/patterns/graphspec/index.d.ts +1 -8
- package/dist/patterns/graphspec/index.js +3 -1
- package/dist/patterns/graphspec/index.js.map +1 -0
- package/dist/patterns/harness/index.cjs +21 -48
- package/dist/patterns/harness/index.cjs.map +1 -0
- package/dist/patterns/harness/index.d.cts +1 -13
- package/dist/patterns/harness/index.d.ts +1 -13
- package/dist/patterns/harness/index.js +3 -1
- package/dist/patterns/harness/index.js.map +1 -0
- package/dist/patterns/inspect/index.cjs +21 -3
- package/dist/patterns/inspect/index.cjs.map +1 -0
- package/dist/patterns/inspect/index.d.cts +1 -9
- package/dist/patterns/inspect/index.d.ts +1 -9
- package/dist/patterns/inspect/index.js +3 -1
- package/dist/patterns/inspect/index.js.map +1 -0
- package/dist/patterns/job-queue/index.cjs +21 -3
- package/dist/patterns/job-queue/index.cjs.map +1 -0
- package/dist/patterns/job-queue/index.d.cts +1 -9
- package/dist/patterns/job-queue/index.d.ts +1 -9
- package/dist/patterns/job-queue/index.js +3 -1
- package/dist/patterns/job-queue/index.js.map +1 -0
- package/dist/patterns/memory/index.cjs +21 -3
- package/dist/patterns/memory/index.cjs.map +1 -0
- package/dist/patterns/memory/index.d.cts +1 -8
- package/dist/patterns/memory/index.d.ts +1 -8
- package/dist/patterns/memory/index.js +3 -1
- package/dist/patterns/memory/index.js.map +1 -0
- package/dist/patterns/messaging/index.cjs +21 -3
- package/dist/patterns/messaging/index.cjs.map +1 -0
- package/dist/patterns/messaging/index.d.cts +1 -7
- package/dist/patterns/messaging/index.d.ts +1 -7
- package/dist/patterns/messaging/index.js +3 -1
- package/dist/patterns/messaging/index.js.map +1 -0
- package/dist/patterns/orchestration/index.cjs +21 -3
- package/dist/patterns/orchestration/index.cjs.map +1 -0
- package/dist/patterns/orchestration/index.d.cts +1 -8
- package/dist/patterns/orchestration/index.d.ts +1 -8
- package/dist/patterns/orchestration/index.js +3 -1
- package/dist/patterns/orchestration/index.js.map +1 -0
- package/dist/patterns/process/index.cjs +21 -3
- package/dist/patterns/process/index.cjs.map +1 -0
- package/dist/patterns/process/index.d.cts +1 -10
- package/dist/patterns/process/index.d.ts +1 -10
- package/dist/patterns/process/index.js +3 -1
- package/dist/patterns/process/index.js.map +1 -0
- package/dist/patterns/reactive-layout/index.cjs +21 -4
- package/dist/patterns/reactive-layout/index.cjs.map +1 -0
- package/dist/patterns/reactive-layout/index.d.cts +1 -7
- package/dist/patterns/reactive-layout/index.d.ts +1 -7
- package/dist/patterns/reactive-layout/index.js +3 -1
- package/dist/patterns/reactive-layout/index.js.map +1 -0
- package/dist/patterns/reduction/index.cjs +21 -3
- package/dist/patterns/reduction/index.cjs.map +1 -0
- package/dist/patterns/reduction/index.d.cts +1 -6
- package/dist/patterns/reduction/index.d.ts +1 -6
- package/dist/patterns/reduction/index.js +3 -1
- package/dist/patterns/reduction/index.js.map +1 -0
- package/dist/patterns/surface/index.cjs +21 -13
- package/dist/patterns/surface/index.cjs.map +1 -0
- package/dist/patterns/surface/index.d.cts +1 -9
- package/dist/patterns/surface/index.d.ts +1 -9
- package/dist/patterns/surface/index.js +3 -1
- package/dist/patterns/surface/index.js.map +1 -0
- package/dist/patterns/topology-view/index.cjs +21 -0
- package/dist/patterns/topology-view/index.cjs.map +1 -0
- package/dist/patterns/topology-view/index.d.cts +1 -0
- package/dist/patterns/topology-view/index.d.ts +1 -0
- package/dist/patterns/topology-view/index.js +3 -0
- package/dist/patterns/topology-view/index.js.map +1 -0
- package/dist/testing/index.cjs +21 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +608 -584
- package/dist/backoff-HPZMEZNF.js +0 -1
- package/dist/cascading-BglDkMdX.d.cts +0 -199
- package/dist/cascading-MFgxu7Yo.d.ts +0 -199
- package/dist/chunk-2T7U5EU6.js +0 -1
- package/dist/chunk-3G5U5QNE.js +0 -5
- package/dist/chunk-4VVTGLXJ.js +0 -1
- package/dist/chunk-5M4CCMMD.js +0 -45
- package/dist/chunk-5QDBSZBV.js +0 -1
- package/dist/chunk-5XJ6B66J.js +0 -1
- package/dist/chunk-6QZNQS5B.js +0 -1
- package/dist/chunk-6X7AFUJV.js +0 -9
- package/dist/chunk-7K6PWTDQ.js +0 -1
- package/dist/chunk-7LIAPXJB.js +0 -1
- package/dist/chunk-7WPU3UHQ.js +0 -1
- package/dist/chunk-A5WCQ5NO.js +0 -1
- package/dist/chunk-APPIWSGD.js +0 -84
- package/dist/chunk-BEZWM2SY.js +0 -1
- package/dist/chunk-C72GO4IZ.js +0 -1
- package/dist/chunk-CB676TKJ.js +0 -1
- package/dist/chunk-CE6TI2TL.js +0 -1
- package/dist/chunk-CE72X3WO.js +0 -1
- package/dist/chunk-CK2E7BTU.js +0 -1
- package/dist/chunk-CLVB32RD.js +0 -1
- package/dist/chunk-CRVT7D2P.js +0 -1
- package/dist/chunk-D5RFJOZ2.js +0 -1
- package/dist/chunk-D7GPHKFH.js +0 -1
- package/dist/chunk-DHRX7JX4.js +0 -2
- package/dist/chunk-ESMPEKEV.js +0 -1
- package/dist/chunk-F672GV32.js +0 -1
- package/dist/chunk-FZMYDOWV.js +0 -1
- package/dist/chunk-GHBWHMRZ.js +0 -1
- package/dist/chunk-GLERH466.js +0 -1
- package/dist/chunk-GPW2V3RE.js +0 -1
- package/dist/chunk-HIDYF36O.js +0 -1
- package/dist/chunk-HITNVN6B.js +0 -3
- package/dist/chunk-HY4DJBA7.js +0 -5
- package/dist/chunk-KZIEYVXN.js +0 -1
- package/dist/chunk-L6NSJVJZ.js +0 -1
- package/dist/chunk-N4MQX6JU.js +0 -18
- package/dist/chunk-N7FHEL4D.js +0 -1
- package/dist/chunk-NTEURFZH.js +0 -1
- package/dist/chunk-OIVP6KFV.js +0 -1
- package/dist/chunk-OPHBU3LG.js +0 -1
- package/dist/chunk-OYQOZP2F.js +0 -5
- package/dist/chunk-PTZK576G.js +0 -1
- package/dist/chunk-QYADASLV.js +0 -1
- package/dist/chunk-ST7UXLWR.js +0 -1
- package/dist/chunk-SVY7VUYU.js +0 -1
- package/dist/chunk-TK3NWWD4.js +0 -1
- package/dist/chunk-TSOYJ743.js +0 -1
- package/dist/chunk-UNGSTR4X.js +0 -61
- package/dist/chunk-VIMF6LGM.js +0 -1
- package/dist/chunk-VJLMUKOI.js +0 -1
- package/dist/chunk-VN6RDSK2.js +0 -1
- package/dist/chunk-VV4N5P64.js +0 -1
- package/dist/chunk-W3I423PS.js +0 -1
- package/dist/chunk-WJR24TAG.js +0 -1
- package/dist/chunk-XTGKMHSW.js +0 -1
- package/dist/chunk-YBB7ZGTY.js +0 -1
- package/dist/chunk-Z4NPUARF.js +0 -1
- package/dist/chunk-ZGNQRPDT.js +0 -1
- package/dist/chunk-ZKPSFFKU.js +0 -1
- package/dist/chunk-ZLV5SQSX.js +0 -1
- package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
- package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
- package/dist/decay-BvOWTZ00.d.ts +0 -112
- package/dist/decay-CFlLvXUT.d.cts +0 -112
- package/dist/fallback-74oxi34l.d.cts +0 -250
- package/dist/fallback-DUyyBTBK.d.ts +0 -250
- package/dist/graph-CWvEUQAq.d.cts +0 -1861
- package/dist/graph-D9LFnda9.d.ts +0 -1861
- package/dist/index-5k1T6jl0.d.cts +0 -121
- package/dist/index-9770hRuQ.d.cts +0 -779
- package/dist/index-B-_tFaqV.d.cts +0 -468
- package/dist/index-B17QddL1.d.cts +0 -374
- package/dist/index-B1F8Enjf.d.ts +0 -704
- package/dist/index-B5S8ULbU.d.ts +0 -515
- package/dist/index-B8YnZpIR.d.ts +0 -102
- package/dist/index-BHskSB8v.d.ts +0 -3413
- package/dist/index-BIYAkbAi.d.cts +0 -26
- package/dist/index-BQSKmbuG.d.cts +0 -127
- package/dist/index-BaQaY_IQ.d.cts +0 -231
- package/dist/index-BmZXHqkE.d.ts +0 -36
- package/dist/index-BoJ5JHxI.d.ts +0 -557
- package/dist/index-BocU7pqs.d.ts +0 -779
- package/dist/index-BrPrLl4e.d.cts +0 -86
- package/dist/index-BxNs2HB9.d.cts +0 -1858
- package/dist/index-Byu-OpX_.d.ts +0 -113
- package/dist/index-C1T3d7V-.d.cts +0 -704
- package/dist/index-C5ri2Axc.d.cts +0 -301
- package/dist/index-C5stwKcw.d.cts +0 -44
- package/dist/index-C9l6OEBL.d.ts +0 -26
- package/dist/index-CBBLl_rc.d.ts +0 -127
- package/dist/index-CBGUK09R.d.ts +0 -754
- package/dist/index-CC-AvFTy.d.cts +0 -557
- package/dist/index-CJF1URuX.d.ts +0 -121
- package/dist/index-CK29LV56.d.cts +0 -34
- package/dist/index-CMh5Rz1y.d.ts +0 -385
- package/dist/index-CPQlGA29.d.ts +0 -34
- package/dist/index-CR8QpwX8.d.ts +0 -2680
- package/dist/index-CS0LTlB8.d.cts +0 -385
- package/dist/index-CSOmP7xT.d.cts +0 -291
- package/dist/index-CYq8vAyV.d.ts +0 -291
- package/dist/index-CZ3r5Rxp.d.ts +0 -374
- package/dist/index-CasX6Pfq.d.cts +0 -358
- package/dist/index-CdAlHFEt.d.ts +0 -44
- package/dist/index-CdTelp1M.d.ts +0 -202
- package/dist/index-CeFiHtAg.d.ts +0 -468
- package/dist/index-Cj3WohTd.d.cts +0 -202
- package/dist/index-Climxqsu.d.cts +0 -754
- package/dist/index-Co7uli2l.d.cts +0 -3413
- package/dist/index-CviRnE4K.d.ts +0 -45
- package/dist/index-Cwv0KWcU.d.cts +0 -102
- package/dist/index-CzLVrjxn.d.ts +0 -231
- package/dist/index-D0aciIex.d.cts +0 -209
- package/dist/index-DHen9Klo.d.ts +0 -1858
- package/dist/index-DV_1YuVk.d.cts +0 -221
- package/dist/index-Dc4AYqrJ.d.cts +0 -515
- package/dist/index-Dgl1HpPn.d.ts +0 -86
- package/dist/index-DisjX8a-.d.ts +0 -221
- package/dist/index-UPSiS-X7.d.cts +0 -2680
- package/dist/index-Yq60JP3s.d.ts +0 -209
- package/dist/index-ZVQhLa2i.d.cts +0 -37
- package/dist/index-_6ODbuOu.d.cts +0 -45
- package/dist/index-hcDJ8PSI.d.cts +0 -36
- package/dist/index-nozs3fFC.d.ts +0 -301
- package/dist/index-p09KSrTN.d.ts +0 -358
- package/dist/index-sqkqlb1p.d.ts +0 -37
- package/dist/index-tRCxuAXF.d.cts +0 -113
- package/dist/node-kK3CvTrR.d.cts +0 -1347
- package/dist/node-kK3CvTrR.d.ts +0 -1347
- package/dist/observable-DWjNfLvC.d.ts +0 -36
- package/dist/observable-e3eiPPFy.d.cts +0 -36
- package/dist/pipeline-graph-CIKhynsF.d.cts +0 -142
- package/dist/pipeline-graph-Sgj0gCwn.d.ts +0 -142
- package/dist/reactive-layout-DOTs9P3X.d.ts +0 -183
- package/dist/reactive-layout-DgctbqZo.d.cts +0 -183
- package/dist/reactive-log-BKALbfal.d.ts +0 -223
- package/dist/reactive-log-DIGdYqQ6.d.cts +0 -223
- package/dist/reactive-map-CEFGp8TK.d.cts +0 -296
- package/dist/reactive-map-DS_SIAxv.d.ts +0 -296
- package/dist/resilience-6LYQJAC5.js +0 -1
- package/dist/sugar-DQjFmVqb.d.cts +0 -399
- package/dist/sugar-fhLIE7TT.d.ts +0 -399
- package/dist/topology-tree-Bcz27hpF.d.cts +0 -25
- package/dist/topology-tree-xvaD0fOX.d.ts +0 -25
- package/dist/types-C0_yquda.d.cts +0 -442
- package/dist/types-CWFysE9E.d.ts +0 -442
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-kK3CvTrR.cjs';
|
|
2
|
-
import { G as Graph, a as GraphOptions } from './graph-CWvEUQAq.cjs';
|
|
3
|
-
import { a as ReactiveLogBundle } from './reactive-log-DIGdYqQ6.cjs';
|
|
4
|
-
import { AppendLogStorageTier } from './extra/storage-tiers.cjs';
|
|
5
|
-
|
|
6
|
-
type TopicOptions = {
|
|
7
|
-
graph?: GraphOptions;
|
|
8
|
-
/** Bounded retention; default 1024 per cross-cutting policy (Audit 2/4). */
|
|
9
|
-
retainedLimit?: number;
|
|
10
|
-
};
|
|
11
|
-
declare class TopicGraph<T> extends Graph {
|
|
12
|
-
private readonly _log;
|
|
13
|
-
private readonly _publishImpl;
|
|
14
|
-
readonly events: Node<readonly T[]>;
|
|
15
|
-
/**
|
|
16
|
-
* Most recently published value, or `null` when the topic has no entries
|
|
17
|
-
* yet. Spec §5.12 reserves `undefined` as the protocol-internal "never
|
|
18
|
-
* sent DATA" sentinel — `null` is the idiomatic "empty / no value" signal
|
|
19
|
-
* for domain nodes. F7.
|
|
20
|
-
*
|
|
21
|
-
* **Caveat when `T` itself includes `null`** (e.g., `topic<number | null>`):
|
|
22
|
-
* `latest === null` is ambiguous — it could mean "no publish yet" OR "a
|
|
23
|
-
* `null` value was published". Use {@link hasLatest} to disambiguate, or
|
|
24
|
-
* observe {@link events} directly and track length yourself.
|
|
25
|
-
*/
|
|
26
|
-
readonly latest: Node<T | null>;
|
|
27
|
-
/**
|
|
28
|
-
* Reactive `true` once the topic has at least one published entry.
|
|
29
|
-
* Disambiguates "`null` never published" from "`null` was published" when
|
|
30
|
-
* `T` includes `null`.
|
|
31
|
-
*/
|
|
32
|
-
readonly hasLatest: Node<boolean>;
|
|
33
|
-
constructor(name: string, opts?: TopicOptions);
|
|
34
|
-
publish(value: T): void;
|
|
35
|
-
/**
|
|
36
|
-
* Wire one or more append-log storage tiers (Audit 4). Each tier receives
|
|
37
|
-
* appended events per wave; rollback honors the wave-as-transaction model.
|
|
38
|
-
*
|
|
39
|
-
* Named `attachEventStorage` (not `attachStorage`) to avoid colliding with
|
|
40
|
-
* the inherited {@link Graph.attachSnapshotStorage} which takes the
|
|
41
|
-
* snapshot-based `StorageTier[]` shape.
|
|
42
|
-
*
|
|
43
|
-
* @returns Disposer.
|
|
44
|
-
*/
|
|
45
|
-
attachEventStorage(tiers: readonly AppendLogStorageTier<T>[]): () => void;
|
|
46
|
-
retained(): readonly T[];
|
|
47
|
-
/** Internal log bundle — used by TopicBridgeGraph for `attach`. */
|
|
48
|
-
get _logBundle(): ReactiveLogBundle<T>;
|
|
49
|
-
}
|
|
50
|
-
type SubscriptionOptions = {
|
|
51
|
-
graph?: GraphOptions;
|
|
52
|
-
/**
|
|
53
|
-
* Starting cursor position.
|
|
54
|
-
* @deprecated Use `from` instead.
|
|
55
|
-
*/
|
|
56
|
-
cursor?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Starting position for the subscription.
|
|
59
|
-
* - `"retained"` (default) — cursor starts at 0; consumer sees all retained history.
|
|
60
|
-
* - `"now"` — cursor starts at current topic length; consumer ignores history.
|
|
61
|
-
* - `number` — explicit cursor position.
|
|
62
|
-
*/
|
|
63
|
-
from?: "now" | "retained" | number;
|
|
64
|
-
/**
|
|
65
|
-
* When this signal node emits DATA, the subscription auto-advances cursor
|
|
66
|
-
* to current `available.length`. Useful for "ack everything when X happens"
|
|
67
|
-
* patterns. The reactive edge `advanceOn → cursor` is visible in `explain()`.
|
|
68
|
-
*/
|
|
69
|
-
advanceOn?: Node<unknown>;
|
|
70
|
-
};
|
|
71
|
-
/** Result of {@link SubscriptionGraph.pullAndAck}. */
|
|
72
|
-
type PullAndAckResult<T> = {
|
|
73
|
-
items: readonly T[];
|
|
74
|
-
cursor: number;
|
|
75
|
-
};
|
|
76
|
-
declare class SubscriptionGraph<T> extends Graph {
|
|
77
|
-
readonly cursor: Node<number>;
|
|
78
|
-
readonly available: Node<readonly T[]>;
|
|
79
|
-
/**
|
|
80
|
-
* Reference to the upstream topic graph. Intentionally NOT mounted
|
|
81
|
-
* under this subscription: a subscription is a VIEW over an
|
|
82
|
-
* externally-owned topic. Double-mounting (e.g. hub-owned topic +
|
|
83
|
-
* sub-mount here) would make either-side teardown leave the other
|
|
84
|
-
* holding a dead reference. Node-level `derived([topicEvents], …)`
|
|
85
|
-
* still wires the data dependency across graph boundaries. D1(e).
|
|
86
|
-
*/
|
|
87
|
-
readonly topic: TopicGraph<T>;
|
|
88
|
-
private _disposed;
|
|
89
|
-
private readonly _ackImpl;
|
|
90
|
-
private readonly _pullAndAckImpl;
|
|
91
|
-
constructor(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions);
|
|
92
|
-
ack(count?: number): number;
|
|
93
|
-
pull(limit?: number): readonly T[];
|
|
94
|
-
/**
|
|
95
|
-
* Atomic pull-and-acknowledge. Returns `{ items, cursor }` where `cursor`
|
|
96
|
-
* is the new cursor position after advancing. Under single-threaded JS the
|
|
97
|
-
* snapshot and advance are atomic; PY callers use a per-subscription Lock.
|
|
98
|
-
*
|
|
99
|
-
* Replaces `pull(limit, { ack: true })`.
|
|
100
|
-
*/
|
|
101
|
-
pullAndAck(limit?: number): PullAndAckResult<T>;
|
|
102
|
-
/**
|
|
103
|
-
* Release internal subscriptions and mark the subscription torn-down.
|
|
104
|
-
* Subsequent `pull`, `pullAndAck`, `ack` return empty / current cursor.
|
|
105
|
-
* Emits COMPLETE on `cursor` so derived consumers (e.g. `available`) see
|
|
106
|
-
* the termination signal. Also drains `addDisposer` callbacks (including
|
|
107
|
-
* the `keepalive(advancePump)` subscription) so no keepalive leak occurs.
|
|
108
|
-
*/
|
|
109
|
-
dispose(): void;
|
|
110
|
-
}
|
|
111
|
-
type TopicBridgeOptions<TIn, TOut> = {
|
|
112
|
-
graph?: GraphOptions;
|
|
113
|
-
cursor?: number;
|
|
114
|
-
maxPerPump?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Optional transform/filter applied to each item before republishing.
|
|
117
|
-
*
|
|
118
|
-
* **At-most-once with silent drop:** when `map` returns `undefined`, the
|
|
119
|
-
* input is consumed from the source cursor but NOT republished. Filtered
|
|
120
|
-
* items are not retained for retry. If you need filter-with-retry
|
|
121
|
-
* semantics, do the filtering in a downstream subscription on the bridged
|
|
122
|
-
* output rather than in the `map` function.
|
|
123
|
-
*/
|
|
124
|
-
map?: (value: TIn) => TOut | undefined;
|
|
125
|
-
};
|
|
126
|
-
declare class TopicBridgeGraph<TIn, TOut = TIn> extends Graph {
|
|
127
|
-
private readonly _sourceSub;
|
|
128
|
-
readonly bridgedCount: Node<number>;
|
|
129
|
-
/**
|
|
130
|
-
* Emits each mapped batch as DATA — gives downstream observers a reactive
|
|
131
|
-
* stream of bridged values. Also the link target for `target._log.attach`.
|
|
132
|
-
*/
|
|
133
|
-
readonly output: Node<readonly TOut[]>;
|
|
134
|
-
constructor(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Private pure data structure managing a named set of {@link TopicGraph}
|
|
138
|
-
* instances. Extracted from {@link MessagingHubGraph} for separation of
|
|
139
|
-
* concerns (B.2 Unit 14 lock: D — split into TopicRegistry + facade).
|
|
140
|
-
*
|
|
141
|
-
* Reusable if other domain consumers (e.g. cqrs.eventLogs) want a shared
|
|
142
|
-
* topic registry later.
|
|
143
|
-
*
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
declare class TopicRegistry {
|
|
147
|
-
private readonly _map;
|
|
148
|
-
/** Reactive monotonic version counter. Advances on topic create/remove. */
|
|
149
|
-
readonly version: Node<number>;
|
|
150
|
-
constructor(versionNode: Node<number>);
|
|
151
|
-
get size(): number;
|
|
152
|
-
has(name: string): boolean;
|
|
153
|
-
get<T>(name: string): TopicGraph<T> | undefined;
|
|
154
|
-
set<T>(name: string, t: TopicGraph<T>): void;
|
|
155
|
-
delete(name: string): boolean;
|
|
156
|
-
keys(): IterableIterator<string>;
|
|
157
|
-
}
|
|
158
|
-
type MessagingHubOptions = {
|
|
159
|
-
graph?: GraphOptions;
|
|
160
|
-
/**
|
|
161
|
-
* Default `TopicOptions` applied to every topic created via `topic(name)`
|
|
162
|
-
* without explicit options. Per-call opts override. Default: `{}`
|
|
163
|
-
* (unbounded retention per topic unless `retainedLimit` is set per call).
|
|
164
|
-
*/
|
|
165
|
-
defaultTopicOptions?: TopicOptions;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* Lazy Pulsar-inspired topic registry. Manages a named set of {@link TopicGraph}
|
|
169
|
-
* instances with retention + cursor semantics. Topics are created on first
|
|
170
|
-
* access; `removeTopic(name)` unmounts and tears down via {@link Graph.remove}.
|
|
171
|
-
*
|
|
172
|
-
* Internally delegates to {@link TopicRegistry} for topic map management
|
|
173
|
-
* (B.2 Unit 14 lock: D facade split).
|
|
174
|
-
*
|
|
175
|
-
* **Relationship to `pubsub()` in `src/extra/pubsub.ts`:** `pubsub` is a
|
|
176
|
-
* lightweight last-value state hub (no retention, no cursors). `MessagingHubGraph`
|
|
177
|
-
* is the full messaging hub — retained message logs, cursor-based subscriptions,
|
|
178
|
-
* and pattern-layer lifecycle management.
|
|
179
|
-
*
|
|
180
|
-
* @category patterns
|
|
181
|
-
*/
|
|
182
|
-
declare class MessagingHubGraph extends Graph {
|
|
183
|
-
private readonly _registry;
|
|
184
|
-
/** Reactive monotonic version counter — advances on topic create/remove. */
|
|
185
|
-
readonly version: Node<number>;
|
|
186
|
-
private readonly _defaultTopicOptions;
|
|
187
|
-
private readonly _removeTopicImpl;
|
|
188
|
-
constructor(name: string, opts?: MessagingHubOptions);
|
|
189
|
-
/** Number of topics currently in the hub. */
|
|
190
|
-
get size(): number;
|
|
191
|
-
/** Checks topic existence without creating. */
|
|
192
|
-
has(name: string): boolean;
|
|
193
|
-
/** Iterator over topic names. */
|
|
194
|
-
topicNames(): IterableIterator<string>;
|
|
195
|
-
/**
|
|
196
|
-
* Returns the {@link TopicGraph} for `name`, creating lazily on first call.
|
|
197
|
-
* Subsequent calls with the same name return the same instance (options on
|
|
198
|
-
* repeat calls are ignored — the topic is already configured).
|
|
199
|
-
*/
|
|
200
|
-
topic<T = unknown>(name: string, opts?: TopicOptions): TopicGraph<T>;
|
|
201
|
-
/**
|
|
202
|
-
* Publishes a value to the topic, lazily creating it on first publish.
|
|
203
|
-
*
|
|
204
|
-
* **Late-subscriber caveat:** the topic is created lazily, so subscribers
|
|
205
|
-
* that attach AFTER a publish only see the retained window (governed by
|
|
206
|
-
* `retainedLimit` on `TopicOptions` / `defaultTopicOptions`). If
|
|
207
|
-
* `retainedLimit === 0` is set explicitly, early publishes are
|
|
208
|
-
* effectively dropped — prefer an unset `retainedLimit` (unbounded
|
|
209
|
-
* retention) or subscribe before publishing when late-subscribers matter.
|
|
210
|
-
*/
|
|
211
|
-
publish<T = unknown>(name: string, value: T): void;
|
|
212
|
-
/**
|
|
213
|
-
* Bulk publish — issues all publishes inside one outer batch. New topics
|
|
214
|
-
* are created on demand. No-op if `entries` yields nothing.
|
|
215
|
-
*
|
|
216
|
-
* **Iterable consumption (F6):** `entries` is consumed once (single-pass)
|
|
217
|
-
* INSIDE the batch frame. If the iterator throws mid-way, the batch is
|
|
218
|
-
* discarded and NO publishes are visible to subscribers (all-or-nothing).
|
|
219
|
-
* Pass an array or `Set` for multi-shot callers.
|
|
220
|
-
*/
|
|
221
|
-
publishMany(entries: Iterable<[string, unknown]>): void;
|
|
222
|
-
/**
|
|
223
|
-
* Creates a {@link SubscriptionGraph} over a named topic. The topic is
|
|
224
|
-
* lazily created if missing. Subscription lifecycle is owned by the caller —
|
|
225
|
-
* the hub does NOT mount the subscription.
|
|
226
|
-
*
|
|
227
|
-
* @param subName - Local name for the subscription graph.
|
|
228
|
-
* @param topicName - Hub topic to subscribe to.
|
|
229
|
-
* @param opts - `SubscriptionOptions` (initial cursor, etc.).
|
|
230
|
-
*/
|
|
231
|
-
subscribe<T = unknown>(subName: string, topicName: string, opts?: SubscriptionOptions): SubscriptionGraph<T>;
|
|
232
|
-
/**
|
|
233
|
-
* Unmounts and tears down the topic's graph. Returns `true` if the topic
|
|
234
|
-
* existed. Subscribers receive `TEARDOWN` via {@link Graph.remove}.
|
|
235
|
-
*
|
|
236
|
-
* **Closure-state caveat:** the registry mutation (`_registry.delete`) and
|
|
237
|
-
* version bump happen in a `try/finally`, so registry/version converge to
|
|
238
|
-
* a consistent state even when {@link Graph.remove} throws. `lightMutation`
|
|
239
|
-
* does not roll back this mutation on throw — `Map.delete` on closure
|
|
240
|
-
* state is invisible to any batch frame. The pre-existing try/finally is
|
|
241
|
-
* load-bearing for that invariant.
|
|
242
|
-
*/
|
|
243
|
-
removeTopic(name: string): boolean;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Creates a Pulsar-inspired topic graph (append-only retained stream + latest value).
|
|
247
|
-
*/
|
|
248
|
-
declare function topic<T>(name: string, opts?: TopicOptions): TopicGraph<T>;
|
|
249
|
-
/**
|
|
250
|
-
* Creates a lazy Pulsar-inspired messaging hub. Topics are created on first access
|
|
251
|
-
* via `hub.topic(name)`; `hub.publish(name, value)` shortcuts through the registry.
|
|
252
|
-
*
|
|
253
|
-
* @example
|
|
254
|
-
* ```ts
|
|
255
|
-
* import { messagingHub } from "@graphrefly/graphrefly/patterns/messaging";
|
|
256
|
-
*
|
|
257
|
-
* const hub = messagingHub("main", { defaultTopicOptions: { retainedLimit: 256 } });
|
|
258
|
-
* hub.publish("orders", { id: 1 });
|
|
259
|
-
* hub.publishMany([["shipments", { id: 1 }], ["orders", { id: 2 }]]);
|
|
260
|
-
* const sub = hub.subscribe("orders-worker", "orders", { cursor: 0 });
|
|
261
|
-
* ```
|
|
262
|
-
*/
|
|
263
|
-
declare function messagingHub(name: string, opts?: MessagingHubOptions): MessagingHubGraph;
|
|
264
|
-
/**
|
|
265
|
-
* Creates a cursor-based subscription graph over a topic.
|
|
266
|
-
*/
|
|
267
|
-
declare function subscription<T>(name: string, topicGraph: TopicGraph<T>, opts?: SubscriptionOptions): SubscriptionGraph<T>;
|
|
268
|
-
/**
|
|
269
|
-
* Creates an autonomous cursor-based topic relay graph.
|
|
270
|
-
*
|
|
271
|
-
* When `opts.map` is provided, items where `map` returns `undefined` are
|
|
272
|
-
* consumed from the source cursor but NOT republished (at-most-once with
|
|
273
|
-
* silent drop). For filter-with-retry semantics, apply the filter in a
|
|
274
|
-
* downstream subscription on the bridge's `output` node instead.
|
|
275
|
-
*/
|
|
276
|
-
declare function topicBridge<TIn, TOut = TIn>(name: string, sourceTopic: TopicGraph<TIn>, targetTopic: TopicGraph<TOut>, opts?: TopicBridgeOptions<TIn, TOut>): TopicBridgeGraph<TIn, TOut>;
|
|
277
|
-
|
|
278
|
-
type index_MessagingHubGraph = MessagingHubGraph;
|
|
279
|
-
declare const index_MessagingHubGraph: typeof MessagingHubGraph;
|
|
280
|
-
type index_MessagingHubOptions = MessagingHubOptions;
|
|
281
|
-
type index_PullAndAckResult<T> = PullAndAckResult<T>;
|
|
282
|
-
type index_SubscriptionGraph<T> = SubscriptionGraph<T>;
|
|
283
|
-
declare const index_SubscriptionGraph: typeof SubscriptionGraph;
|
|
284
|
-
type index_SubscriptionOptions = SubscriptionOptions;
|
|
285
|
-
type index_TopicBridgeGraph<TIn, TOut = TIn> = TopicBridgeGraph<TIn, TOut>;
|
|
286
|
-
declare const index_TopicBridgeGraph: typeof TopicBridgeGraph;
|
|
287
|
-
type index_TopicBridgeOptions<TIn, TOut> = TopicBridgeOptions<TIn, TOut>;
|
|
288
|
-
type index_TopicGraph<T> = TopicGraph<T>;
|
|
289
|
-
declare const index_TopicGraph: typeof TopicGraph;
|
|
290
|
-
type index_TopicOptions = TopicOptions;
|
|
291
|
-
type index_TopicRegistry = TopicRegistry;
|
|
292
|
-
declare const index_TopicRegistry: typeof TopicRegistry;
|
|
293
|
-
declare const index_messagingHub: typeof messagingHub;
|
|
294
|
-
declare const index_subscription: typeof subscription;
|
|
295
|
-
declare const index_topic: typeof topic;
|
|
296
|
-
declare const index_topicBridge: typeof topicBridge;
|
|
297
|
-
declare namespace index {
|
|
298
|
-
export { index_MessagingHubGraph as MessagingHubGraph, type index_MessagingHubOptions as MessagingHubOptions, type index_PullAndAckResult as PullAndAckResult, index_SubscriptionGraph as SubscriptionGraph, type index_SubscriptionOptions as SubscriptionOptions, index_TopicBridgeGraph as TopicBridgeGraph, type index_TopicBridgeOptions as TopicBridgeOptions, index_TopicGraph as TopicGraph, type index_TopicOptions as TopicOptions, index_TopicRegistry as TopicRegistry, index_messagingHub as messagingHub, index_subscription as subscription, index_topic as topic, index_topicBridge as topicBridge };
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export { MessagingHubGraph as M, type PullAndAckResult as P, SubscriptionGraph as S, TopicGraph as T, type MessagingHubOptions as a, type SubscriptionOptions as b, TopicBridgeGraph as c, type TopicBridgeOptions as d, type TopicOptions as e, TopicRegistry as f, topicBridge as g, index as i, messagingHub as m, subscription as s, topic as t };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-kK3CvTrR.cjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Subscribe to a read-only `Node<T>` as a React value. Re-renders on node value settlement.
|
|
5
|
-
* Subscription lifecycle is tied to React mount/unmount (not node terminal messages).
|
|
6
|
-
*
|
|
7
|
-
* @param node - Any `Node<T>`.
|
|
8
|
-
* @returns `T | undefined` — the current node value, kept in sync via `useSyncExternalStore`.
|
|
9
|
-
*/
|
|
10
|
-
declare function useSubscribe<T>(node: Node<T>): T | undefined | null;
|
|
11
|
-
/**
|
|
12
|
-
* Bind a writable `Node<T>` as a React `[value, setter]` tuple.
|
|
13
|
-
* Setting the value always pushes `[[DIRTY], [DATA, value]]`, including `value === undefined`.
|
|
14
|
-
* Subscription lifecycle is tied to React mount/unmount (not node terminal messages).
|
|
15
|
-
*
|
|
16
|
-
* @param node - A `Node<T>` (e.g. state node).
|
|
17
|
-
* @returns `[T | undefined, (value: T) => void]` — current value and setter function.
|
|
18
|
-
*/
|
|
19
|
-
declare function useStore<T>(node: Node<T>): [T | undefined | null, (value: T) => void];
|
|
20
|
-
/** Maps a key to an object of nodes. Used by `useSubscribeRecord`. */
|
|
21
|
-
type NodeFactory<K, R extends Record<string, any>> = (key: K) => {
|
|
22
|
-
[P in keyof R]: Node<R[P]>;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Subscribe to a dynamic set of keyed node records.
|
|
26
|
-
* Re-subscribes all per-key fields whenever `keysNode` changes.
|
|
27
|
-
* Key re-sync is gated to settled batches (`messageTier >= 3`) to avoid DIRTY-phase churn.
|
|
28
|
-
* Guaranteed to clean up strictly with React hook lifecycle, utilizing no global mappings.
|
|
29
|
-
*
|
|
30
|
-
* @param keysNode - Node of current keys (e.g. node IDs)
|
|
31
|
-
* @param factory - Function returning `{ [field]: Node<V> }` for each key.
|
|
32
|
-
* @returns `Record<K, R>` — snapshot of resolved values for all keys.
|
|
33
|
-
*/
|
|
34
|
-
declare function useSubscribeRecord<K extends string, R extends Record<string, any>>(keysNode: Node<K[]>, factory: NodeFactory<K, R>): Record<K, R>;
|
|
35
|
-
|
|
36
|
-
type index_NodeFactory<K, R extends Record<string, any>> = NodeFactory<K, R>;
|
|
37
|
-
declare const index_useStore: typeof useStore;
|
|
38
|
-
declare const index_useSubscribe: typeof useSubscribe;
|
|
39
|
-
declare const index_useSubscribeRecord: typeof useSubscribeRecord;
|
|
40
|
-
declare namespace index {
|
|
41
|
-
export { type index_NodeFactory as NodeFactory, index_useStore as useStore, index_useSubscribe as useSubscribe, index_useSubscribeRecord as useSubscribeRecord };
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { type NodeFactory as N, useSubscribe as a, useSubscribeRecord as b, index as i, useStore as u };
|
package/dist/index-C9l6OEBL.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { C as CatchOptions, a as ClassifyResult, D as Decision, b as DecisionAction, G as GateController, c as GateOptions, P as PipelineGraph, S as StepRef, T as TerminalCause, d as decisionKeyOf, p as pipelineGraph } from './pipeline-graph-Sgj0gCwn.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Orchestration patterns (roadmap §4.1).
|
|
5
|
-
*
|
|
6
|
-
* Domain-layer helpers that build workflow shapes on top of core + extra primitives.
|
|
7
|
-
* Exported under the `patterns.orchestration` namespace to avoid collisions with
|
|
8
|
-
* Phase 2 operator names (for example `gate`, `forEach`).
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
declare const index_CatchOptions: typeof CatchOptions;
|
|
12
|
-
declare const index_ClassifyResult: typeof ClassifyResult;
|
|
13
|
-
declare const index_Decision: typeof Decision;
|
|
14
|
-
declare const index_DecisionAction: typeof DecisionAction;
|
|
15
|
-
declare const index_GateController: typeof GateController;
|
|
16
|
-
declare const index_GateOptions: typeof GateOptions;
|
|
17
|
-
declare const index_PipelineGraph: typeof PipelineGraph;
|
|
18
|
-
declare const index_StepRef: typeof StepRef;
|
|
19
|
-
declare const index_TerminalCause: typeof TerminalCause;
|
|
20
|
-
declare const index_decisionKeyOf: typeof decisionKeyOf;
|
|
21
|
-
declare const index_pipelineGraph: typeof pipelineGraph;
|
|
22
|
-
declare namespace index {
|
|
23
|
-
export { index_CatchOptions as CatchOptions, index_ClassifyResult as ClassifyResult, index_Decision as Decision, index_DecisionAction as DecisionAction, index_GateController as GateController, index_GateOptions as GateOptions, index_PipelineGraph as PipelineGraph, index_StepRef as StepRef, index_TerminalCause as TerminalCause, index_decisionKeyOf as decisionKeyOf, index_pipelineGraph as pipelineGraph };
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { index as i };
|
package/dist/index-CBBLl_rc.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { N as Node } from './node-kK3CvTrR.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A Nanostores-compatible atom.
|
|
5
|
-
*
|
|
6
|
-
* @category compat
|
|
7
|
-
*/
|
|
8
|
-
interface NanoAtom<T> {
|
|
9
|
-
/** Get current value. */
|
|
10
|
-
get(): T;
|
|
11
|
-
/** Set a new value (writable atoms only). */
|
|
12
|
-
set(value: T): void;
|
|
13
|
-
/** Subscribe to value changes. Callback receives the new value.
|
|
14
|
-
* Returns unsubscribe function. Called immediately with current value. */
|
|
15
|
-
subscribe(cb: (value: T) => void): () => void;
|
|
16
|
-
/** Listen to value changes (no immediate call). Returns unsubscribe. */
|
|
17
|
-
listen(cb: (value: T) => void): () => void;
|
|
18
|
-
/** The underlying GraphReFly node. */
|
|
19
|
-
readonly _node: Node<T>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* A Nanostores-compatible computed store.
|
|
23
|
-
*
|
|
24
|
-
* @category compat
|
|
25
|
-
*/
|
|
26
|
-
interface NanoComputed<T> {
|
|
27
|
-
/** Get current value. */
|
|
28
|
-
get(): T;
|
|
29
|
-
/** Subscribe to value changes. Called immediately with current value.
|
|
30
|
-
* Returns unsubscribe function. */
|
|
31
|
-
subscribe(cb: (value: T) => void): () => void;
|
|
32
|
-
/** Listen to value changes (no immediate call). Returns unsubscribe. */
|
|
33
|
-
listen(cb: (value: T) => void): () => void;
|
|
34
|
-
/** The underlying GraphReFly node. */
|
|
35
|
-
readonly _node: Node<T>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* A Nanostores-compatible map.
|
|
39
|
-
*
|
|
40
|
-
* @category compat
|
|
41
|
-
*/
|
|
42
|
-
interface NanoMap<T extends Record<string, unknown>> extends NanoAtom<T> {
|
|
43
|
-
/** Set a single key. */
|
|
44
|
-
setKey<K extends keyof T>(key: K, value: T[K]): void;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Creates a nanostores-compatible atom.
|
|
48
|
-
*
|
|
49
|
-
* @param initial - Initial value.
|
|
50
|
-
* @returns `NanoAtom<T>`
|
|
51
|
-
*
|
|
52
|
-
* @category compat
|
|
53
|
-
*/
|
|
54
|
-
declare function atom<T>(initial: T): NanoAtom<T>;
|
|
55
|
-
/**
|
|
56
|
-
* Creates a nanostores-compatible computed store.
|
|
57
|
-
*
|
|
58
|
-
* @param stores - One or more atoms/computed stores.
|
|
59
|
-
* @param fn - Compute function.
|
|
60
|
-
* @returns `NanoComputed<T>`
|
|
61
|
-
*
|
|
62
|
-
* @category compat
|
|
63
|
-
*/
|
|
64
|
-
declare function computed<T, A>(storeA: NanoAtom<A> | NanoComputed<A>, fn: (a: A) => T): NanoComputed<T>;
|
|
65
|
-
declare function computed<T, A, B>(stores: [NanoAtom<A> | NanoComputed<A>, NanoAtom<B> | NanoComputed<B>], fn: (a: A, b: B) => T): NanoComputed<T>;
|
|
66
|
-
declare function computed<T, A, B, C>(stores: [
|
|
67
|
-
NanoAtom<A> | NanoComputed<A>,
|
|
68
|
-
NanoAtom<B> | NanoComputed<B>,
|
|
69
|
-
NanoAtom<C> | NanoComputed<C>
|
|
70
|
-
], fn: (a: A, b: B, c: C) => T): NanoComputed<T>;
|
|
71
|
-
/**
|
|
72
|
-
* Creates a nanostores-compatible map.
|
|
73
|
-
*
|
|
74
|
-
* @param initial - Initial object value.
|
|
75
|
-
* @returns `NanoMap<T>`
|
|
76
|
-
*
|
|
77
|
-
* @category compat
|
|
78
|
-
*/
|
|
79
|
-
declare function map<T extends Record<string, unknown>>(initial: T): NanoMap<T>;
|
|
80
|
-
/**
|
|
81
|
-
* Returns the current value of the store.
|
|
82
|
-
*
|
|
83
|
-
* @category compat
|
|
84
|
-
*/
|
|
85
|
-
declare function getValue<T>(store: NanoAtom<T> | NanoComputed<T>): T;
|
|
86
|
-
/**
|
|
87
|
-
* Adds a listener for the store start (first listener connected).
|
|
88
|
-
*
|
|
89
|
-
* @category compat
|
|
90
|
-
*/
|
|
91
|
-
declare function onStart(store: NanoAtom<any> | NanoComputed<any>, cb: () => void): void;
|
|
92
|
-
/**
|
|
93
|
-
* Adds a listener for the store stop (last listener disconnected).
|
|
94
|
-
*
|
|
95
|
-
* @category compat
|
|
96
|
-
*/
|
|
97
|
-
declare function onStop(store: NanoAtom<any> | NanoComputed<any>, cb: () => void): void;
|
|
98
|
-
/**
|
|
99
|
-
* Adds a listener for the store mount (first listener connected).
|
|
100
|
-
*
|
|
101
|
-
* @returns A cleanup function called when the last listener is removed.
|
|
102
|
-
* @category compat
|
|
103
|
-
*/
|
|
104
|
-
declare function onMount(store: NanoAtom<any> | NanoComputed<any>, cb: () => (() => void) | undefined): void;
|
|
105
|
-
/**
|
|
106
|
-
* Batches multiple store updates.
|
|
107
|
-
*
|
|
108
|
-
* @category compat
|
|
109
|
-
*/
|
|
110
|
-
declare function action<Args extends any[], Return>(_store: NanoAtom<any> | NanoComputed<any>, _name: string, fn: (...args: Args) => Return): (...args: Args) => Return;
|
|
111
|
-
|
|
112
|
-
type index_NanoAtom<T> = NanoAtom<T>;
|
|
113
|
-
type index_NanoComputed<T> = NanoComputed<T>;
|
|
114
|
-
type index_NanoMap<T extends Record<string, unknown>> = NanoMap<T>;
|
|
115
|
-
declare const index_action: typeof action;
|
|
116
|
-
declare const index_atom: typeof atom;
|
|
117
|
-
declare const index_computed: typeof computed;
|
|
118
|
-
declare const index_getValue: typeof getValue;
|
|
119
|
-
declare const index_map: typeof map;
|
|
120
|
-
declare const index_onMount: typeof onMount;
|
|
121
|
-
declare const index_onStart: typeof onStart;
|
|
122
|
-
declare const index_onStop: typeof onStop;
|
|
123
|
-
declare namespace index {
|
|
124
|
-
export { type index_NanoAtom as NanoAtom, type index_NanoComputed as NanoComputed, type index_NanoMap as NanoMap, index_action as action, index_atom as atom, index_computed as computed, index_getValue as getValue, index_map as map, index_onMount as onMount, index_onStart as onStart, index_onStop as onStop };
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export { type NanoAtom as N, type NanoComputed as a, type NanoMap as b, action as c, atom as d, computed as e, onStart as f, getValue as g, onStop as h, index as i, map as m, onMount as o };
|