@logixjs/core 0.0.1 → 1.0.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/LICENSE +201 -0
- package/dist/{Action-mqVvtEHt.d.ts → Action-DYl88bwj.d.ts} +1 -1
- package/dist/{Action-BkRHy2vg.d.cts → Action-DkxsI_DK.d.cts} +1 -1
- package/dist/Action.cjs.map +1 -1
- package/dist/Action.d.cts +1 -1
- package/dist/Action.d.ts +1 -1
- package/dist/Action.js +2 -2
- package/dist/{Actions-AsQ07yTP.d.cts → Actions-Dicm7jdc.d.cts} +2 -2
- package/dist/{Actions-AsQ07yTP.d.ts → Actions-Dicm7jdc.d.ts} +2 -2
- package/dist/Actions.cjs.map +1 -1
- package/dist/Actions.d.cts +1 -1
- package/dist/Actions.d.ts +1 -1
- package/dist/Actions.js +1 -1
- package/dist/{Bound-BN1DQ_lM.d.ts → Bound-1OJLzVIS.d.ts} +2 -2
- package/dist/{Bound-BPIfH9SS.d.cts → Bound-BMLrtQ1V.d.cts} +2 -2
- package/dist/Bound.cjs +1737 -399
- package/dist/Bound.cjs.map +1 -1
- package/dist/Bound.d.cts +5 -5
- package/dist/Bound.d.ts +5 -5
- package/dist/Bound.js +19 -17
- package/dist/{Debug-B5q5Bkzx.d.ts → Debug-DKrWP5H1.d.ts} +40 -22
- package/dist/{Debug-Bq8Sqjcr.d.cts → Debug-hIT44XsY.d.cts} +40 -22
- package/dist/Debug.cjs +1348 -318
- package/dist/Debug.cjs.map +1 -1
- package/dist/Debug.d.cts +12 -11
- package/dist/Debug.d.ts +12 -11
- package/dist/Debug.js +20 -11
- package/dist/EffectOp.cjs +15 -6
- package/dist/EffectOp.cjs.map +1 -1
- package/dist/EffectOp.js +3 -3
- package/dist/Env.cjs +772 -6
- package/dist/Env.cjs.map +1 -1
- package/dist/Env.js +5 -2
- package/dist/ExternalStore-DqJKKRJ4.d.ts +61 -0
- package/dist/ExternalStore-JC-gAgEI.d.cts +61 -0
- package/dist/ExternalStore.cjs +774 -0
- package/dist/ExternalStore.cjs.map +1 -0
- package/dist/ExternalStore.d.cts +8 -0
- package/dist/ExternalStore.d.ts +8 -0
- package/dist/ExternalStore.js +19 -0
- package/dist/ExternalStore.js.map +1 -0
- package/dist/{Flow-BhpjE22E.d.ts → Flow-CZmXRDqp.d.cts} +13 -4
- package/dist/{Flow-1fZT8MpX.d.cts → Flow-DIVDxz7R.d.ts} +13 -4
- package/dist/Flow.cjs +765 -148
- package/dist/Flow.cjs.map +1 -1
- package/dist/Flow.d.cts +6 -6
- package/dist/Flow.d.ts +6 -6
- package/dist/Flow.js +9 -8
- package/dist/{Handle-D_cLW1Z3.d.ts → Handle-Bo6cAFut.d.ts} +1 -1
- package/dist/{Handle-D8D1zPb_.d.cts → Handle-CfDvSqN7.d.cts} +1 -1
- package/dist/Handle.d.cts +5 -5
- package/dist/Handle.d.ts +5 -5
- package/dist/{Kernel-8kC-jOda.d.cts → Kernel-CuXBF9S_.d.cts} +16 -7
- package/dist/{Kernel-CnGE1Fyk.d.ts → Kernel-D9guNwRL.d.ts} +16 -7
- package/dist/Kernel.cjs +814 -26
- package/dist/Kernel.cjs.map +1 -1
- package/dist/Kernel.d.cts +13 -12
- package/dist/Kernel.d.ts +13 -12
- package/dist/Kernel.js +7 -4
- package/dist/{Link-Db7975nU.d.ts → Link-CUM0yUCH.d.ts} +10 -3
- package/dist/{Link-fX8x1eCK.d.cts → Link-NAfR6uGD.d.cts} +10 -3
- package/dist/Link.cjs +1294 -121
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.d.cts +5 -5
- package/dist/Link.d.ts +5 -5
- package/dist/Link.js +37 -29
- package/dist/{Logic-DRh4sDZj.d.cts → Logic-09VQpIj3.d.cts} +7 -4
- package/dist/{Logic-BRjEMr-W.d.ts → Logic-DKg7ghGy.d.ts} +7 -4
- package/dist/Logic.cjs +2 -1
- package/dist/Logic.cjs.map +1 -1
- package/dist/Logic.d.cts +5 -5
- package/dist/Logic.d.ts +5 -5
- package/dist/Logic.js +1 -1
- package/dist/{MatchBuilder-CJk5oCkR.d.cts → MatchBuilder-CsW5jgrL.d.ts} +1 -1
- package/dist/{MatchBuilder-0QOc-nlU.d.ts → MatchBuilder-Dksk07F4.d.cts} +1 -1
- package/dist/MatchBuilder.cjs +2 -2
- package/dist/MatchBuilder.cjs.map +1 -1
- package/dist/MatchBuilder.d.cts +6 -6
- package/dist/MatchBuilder.d.ts +6 -6
- package/dist/MatchBuilder.js +2 -2
- package/dist/Middleware-D8tUDLv_.d.cts +100 -0
- package/dist/Middleware-DS7CbTTN.d.ts +100 -0
- package/dist/Middleware.cjs +678 -58
- package/dist/Middleware.cjs.map +1 -1
- package/dist/Middleware.d.cts +2 -86
- package/dist/Middleware.d.ts +2 -86
- package/dist/Middleware.js +15 -12
- package/dist/{Module-DnzluX2J.d.ts → Module-B_Cntyms.d.ts} +54 -25
- package/dist/{Module-B_0xRDMR.d.cts → Module-CmNOVXzf.d.cts} +54 -25
- package/dist/Module.cjs +9331 -3317
- package/dist/Module.cjs.map +1 -1
- package/dist/Module.d.cts +7 -6
- package/dist/Module.d.ts +7 -6
- package/dist/Module.js +39 -31
- package/dist/ModuleTag-CGho_InD.d.ts +113 -0
- package/dist/ModuleTag-CITb8L_G.d.cts +113 -0
- package/dist/ModuleTag.cjs +7248 -2847
- package/dist/ModuleTag.cjs.map +1 -1
- package/dist/ModuleTag.d.cts +6 -6
- package/dist/ModuleTag.d.ts +6 -6
- package/dist/ModuleTag.js +35 -29
- package/dist/Observability-Bdhnx2Dv.d.ts +385 -0
- package/dist/Observability-DXGAFBIT.d.cts +385 -0
- package/dist/Observability.cjs +5093 -1556
- package/dist/Observability.cjs.map +1 -1
- package/dist/Observability.d.cts +6 -7
- package/dist/Observability.d.ts +6 -7
- package/dist/Observability.js +28 -23
- package/dist/{Platform-CHX8o-U4.d.ts → Platform-B4s8tg6C.d.cts} +4 -5
- package/dist/{Platform-C49Pv956.d.cts → Platform-BV_0MW7g.d.cts} +5 -2
- package/dist/{Platform-C49Pv956.d.ts → Platform-BV_0MW7g.d.ts} +5 -2
- package/dist/{Platform-CVlv0xLQ.d.cts → Platform-W0Mefy_e.d.ts} +4 -5
- package/dist/Platform.cjs +2 -1
- package/dist/Platform.cjs.map +1 -1
- package/dist/Platform.d.cts +2 -3
- package/dist/Platform.d.ts +2 -3
- package/dist/Platform.js +2 -2
- package/dist/{Process-CM9xbMdP.d.ts → Process-CO8G7HO9.d.cts} +30 -5
- package/dist/{Process-mL8fHDSB.d.cts → Process-Cyf6VNDR.d.ts} +30 -5
- package/dist/Process.cjs +1288 -120
- package/dist/Process.cjs.map +1 -1
- package/dist/Process.d.cts +6 -6
- package/dist/Process.d.ts +6 -6
- package/dist/Process.js +34 -26
- package/dist/ReadQuery-C_or5nLC.d.ts +128 -0
- package/dist/ReadQuery-DXLzCE0E.d.cts +614 -0
- package/dist/ReadQuery-DXLzCE0E.d.ts +614 -0
- package/dist/ReadQuery-Yve1lmUo.d.cts +128 -0
- package/dist/ReadQuery.cjs +290 -5
- package/dist/ReadQuery.cjs.map +1 -1
- package/dist/ReadQuery.d.cts +3 -2
- package/dist/ReadQuery.d.ts +3 -2
- package/dist/ReadQuery.js +23 -5
- package/dist/{Reflection-CQnKwPXj.d.ts → Reflection-B2Xi1e4Q.d.ts} +89 -7
- package/dist/{Reflection-Kabo1mlU.d.cts → Reflection-DNB4V4_e.d.cts} +89 -7
- package/dist/Reflection.cjs +3227 -1617
- package/dist/Reflection.cjs.map +1 -1
- package/dist/Reflection.d.cts +17 -15
- package/dist/Reflection.d.ts +17 -15
- package/dist/Reflection.js +33 -25
- package/dist/{Resource-Dy1xD_DG.d.cts → Resource-pKvQQ4x5.d.cts} +3 -3
- package/dist/{Resource-Dy1xD_DG.d.ts → Resource-pKvQQ4x5.d.ts} +3 -3
- package/dist/Resource.cjs +781 -15
- package/dist/Resource.cjs.map +1 -1
- package/dist/Resource.d.cts +1 -1
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +6 -3
- package/dist/{Root-7ADUMk4t.d.cts → Root-CCVuFHB6.d.cts} +3 -3
- package/dist/{Root-7ADUMk4t.d.ts → Root-CCVuFHB6.d.ts} +3 -3
- package/dist/Root.cjs +786 -20
- package/dist/Root.cjs.map +1 -1
- package/dist/Root.d.cts +2 -2
- package/dist/Root.d.ts +2 -2
- package/dist/Root.js +7 -3
- package/dist/{Runtime-CtyzZG4i.d.ts → Runtime-CRmvwK4I.d.ts} +70 -14
- package/dist/{Runtime-B-aL-f29.d.cts → Runtime-C_wJM9mN.d.cts} +70 -14
- package/dist/Runtime.cjs +4942 -1601
- package/dist/Runtime.cjs.map +1 -1
- package/dist/Runtime.d.cts +17 -15
- package/dist/Runtime.d.ts +17 -15
- package/dist/Runtime.js +44 -32
- package/dist/{ScopeRegistry-D1owDNSm.d.cts → ScopeRegistry-BhYzqWri.d.cts} +6 -6
- package/dist/{ScopeRegistry-D1owDNSm.d.ts → ScopeRegistry-BhYzqWri.d.ts} +6 -6
- package/dist/ScopeRegistry.cjs +776 -10
- package/dist/ScopeRegistry.cjs.map +1 -1
- package/dist/ScopeRegistry.d.cts +1 -1
- package/dist/ScopeRegistry.d.ts +1 -1
- package/dist/ScopeRegistry.js +6 -3
- package/dist/{State-CU50R26M.d.cts → State-rNFsFPTl.d.cts} +2 -2
- package/dist/{State-CU50R26M.d.ts → State-rNFsFPTl.d.ts} +2 -2
- package/dist/State.cjs.map +1 -1
- package/dist/State.d.cts +1 -1
- package/dist/State.d.ts +1 -1
- package/dist/State.js +1 -1
- package/dist/{StateTrait-BGsZghTz.d.ts → StateTrait-CijdwNb6.d.ts} +25 -8
- package/dist/{StateTrait-OWhbj12c.d.cts → StateTrait-Dltto6PU.d.cts} +25 -8
- package/dist/StateTrait.cjs +1890 -528
- package/dist/StateTrait.cjs.map +1 -1
- package/dist/StateTrait.d.cts +9 -7
- package/dist/StateTrait.d.ts +9 -7
- package/dist/StateTrait.js +18 -14
- package/dist/{TraitLifecycle-CwV5WPFX.d.cts → TraitLifecycle-BKzDqzLu.d.cts} +2 -2
- package/dist/{TraitLifecycle-LdIWmKlg.d.ts → TraitLifecycle-Cvo94uDB.d.ts} +2 -2
- package/dist/TraitLifecycle.cjs +630 -67
- package/dist/TraitLifecycle.cjs.map +1 -1
- package/dist/TraitLifecycle.d.cts +6 -6
- package/dist/TraitLifecycle.d.ts +6 -6
- package/dist/TraitLifecycle.js +8 -7
- package/dist/Workflow-C_OWr4dV.d.ts +415 -0
- package/dist/Workflow-DmydkHO8.d.cts +415 -0
- package/dist/Workflow.cjs +3150 -0
- package/dist/Workflow.cjs.map +1 -0
- package/dist/Workflow.d.cts +7 -0
- package/dist/Workflow.d.ts +7 -0
- package/dist/Workflow.js +58 -0
- package/dist/Workflow.js.map +1 -0
- package/dist/{action-DiMDD_0v.d.cts → action-BQxjPFEw.d.cts} +5 -5
- package/dist/{action-DiMDD_0v.d.ts → action-BQxjPFEw.d.ts} +5 -5
- package/dist/chunk-2XRLXDWR.js +276 -0
- package/dist/chunk-2XRLXDWR.js.map +1 -0
- package/dist/chunk-3L6QGFMM.js +701 -0
- package/dist/chunk-3L6QGFMM.js.map +1 -0
- package/dist/{chunk-GMPEOUP2.js → chunk-4MZ7BT3R.js} +2 -2
- package/dist/chunk-4MZ7BT3R.js.map +1 -0
- package/dist/{chunk-3IYZ5IGG.js → chunk-5WKUGEBY.js} +2 -2
- package/dist/{chunk-3RMKLXHX.js → chunk-63ZQ5RIN.js} +2 -2
- package/dist/{chunk-M3WTHJHJ.js → chunk-67DIEA53.js} +385 -148
- package/dist/chunk-67DIEA53.js.map +1 -0
- package/dist/{chunk-YS3AZQ2G.js → chunk-6HFAW2MH.js} +1 -1
- package/dist/chunk-6HFAW2MH.js.map +1 -0
- package/dist/{chunk-EY4NZKDR.js → chunk-6Y2TKCNY.js} +2 -2
- package/dist/{chunk-76WT3HOR.js → chunk-6YZOXFPQ.js} +25 -24
- package/dist/chunk-6YZOXFPQ.js.map +1 -0
- package/dist/{chunk-G5ZBFPNU.js → chunk-A2RQOJC7.js} +2 -2
- package/dist/{chunk-AUIR5O6W.js → chunk-AFSB6NKM.js} +13 -19
- package/dist/chunk-AFSB6NKM.js.map +1 -0
- package/dist/{chunk-JCXGZRMU.js → chunk-AO4JEOKD.js} +22 -23
- package/dist/chunk-AO4JEOKD.js.map +1 -0
- package/dist/{chunk-TAAPQVZN.js → chunk-AYELIQXR.js} +2 -2
- package/dist/{chunk-QMM6O4CD.js → chunk-BLHZW7DG.js} +15 -3
- package/dist/{chunk-QMM6O4CD.js.map → chunk-BLHZW7DG.js.map} +1 -1
- package/dist/{chunk-TQOBJYDP.js → chunk-CD4N74YC.js} +1 -1
- package/dist/chunk-CD4N74YC.js.map +1 -0
- package/dist/{chunk-ANLBCBDC.js → chunk-CGE2HBTH.js} +11 -11
- package/dist/chunk-CGE2HBTH.js.map +1 -0
- package/dist/{chunk-OFADUJWJ.js → chunk-CYYSQMLO.js} +5 -5
- package/dist/chunk-CYYSQMLO.js.map +1 -0
- package/dist/{chunk-66ALHVEX.js → chunk-EB46EYI7.js} +3 -3
- package/dist/{chunk-NZJKFF45.js → chunk-EKCDHWRK.js} +4 -4
- package/dist/chunk-EKCDHWRK.js.map +1 -0
- package/dist/{chunk-BABLDP24.js → chunk-EPQFNJU3.js} +152 -7
- package/dist/chunk-EPQFNJU3.js.map +1 -0
- package/dist/{chunk-OGWBVHB3.js → chunk-ESR6HGOY.js} +73 -14
- package/dist/chunk-ESR6HGOY.js.map +1 -0
- package/dist/{chunk-NBD3KUOZ.js → chunk-F6RP62H3.js} +150 -98
- package/dist/chunk-F6RP62H3.js.map +1 -0
- package/dist/chunk-FBYW3QDI.js +252 -0
- package/dist/chunk-FBYW3QDI.js.map +1 -0
- package/dist/{chunk-IPF7E66P.js → chunk-FYAODKVP.js} +2 -2
- package/dist/chunk-GNEN7NKO.js +908 -0
- package/dist/chunk-GNEN7NKO.js.map +1 -0
- package/dist/chunk-GWSM4KLB.js +763 -0
- package/dist/chunk-GWSM4KLB.js.map +1 -0
- package/dist/{chunk-4SO6JMZL.js → chunk-HDMXCUZL.js} +1 -1
- package/dist/chunk-HDMXCUZL.js.map +1 -0
- package/dist/{chunk-ZFY7U2FR.js → chunk-HJM5Y5NU.js} +43 -3
- package/dist/chunk-HJM5Y5NU.js.map +1 -0
- package/dist/{chunk-ZGDVUPTM.js → chunk-IOZ3VKPK.js} +129 -68
- package/dist/chunk-IOZ3VKPK.js.map +1 -0
- package/dist/{chunk-PYOE4VSI.js → chunk-IVXSVHO4.js} +303 -247
- package/dist/chunk-IVXSVHO4.js.map +1 -0
- package/dist/chunk-J3CWXIPV.js +242 -0
- package/dist/chunk-J3CWXIPV.js.map +1 -0
- package/dist/chunk-K6JQW266.js +42 -0
- package/dist/chunk-K6JQW266.js.map +1 -0
- package/dist/chunk-KMZYQF6Q.js +202 -0
- package/dist/chunk-KMZYQF6Q.js.map +1 -0
- package/dist/{chunk-JWOYLO27.js → chunk-LPPZDFTD.js} +22 -12
- package/dist/chunk-LPPZDFTD.js.map +1 -0
- package/dist/{chunk-PAYXCY6A.js → chunk-MYB2B5WX.js} +997 -576
- package/dist/chunk-MYB2B5WX.js.map +1 -0
- package/dist/chunk-MYKNINNN.js +228 -0
- package/dist/chunk-MYKNINNN.js.map +1 -0
- package/dist/chunk-NSQIRMVF.js +27 -0
- package/dist/{chunk-QCHIQWAJ.js.map → chunk-NSQIRMVF.js.map} +1 -1
- package/dist/chunk-NUDBM4MM.js +30 -0
- package/dist/chunk-NUDBM4MM.js.map +1 -0
- package/dist/chunk-NZMWWDAY.js +23 -0
- package/dist/chunk-NZMWWDAY.js.map +1 -0
- package/dist/{chunk-RNFE3ML2.js → chunk-OCUV2Y25.js} +4 -3
- package/dist/chunk-OCUV2Y25.js.map +1 -0
- package/dist/chunk-P4ZJOQA7.js +271 -0
- package/dist/chunk-P4ZJOQA7.js.map +1 -0
- package/dist/chunk-P6C5EZ3D.js +342 -0
- package/dist/chunk-P6C5EZ3D.js.map +1 -0
- package/dist/{chunk-CW6T36TN.js → chunk-PBD7BJUN.js} +62 -4
- package/dist/chunk-PBD7BJUN.js.map +1 -0
- package/dist/chunk-PBIUCQY3.js +696 -0
- package/dist/chunk-PBIUCQY3.js.map +1 -0
- package/dist/chunk-PD6YECQH.js +845 -0
- package/dist/chunk-PD6YECQH.js.map +1 -0
- package/dist/{chunk-M7IYCTJV.js → chunk-R4LFQGP3.js} +2 -2
- package/dist/chunk-RHJIGDUE.js +21 -0
- package/dist/chunk-RHJIGDUE.js.map +1 -0
- package/dist/{chunk-KP7MUZNX.js → chunk-RLXO27MW.js} +30 -8
- package/dist/chunk-RLXO27MW.js.map +1 -0
- package/dist/{chunk-DFNM3WX2.js → chunk-S44BEV4B.js} +168 -45
- package/dist/chunk-S44BEV4B.js.map +1 -0
- package/dist/chunk-S4S5N4BJ.js +1461 -0
- package/dist/chunk-S4S5N4BJ.js.map +1 -0
- package/dist/{chunk-BZ2SHDN2.js → chunk-SGTRAXXX.js} +3 -3
- package/dist/chunk-SGTRAXXX.js.map +1 -0
- package/dist/{chunk-M2RGJPXX.js → chunk-SJAE5PB5.js} +3 -3
- package/dist/{chunk-JGIWG6SR.js → chunk-SNPNHU3H.js} +3937 -1776
- package/dist/chunk-SNPNHU3H.js.map +1 -0
- package/dist/{chunk-IHVBV5C2.js → chunk-SOOBFXRR.js} +94 -71
- package/dist/chunk-SOOBFXRR.js.map +1 -0
- package/dist/{chunk-ZDTRWK5F.js → chunk-TAHFWKS6.js} +2 -2
- package/dist/chunk-UEFFTVPY.js +9 -0
- package/dist/chunk-UEFFTVPY.js.map +1 -0
- package/dist/{chunk-24VULZ7A.js → chunk-UR5BXLBP.js} +3 -3
- package/dist/chunk-UR5BXLBP.js.map +1 -0
- package/dist/{chunk-DMBALCE2.js → chunk-V2SBGVDO.js} +471 -186
- package/dist/chunk-V2SBGVDO.js.map +1 -0
- package/dist/chunk-VJLWD47W.js +23 -0
- package/dist/chunk-VJLWD47W.js.map +1 -0
- package/dist/{chunk-4CQAV7YB.js → chunk-W647DX5Z.js} +2 -2
- package/dist/{chunk-THATMZXD.js → chunk-WFIIU3YZ.js} +2 -2
- package/dist/{chunk-THATMZXD.js.map → chunk-WFIIU3YZ.js.map} +1 -1
- package/dist/chunk-YZDJMAKL.js +82 -0
- package/dist/chunk-YZDJMAKL.js.map +1 -0
- package/dist/{chunk-3TMODYZV.js → chunk-Z5XH6VHY.js} +5 -5
- package/dist/chunk-Z5XH6VHY.js.map +1 -0
- package/dist/{chunk-BE3HW4FY.js → chunk-ZBBMZMA6.js} +377 -170
- package/dist/chunk-ZBBMZMA6.js.map +1 -0
- package/dist/index.cjs +21224 -11714
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +195 -49
- package/dist/index.d.ts +195 -49
- package/dist/index.js +150 -74
- package/dist/index.js.map +1 -1
- package/dist/{ir-BMP7yxJJ.d.cts → ir-BSosEwc8.d.cts} +1 -1
- package/dist/{ir-DUOz6H-5.d.ts → ir-D-uqwL_4.d.ts} +1 -1
- package/dist/{module-B8CBqIZ_.d.cts → module-Ds4tarcI.d.cts} +230 -140
- package/dist/{module-k7m3txak.d.ts → module-Zd1Gn-Nj.d.ts} +230 -140
- package/package.json +20 -4
- package/dist/ModuleTag-C8FHY_sY.d.ts +0 -93
- package/dist/ModuleTag-EGbgBMpZ.d.cts +0 -93
- package/dist/Observability-COqEvp2C.d.cts +0 -713
- package/dist/Observability-cY4kLn0S.d.ts +0 -713
- package/dist/ReadQuery-BlMwhe-F.d.ts +0 -30
- package/dist/ReadQuery-CL5XlXts.d.cts +0 -30
- package/dist/ReadQuery-SinbStGF.d.cts +0 -38
- package/dist/ReadQuery-SinbStGF.d.ts +0 -38
- package/dist/chunk-24VULZ7A.js.map +0 -1
- package/dist/chunk-3QMIVH35.js +0 -43
- package/dist/chunk-3QMIVH35.js.map +0 -1
- package/dist/chunk-3TMODYZV.js.map +0 -1
- package/dist/chunk-4SO6JMZL.js.map +0 -1
- package/dist/chunk-76WT3HOR.js.map +0 -1
- package/dist/chunk-ANLBCBDC.js.map +0 -1
- package/dist/chunk-AUIR5O6W.js.map +0 -1
- package/dist/chunk-BABLDP24.js.map +0 -1
- package/dist/chunk-BE3HW4FY.js.map +0 -1
- package/dist/chunk-BZ2SHDN2.js.map +0 -1
- package/dist/chunk-CW6T36TN.js.map +0 -1
- package/dist/chunk-DFNM3WX2.js.map +0 -1
- package/dist/chunk-DMBALCE2.js.map +0 -1
- package/dist/chunk-EGK3KN7B.js +0 -406
- package/dist/chunk-EGK3KN7B.js.map +0 -1
- package/dist/chunk-GMPEOUP2.js.map +0 -1
- package/dist/chunk-IHVBV5C2.js.map +0 -1
- package/dist/chunk-JCXGZRMU.js.map +0 -1
- package/dist/chunk-JGIWG6SR.js.map +0 -1
- package/dist/chunk-JWOYLO27.js.map +0 -1
- package/dist/chunk-KIXAU3GM.js +0 -137
- package/dist/chunk-KIXAU3GM.js.map +0 -1
- package/dist/chunk-KL5ACTCT.js +0 -8
- package/dist/chunk-KL5ACTCT.js.map +0 -1
- package/dist/chunk-KP7MUZNX.js.map +0 -1
- package/dist/chunk-M3BFQ7HK.js +0 -13
- package/dist/chunk-M3BFQ7HK.js.map +0 -1
- package/dist/chunk-M3WTHJHJ.js.map +0 -1
- package/dist/chunk-NBD3KUOZ.js.map +0 -1
- package/dist/chunk-NQZ2OSGR.js +0 -151
- package/dist/chunk-NQZ2OSGR.js.map +0 -1
- package/dist/chunk-NZJKFF45.js.map +0 -1
- package/dist/chunk-OFADUJWJ.js.map +0 -1
- package/dist/chunk-OGWBVHB3.js.map +0 -1
- package/dist/chunk-PAYXCY6A.js.map +0 -1
- package/dist/chunk-PYOE4VSI.js.map +0 -1
- package/dist/chunk-QCHIQWAJ.js +0 -21
- package/dist/chunk-RNFE3ML2.js.map +0 -1
- package/dist/chunk-TKZ7MEIA.js +0 -27
- package/dist/chunk-TKZ7MEIA.js.map +0 -1
- package/dist/chunk-TQOBJYDP.js.map +0 -1
- package/dist/chunk-VZB726PE.js +0 -93
- package/dist/chunk-VZB726PE.js.map +0 -1
- package/dist/chunk-W3TEWHLO.js +0 -568
- package/dist/chunk-W3TEWHLO.js.map +0 -1
- package/dist/chunk-YS3AZQ2G.js.map +0 -1
- package/dist/chunk-ZFLHVFUC.js +0 -192
- package/dist/chunk-ZFLHVFUC.js.map +0 -1
- package/dist/chunk-ZFY7U2FR.js.map +0 -1
- package/dist/chunk-ZGDVUPTM.js.map +0 -1
- package/dist/protocol-g_1897M2.d.cts +0 -127
- package/dist/protocol-g_1897M2.d.ts +0 -127
- /package/dist/{chunk-3IYZ5IGG.js.map → chunk-5WKUGEBY.js.map} +0 -0
- /package/dist/{chunk-3RMKLXHX.js.map → chunk-63ZQ5RIN.js.map} +0 -0
- /package/dist/{chunk-EY4NZKDR.js.map → chunk-6Y2TKCNY.js.map} +0 -0
- /package/dist/{chunk-G5ZBFPNU.js.map → chunk-A2RQOJC7.js.map} +0 -0
- /package/dist/{chunk-TAAPQVZN.js.map → chunk-AYELIQXR.js.map} +0 -0
- /package/dist/{chunk-66ALHVEX.js.map → chunk-EB46EYI7.js.map} +0 -0
- /package/dist/{chunk-IPF7E66P.js.map → chunk-FYAODKVP.js.map} +0 -0
- /package/dist/{chunk-M7IYCTJV.js.map → chunk-R4LFQGP3.js.map} +0 -0
- /package/dist/{chunk-M2RGJPXX.js.map → chunk-SJAE5PB5.js.map} +0 -0
- /package/dist/{chunk-ZDTRWK5F.js.map → chunk-TAHFWKS6.js.map} +0 -0
- /package/dist/{chunk-4CQAV7YB.js.map → chunk-W647DX5Z.js.map} +0 -0
package/dist/Middleware.d.cts
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './EffectOp.cjs';
|
|
2
|
+
export { c as DebugLoggerConfig, D as DebugObserverConfig, a as Middleware, b as MiddlewareStack, W as WithDebugOptions, d as applyDebug, f as applyDebugObserver, m as makeDebugLogger, e as makeDebugObserver, w as withDebug } from './Middleware-D8tUDLv_.cjs';
|
|
2
3
|
import 'effect/Effect';
|
|
3
4
|
import 'effect';
|
|
4
|
-
|
|
5
|
-
type Middleware = Middleware$1;
|
|
6
|
-
type MiddlewareStack = MiddlewareStack$1;
|
|
7
|
-
interface DebugLoggerConfig {
|
|
8
|
-
/**
|
|
9
|
-
* Optional: custom logger function (useful for capturing calls in tests).
|
|
10
|
-
*
|
|
11
|
-
* - When omitted, defaults to Effect.logDebug.
|
|
12
|
-
*/
|
|
13
|
-
readonly logger?: (op: EffectOp<any, any, any>) => void;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Creates a simple debug logger middleware.
|
|
17
|
-
*
|
|
18
|
-
* - Logs once before executing the Effect.
|
|
19
|
-
* - Does not change success/error semantics.
|
|
20
|
-
*/
|
|
21
|
-
declare const makeDebugLogger: (config?: DebugLoggerConfig) => Middleware;
|
|
22
|
-
/**
|
|
23
|
-
* applyDebug:
|
|
24
|
-
* - Appends a DebugLogger middleware to the end of an existing MiddlewareStack.
|
|
25
|
-
* - Returns a new stack; does not mutate the input array.
|
|
26
|
-
*/
|
|
27
|
-
declare const applyDebug: (stack: MiddlewareStack, config?: DebugLoggerConfig) => MiddlewareStack;
|
|
28
|
-
/**
|
|
29
|
-
* DebugObserverConfig:
|
|
30
|
-
* - Optional filter: select which EffectOps to observe (by module / kind / name, etc.).
|
|
31
|
-
*/
|
|
32
|
-
interface DebugObserverConfig {
|
|
33
|
-
readonly filter?: (op: EffectOp<any, any, any>) => boolean;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* makeDebugObserver:
|
|
37
|
-
* - Funnels EffectOp events into DebugSink (EffectOp → Debug.Event).
|
|
38
|
-
* - Uses `trace:*` events to forward a slim view of EffectOp into the Debug stream (must not carry effect closures):
|
|
39
|
-
* - type: 'trace:effectop'
|
|
40
|
-
* - moduleId: from op.meta?.moduleId (when present)
|
|
41
|
-
* - data: { id, kind, name, payload, meta }
|
|
42
|
-
*
|
|
43
|
-
* Notes:
|
|
44
|
-
* - Does not change the underlying Effect behavior; only adds Debug-side observation.
|
|
45
|
-
* - Devtools / Timeline UIs can rebuild an EffectOp timeline from `trace:effectop` events.
|
|
46
|
-
*/
|
|
47
|
-
declare const makeDebugObserver: (config?: DebugObserverConfig) => Middleware;
|
|
48
|
-
/**
|
|
49
|
-
* applyDebugObserver:
|
|
50
|
-
* - Appends a DebugObserver middleware to the end of an existing MiddlewareStack.
|
|
51
|
-
* - Returns a new stack; does not mutate the input array.
|
|
52
|
-
*/
|
|
53
|
-
declare const applyDebugObserver: (stack: MiddlewareStack, config?: DebugObserverConfig) => MiddlewareStack;
|
|
54
|
-
/**
|
|
55
|
-
* WithDebugOptions:
|
|
56
|
-
* - High-level composition options for adding Debug capabilities onto an existing MiddlewareStack.
|
|
57
|
-
*
|
|
58
|
-
* Conventions:
|
|
59
|
-
* - logger:
|
|
60
|
-
* - undefined: enable the default DebugLogger (Effect.logDebug).
|
|
61
|
-
* - function: use a custom logger(op) instead of the default.
|
|
62
|
-
* - false: do not add DebugLogger middleware.
|
|
63
|
-
* - observer:
|
|
64
|
-
* - undefined: enable DebugObserver with default config.
|
|
65
|
-
* - DebugObserverConfig: enable DebugObserver with the given config.
|
|
66
|
-
* - false: do not add DebugObserver middleware.
|
|
67
|
-
*/
|
|
68
|
-
interface WithDebugOptions {
|
|
69
|
-
readonly logger?: DebugLoggerConfig['logger'] | false;
|
|
70
|
-
readonly observer?: DebugObserverConfig | false;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* withDebug:
|
|
74
|
-
* - Appends DebugLogger + DebugObserver presets onto an existing MiddlewareStack.
|
|
75
|
-
* - Allows enabling/disabling logger/observer and configuring them via options.
|
|
76
|
-
* - Returns a new stack; does not mutate the input array.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
*
|
|
80
|
-
* let stack: MiddlewareStack = [metrics, timing]
|
|
81
|
-
* stack = Middleware.withDebug(stack, {
|
|
82
|
-
* logger: (op) => console.log(op.kind, op.name),
|
|
83
|
-
* observer: { filter: (op) => op.kind !== 'service' },
|
|
84
|
-
* })
|
|
85
|
-
*/
|
|
86
|
-
declare const withDebug: (stack: MiddlewareStack, options?: WithDebugOptions) => MiddlewareStack;
|
|
87
|
-
|
|
88
|
-
export { type DebugLoggerConfig, type DebugObserverConfig, type Middleware, type MiddlewareStack, type WithDebugOptions, applyDebug, applyDebugObserver, makeDebugLogger, makeDebugObserver, withDebug };
|
package/dist/Middleware.d.ts
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './EffectOp.js';
|
|
2
|
+
export { c as DebugLoggerConfig, D as DebugObserverConfig, a as Middleware, b as MiddlewareStack, W as WithDebugOptions, d as applyDebug, f as applyDebugObserver, m as makeDebugLogger, e as makeDebugObserver, w as withDebug } from './Middleware-DS7CbTTN.js';
|
|
2
3
|
import 'effect/Effect';
|
|
3
4
|
import 'effect';
|
|
4
|
-
|
|
5
|
-
type Middleware = Middleware$1;
|
|
6
|
-
type MiddlewareStack = MiddlewareStack$1;
|
|
7
|
-
interface DebugLoggerConfig {
|
|
8
|
-
/**
|
|
9
|
-
* Optional: custom logger function (useful for capturing calls in tests).
|
|
10
|
-
*
|
|
11
|
-
* - When omitted, defaults to Effect.logDebug.
|
|
12
|
-
*/
|
|
13
|
-
readonly logger?: (op: EffectOp<any, any, any>) => void;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Creates a simple debug logger middleware.
|
|
17
|
-
*
|
|
18
|
-
* - Logs once before executing the Effect.
|
|
19
|
-
* - Does not change success/error semantics.
|
|
20
|
-
*/
|
|
21
|
-
declare const makeDebugLogger: (config?: DebugLoggerConfig) => Middleware;
|
|
22
|
-
/**
|
|
23
|
-
* applyDebug:
|
|
24
|
-
* - Appends a DebugLogger middleware to the end of an existing MiddlewareStack.
|
|
25
|
-
* - Returns a new stack; does not mutate the input array.
|
|
26
|
-
*/
|
|
27
|
-
declare const applyDebug: (stack: MiddlewareStack, config?: DebugLoggerConfig) => MiddlewareStack;
|
|
28
|
-
/**
|
|
29
|
-
* DebugObserverConfig:
|
|
30
|
-
* - Optional filter: select which EffectOps to observe (by module / kind / name, etc.).
|
|
31
|
-
*/
|
|
32
|
-
interface DebugObserverConfig {
|
|
33
|
-
readonly filter?: (op: EffectOp<any, any, any>) => boolean;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* makeDebugObserver:
|
|
37
|
-
* - Funnels EffectOp events into DebugSink (EffectOp → Debug.Event).
|
|
38
|
-
* - Uses `trace:*` events to forward a slim view of EffectOp into the Debug stream (must not carry effect closures):
|
|
39
|
-
* - type: 'trace:effectop'
|
|
40
|
-
* - moduleId: from op.meta?.moduleId (when present)
|
|
41
|
-
* - data: { id, kind, name, payload, meta }
|
|
42
|
-
*
|
|
43
|
-
* Notes:
|
|
44
|
-
* - Does not change the underlying Effect behavior; only adds Debug-side observation.
|
|
45
|
-
* - Devtools / Timeline UIs can rebuild an EffectOp timeline from `trace:effectop` events.
|
|
46
|
-
*/
|
|
47
|
-
declare const makeDebugObserver: (config?: DebugObserverConfig) => Middleware;
|
|
48
|
-
/**
|
|
49
|
-
* applyDebugObserver:
|
|
50
|
-
* - Appends a DebugObserver middleware to the end of an existing MiddlewareStack.
|
|
51
|
-
* - Returns a new stack; does not mutate the input array.
|
|
52
|
-
*/
|
|
53
|
-
declare const applyDebugObserver: (stack: MiddlewareStack, config?: DebugObserverConfig) => MiddlewareStack;
|
|
54
|
-
/**
|
|
55
|
-
* WithDebugOptions:
|
|
56
|
-
* - High-level composition options for adding Debug capabilities onto an existing MiddlewareStack.
|
|
57
|
-
*
|
|
58
|
-
* Conventions:
|
|
59
|
-
* - logger:
|
|
60
|
-
* - undefined: enable the default DebugLogger (Effect.logDebug).
|
|
61
|
-
* - function: use a custom logger(op) instead of the default.
|
|
62
|
-
* - false: do not add DebugLogger middleware.
|
|
63
|
-
* - observer:
|
|
64
|
-
* - undefined: enable DebugObserver with default config.
|
|
65
|
-
* - DebugObserverConfig: enable DebugObserver with the given config.
|
|
66
|
-
* - false: do not add DebugObserver middleware.
|
|
67
|
-
*/
|
|
68
|
-
interface WithDebugOptions {
|
|
69
|
-
readonly logger?: DebugLoggerConfig['logger'] | false;
|
|
70
|
-
readonly observer?: DebugObserverConfig | false;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* withDebug:
|
|
74
|
-
* - Appends DebugLogger + DebugObserver presets onto an existing MiddlewareStack.
|
|
75
|
-
* - Allows enabling/disabling logger/observer and configuring them via options.
|
|
76
|
-
* - Returns a new stack; does not mutate the input array.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
*
|
|
80
|
-
* let stack: MiddlewareStack = [metrics, timing]
|
|
81
|
-
* stack = Middleware.withDebug(stack, {
|
|
82
|
-
* logger: (op) => console.log(op.kind, op.name),
|
|
83
|
-
* observer: { filter: (op) => op.kind !== 'service' },
|
|
84
|
-
* })
|
|
85
|
-
*/
|
|
86
|
-
declare const withDebug: (stack: MiddlewareStack, options?: WithDebugOptions) => MiddlewareStack;
|
|
87
|
-
|
|
88
|
-
export { type DebugLoggerConfig, type DebugObserverConfig, type Middleware, type MiddlewareStack, type WithDebugOptions, applyDebug, applyDebugObserver, makeDebugLogger, makeDebugObserver, withDebug };
|
package/dist/Middleware.js
CHANGED
|
@@ -4,18 +4,21 @@ import {
|
|
|
4
4
|
makeDebugLogger,
|
|
5
5
|
makeDebugObserver,
|
|
6
6
|
withDebug
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-BLHZW7DG.js";
|
|
8
|
+
import "./chunk-GNEN7NKO.js";
|
|
9
|
+
import "./chunk-EB46EYI7.js";
|
|
10
|
+
import "./chunk-HJM5Y5NU.js";
|
|
11
|
+
import "./chunk-RHJIGDUE.js";
|
|
12
|
+
import "./chunk-J3CWXIPV.js";
|
|
13
|
+
import "./chunk-SOOBFXRR.js";
|
|
14
|
+
import "./chunk-63ZQ5RIN.js";
|
|
15
|
+
import "./chunk-S4S5N4BJ.js";
|
|
16
|
+
import "./chunk-NZMWWDAY.js";
|
|
17
|
+
import "./chunk-MYKNINNN.js";
|
|
18
|
+
import "./chunk-R4LFQGP3.js";
|
|
19
|
+
import "./chunk-V2SBGVDO.js";
|
|
20
|
+
import "./chunk-LPPZDFTD.js";
|
|
21
|
+
import "./chunk-4MZ7BT3R.js";
|
|
19
22
|
import "./chunk-PZ5AY32C.js";
|
|
20
23
|
export {
|
|
21
24
|
applyDebug,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { b as
|
|
1
|
+
import { o as AnyModuleShape, t as ModuleRuntimeOfShape, u as ModuleHandle, L as LogicEffect, B as BoundApi, M as ModuleTag, r as ModuleImpl, A as AnySchema, $ as ModuleLike, R as ReducersFromMap, v as StateOf, q as ModuleLogic, a6 as ModuleImplementStateTransactionOptions, s as ModuleRuntime, y as MutatorsFromMap, F as FieldPath, x as ActionsFromMap, p as ModuleShape, E as ActionForTag, w as ActionOf, J as BoundApiDispatchApi, I as BoundApiDispatchersApi, K as BoundApiLifecycleApi, Q as BoundApiReducerApi, G as BoundApiRootApi, H as BoundApiStateApi, O as BoundApiTraitsApi, N as BoundApiUseApi, z as DispatchEffect, V as ReadonlySubscriptionRef, U as StateChangeWithMeta, a as StateCommitMeta, T as StateCommitMode, S as StateCommitPriority } from './module-Zd1Gn-Nj.js';
|
|
2
|
+
import { ServiceMap, Layer, Effect, Schema } from 'effect';
|
|
3
|
+
import { D as Draft } from './Logic-DKg7ghGy.js';
|
|
4
|
+
import { b as Workflow } from './Workflow-C_OWr4dV.js';
|
|
5
|
+
import { b as ActionDefs, a as ActionToken, N as NormalizedActionTokens } from './action-BQxjPFEw.js';
|
|
6
|
+
import { J as JsonValue } from './ReadQuery-DXLzCE0E.js';
|
|
5
7
|
|
|
6
8
|
interface DevSource {
|
|
7
9
|
readonly file: string;
|
|
@@ -30,10 +32,14 @@ interface ModuleDescriptor {
|
|
|
30
32
|
readonly actionKeys: ReadonlyArray<string>;
|
|
31
33
|
readonly logicUnits: ReadonlyArray<MountedLogicUnitSummary>;
|
|
32
34
|
readonly schemaKeys?: ReadonlyArray<string>;
|
|
33
|
-
readonly meta?: Record<string,
|
|
35
|
+
readonly meta?: Record<string, JsonValue>;
|
|
34
36
|
readonly source?: DevSource;
|
|
35
37
|
}
|
|
36
|
-
type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime:
|
|
38
|
+
type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime: ModuleRuntimeOfShape<Sh>, base: ModuleHandle<Sh>) => Ext | (ModuleHandle<Sh> & Ext) | null | undefined;
|
|
39
|
+
type ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = LogicEffect<Sh, R, ModuleHandle<Sh> & Ext, never>;
|
|
40
|
+
type ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = BoundApi<Sh, R> & {
|
|
41
|
+
readonly self: ModuleSelfHandleEffect<Sh, R, Ext>;
|
|
42
|
+
};
|
|
37
43
|
type NoInfer_<T> = [T][T extends any ? 0 : never];
|
|
38
44
|
type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyModuleShape, Ext extends object = {}> = ModuleLike<Id, Sh, Ext> & {
|
|
39
45
|
readonly shape: Sh;
|
|
@@ -49,14 +55,12 @@ type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyMo
|
|
|
49
55
|
* - Mainly for DX/reflection; runtime normalizes them into primary reducers inside ModuleTag/ModuleFactory.
|
|
50
56
|
*/
|
|
51
57
|
readonly reducers?: ReducersFromMap<Sh['stateSchema'], Sh['actionMap']>;
|
|
52
|
-
readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<
|
|
58
|
+
readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<ModuleRuntimeOfShape<Sh>, E, R>;
|
|
53
59
|
readonly schemas?: Record<string, unknown>;
|
|
54
|
-
readonly meta?: Record<string,
|
|
55
|
-
readonly services?: Record<string,
|
|
60
|
+
readonly meta?: Record<string, JsonValue>;
|
|
61
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
56
62
|
readonly dev?: ModuleDev;
|
|
57
|
-
readonly logic: <R = never, E = unknown>(build: (api:
|
|
58
|
-
readonly self: Of<Sh, R, ModuleHandle<Sh> & Ext, never>;
|
|
59
|
-
}) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
|
|
63
|
+
readonly logic: <R = never, E = unknown>(build: (api: ModuleLogicApi<Sh, R, Ext>) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
|
|
60
64
|
};
|
|
61
65
|
type AnyModule = {
|
|
62
66
|
readonly _kind: 'Module';
|
|
@@ -66,8 +70,8 @@ type AnyModule = {
|
|
|
66
70
|
readonly actions: Record<string, AnySchema>;
|
|
67
71
|
readonly reducers?: Record<string, unknown>;
|
|
68
72
|
readonly schemas?: Record<string, unknown>;
|
|
69
|
-
readonly meta?: Record<string,
|
|
70
|
-
readonly services?: Record<string,
|
|
73
|
+
readonly meta?: Record<string, JsonValue>;
|
|
74
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
71
75
|
readonly dev?: ModuleDev;
|
|
72
76
|
};
|
|
73
77
|
type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}, R = never> = ModuleDefBase<Id, Sh, Ext> & {
|
|
@@ -75,11 +79,15 @@ type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {
|
|
|
75
79
|
readonly impl: ModuleImpl<Id, Sh, R>;
|
|
76
80
|
readonly withLogic: (logic: ModuleLogic<Sh, any, any>, options?: LogicUnitOptions) => Module<Id, Sh, Ext, R>;
|
|
77
81
|
readonly withLogics: (...inputs: ReadonlyArray<MountInput<Sh>>) => Module<Id, Sh, Ext, R>;
|
|
82
|
+
readonly withWorkflow: (workflow: Workflow) => Module<Id, Sh, Ext, R>;
|
|
83
|
+
readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => Module<Id, Sh, Ext, R>;
|
|
78
84
|
readonly withLayer: (layer: Layer.Layer<any, never, any>) => Module<Id, Sh, Ext, R>;
|
|
79
85
|
readonly withLayers: (...layers: ReadonlyArray<Layer.Layer<any, never, any>>) => Module<Id, Sh, Ext, R>;
|
|
80
86
|
};
|
|
81
87
|
type ModuleDef<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}> = ModuleDefBase<Id, Sh, Ext> & {
|
|
82
88
|
readonly _kind: 'ModuleDef';
|
|
89
|
+
readonly withWorkflow: (workflow: Workflow) => ModuleDef<Id, Sh, Ext>;
|
|
90
|
+
readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => ModuleDef<Id, Sh, Ext>;
|
|
83
91
|
readonly implement: <R = never>(config: {
|
|
84
92
|
readonly initial: StateOf<Sh>;
|
|
85
93
|
readonly logics?: Array<ModuleLogic<Sh, R, any>>;
|
|
@@ -105,13 +113,13 @@ type MakeDef<Id extends string, SSchema extends AnySchema, AMap extends ActionDe
|
|
|
105
113
|
readonly effects?: EffectsFromMap<NoInfer_<AMap>>;
|
|
106
114
|
readonly traits?: unknown;
|
|
107
115
|
readonly schemas?: Record<string, unknown>;
|
|
108
|
-
readonly meta?: Record<string,
|
|
109
|
-
readonly services?: Record<string,
|
|
116
|
+
readonly meta?: Record<string, JsonValue>;
|
|
117
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
110
118
|
readonly dev?: ModuleDev;
|
|
111
119
|
};
|
|
112
120
|
type AnyActionMap = ActionDefs;
|
|
113
121
|
type EmptyActionMap = Record<never, never>;
|
|
114
|
-
type PayloadOfActionDef<V> = V extends Schema.Schema<any
|
|
122
|
+
type PayloadOfActionDef<V> = V extends Schema.Schema<any> ? Schema.Schema.Type<V> : V extends ActionToken<any, infer P, any> ? P : never;
|
|
115
123
|
type DeclaredEffectHandler<Payload> = ($: unknown, payload: Payload) => Effect.Effect<void, any, any>;
|
|
116
124
|
type EffectsFromMap<M extends AnyActionMap> = {
|
|
117
125
|
readonly [K in keyof M]?: ReadonlyArray<DeclaredEffectHandler<PayloadOfActionDef<M[K]>>>;
|
|
@@ -132,8 +140,8 @@ type MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap,
|
|
|
132
140
|
readonly immerReducers?: MutatorsFromMap<SSchema, MergeActionMap<BaseActions, ExtActions>>;
|
|
133
141
|
readonly effects?: EffectsFromMap<MergeActionMap<BaseActions, ExtActions>>;
|
|
134
142
|
readonly schemas?: Record<string, unknown>;
|
|
135
|
-
readonly meta?: Record<string,
|
|
136
|
-
readonly services?: Record<string,
|
|
143
|
+
readonly meta?: Record<string, JsonValue>;
|
|
144
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
137
145
|
readonly dev?: ModuleDev;
|
|
138
146
|
};
|
|
139
147
|
declare const Reducer: {
|
|
@@ -146,9 +154,12 @@ declare const Reducer: {
|
|
|
146
154
|
readonly payload?: infer P;
|
|
147
155
|
} ? P | undefined : never) => void; }) => R;
|
|
148
156
|
};
|
|
149
|
-
type
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
type ActionTokenMap<ADefs extends ActionDefs> = NormalizedActionTokens<ADefs>;
|
|
158
|
+
type ActionUnionOf<ADefs extends ActionDefs> = ActionsFromMap<ActionTokenMap<ADefs>>;
|
|
159
|
+
type ActionSchemaOf<ADefs extends ActionDefs> = Schema.Schema<ActionUnionOf<ADefs>>;
|
|
160
|
+
type Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = ModuleShape<SSchema, ActionSchemaOf<ADefs>, ActionTokenMap<ADefs>>;
|
|
161
|
+
declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}>(id: Id, def: MakeDef<Id, SSchema, AMap>): ModuleDef<Id, Shape<SSchema, AMap>, Ext>;
|
|
162
|
+
declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}, ExtActions extends ActionDefs = EmptyActionMap>(id: Id, def: MakeDef<Id, SSchema, AMap>, extend: MakeExtendDef<SSchema, NoInfer_<AMap>, ExtActions>): ModuleDef<Id, Shape<SSchema, MergeActionMap<AMap, ExtActions>>, Ext>;
|
|
152
163
|
declare const Manage: {
|
|
153
164
|
readonly make: <D extends (...args: any[]) => AnyModule>(config: {
|
|
154
165
|
readonly kind?: string;
|
|
@@ -159,14 +170,28 @@ declare const Manage: {
|
|
|
159
170
|
};
|
|
160
171
|
};
|
|
161
172
|
|
|
173
|
+
declare const Module$1_ActionForTag: typeof ActionForTag;
|
|
162
174
|
declare const Module$1_ActionOf: typeof ActionOf;
|
|
175
|
+
type Module$1_ActionSchemaOf<ADefs extends ActionDefs> = ActionSchemaOf<ADefs>;
|
|
176
|
+
type Module$1_ActionTokenMap<ADefs extends ActionDefs> = ActionTokenMap<ADefs>;
|
|
177
|
+
type Module$1_ActionUnionOf<ADefs extends ActionDefs> = ActionUnionOf<ADefs>;
|
|
163
178
|
declare const Module$1_ActionsFromMap: typeof ActionsFromMap;
|
|
164
179
|
type Module$1_AnyModule = AnyModule;
|
|
165
180
|
declare const Module$1_AnyModuleShape: typeof AnyModuleShape;
|
|
166
181
|
declare const Module$1_AnySchema: typeof AnySchema;
|
|
167
182
|
declare const Module$1_BoundApi: typeof BoundApi;
|
|
183
|
+
declare const Module$1_BoundApiDispatchApi: typeof BoundApiDispatchApi;
|
|
184
|
+
declare const Module$1_BoundApiDispatchersApi: typeof BoundApiDispatchersApi;
|
|
185
|
+
declare const Module$1_BoundApiLifecycleApi: typeof BoundApiLifecycleApi;
|
|
186
|
+
declare const Module$1_BoundApiReducerApi: typeof BoundApiReducerApi;
|
|
187
|
+
declare const Module$1_BoundApiRootApi: typeof BoundApiRootApi;
|
|
188
|
+
declare const Module$1_BoundApiStateApi: typeof BoundApiStateApi;
|
|
189
|
+
declare const Module$1_BoundApiTraitsApi: typeof BoundApiTraitsApi;
|
|
190
|
+
declare const Module$1_BoundApiUseApi: typeof BoundApiUseApi;
|
|
168
191
|
type Module$1_DevSource = DevSource;
|
|
192
|
+
declare const Module$1_DispatchEffect: typeof DispatchEffect;
|
|
169
193
|
type Module$1_HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = HandleExtendFn<Sh, Ext>;
|
|
194
|
+
declare const Module$1_LogicEffect: typeof LogicEffect;
|
|
170
195
|
type Module$1_LogicUnitOptions = LogicUnitOptions;
|
|
171
196
|
type Module$1_MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap, ExtActions extends AnyActionMap = EmptyActionMap> = MakeExtendDef<SSchema, BaseActions, ExtActions>;
|
|
172
197
|
declare const Module$1_Manage: typeof Manage;
|
|
@@ -177,14 +202,18 @@ type Module$1_ModuleDev = ModuleDev;
|
|
|
177
202
|
declare const Module$1_ModuleHandle: typeof ModuleHandle;
|
|
178
203
|
declare const Module$1_ModuleImpl: typeof ModuleImpl;
|
|
179
204
|
declare const Module$1_ModuleLogic: typeof ModuleLogic;
|
|
205
|
+
type Module$1_ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleLogicApi<Sh, R, Ext>;
|
|
180
206
|
declare const Module$1_ModuleRuntime: typeof ModuleRuntime;
|
|
207
|
+
declare const Module$1_ModuleRuntimeOfShape: typeof ModuleRuntimeOfShape;
|
|
208
|
+
type Module$1_ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleSelfHandleEffect<Sh, R, Ext>;
|
|
181
209
|
declare const Module$1_ModuleShape: typeof ModuleShape;
|
|
182
210
|
declare const Module$1_ModuleTag: typeof ModuleTag;
|
|
183
211
|
type Module$1_MountedLogicUnitSummary = MountedLogicUnitSummary;
|
|
184
212
|
declare const Module$1_MutatorsFromMap: typeof MutatorsFromMap;
|
|
213
|
+
declare const Module$1_ReadonlySubscriptionRef: typeof ReadonlySubscriptionRef;
|
|
185
214
|
declare const Module$1_Reducer: typeof Reducer;
|
|
186
215
|
declare const Module$1_ReducersFromMap: typeof ReducersFromMap;
|
|
187
|
-
type Module$1_Shape<
|
|
216
|
+
type Module$1_Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = Shape<SSchema, ADefs>;
|
|
188
217
|
declare const Module$1_StateChangeWithMeta: typeof StateChangeWithMeta;
|
|
189
218
|
declare const Module$1_StateCommitMeta: typeof StateCommitMeta;
|
|
190
219
|
declare const Module$1_StateCommitMode: typeof StateCommitMode;
|
|
@@ -197,7 +226,7 @@ declare const Module$1_make: typeof make;
|
|
|
197
226
|
declare const Module$1_unwrapImpl: typeof unwrapImpl;
|
|
198
227
|
declare const Module$1_unwrapTag: typeof unwrapTag;
|
|
199
228
|
declare namespace Module$1 {
|
|
200
|
-
export { Module$1_ActionOf as ActionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, type Module$1_DevSource as DevSource, type Module$1_HandleExtendFn as HandleExtendFn, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
|
|
229
|
+
export { Module$1_ActionForTag as ActionForTag, Module$1_ActionOf as ActionOf, type Module$1_ActionSchemaOf as ActionSchemaOf, type Module$1_ActionTokenMap as ActionTokenMap, type Module$1_ActionUnionOf as ActionUnionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, Module$1_BoundApiDispatchApi as BoundApiDispatchApi, Module$1_BoundApiDispatchersApi as BoundApiDispatchersApi, Module$1_BoundApiLifecycleApi as BoundApiLifecycleApi, Module$1_BoundApiReducerApi as BoundApiReducerApi, Module$1_BoundApiRootApi as BoundApiRootApi, Module$1_BoundApiStateApi as BoundApiStateApi, Module$1_BoundApiTraitsApi as BoundApiTraitsApi, Module$1_BoundApiUseApi as BoundApiUseApi, type Module$1_DevSource as DevSource, Module$1_DispatchEffect as DispatchEffect, type Module$1_HandleExtendFn as HandleExtendFn, Module$1_LogicEffect as LogicEffect, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, type Module$1_ModuleLogicApi as ModuleLogicApi, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleRuntimeOfShape as ModuleRuntimeOfShape, type Module$1_ModuleSelfHandleEffect as ModuleSelfHandleEffect, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_ReadonlySubscriptionRef as ReadonlySubscriptionRef, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
|
|
201
230
|
}
|
|
202
231
|
|
|
203
|
-
export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type
|
|
232
|
+
export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type ModuleSelfHandleEffect as d, type ModuleLogicApi as e, type ModuleDef as f, unwrapImpl as g, hasImpl as h, is as i, descriptor as j, type MakeExtendDef as k, type ActionTokenMap as l, type ActionUnionOf as m, type ActionSchemaOf as n, make as o, Manage as p, type Module as q, unwrapTag as u };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { b as
|
|
1
|
+
import { o as AnyModuleShape, t as ModuleRuntimeOfShape, u as ModuleHandle, L as LogicEffect, B as BoundApi, M as ModuleTag, r as ModuleImpl, A as AnySchema, $ as ModuleLike, R as ReducersFromMap, v as StateOf, q as ModuleLogic, a6 as ModuleImplementStateTransactionOptions, s as ModuleRuntime, y as MutatorsFromMap, F as FieldPath, x as ActionsFromMap, p as ModuleShape, E as ActionForTag, w as ActionOf, J as BoundApiDispatchApi, I as BoundApiDispatchersApi, K as BoundApiLifecycleApi, Q as BoundApiReducerApi, G as BoundApiRootApi, H as BoundApiStateApi, O as BoundApiTraitsApi, N as BoundApiUseApi, z as DispatchEffect, V as ReadonlySubscriptionRef, U as StateChangeWithMeta, a as StateCommitMeta, T as StateCommitMode, S as StateCommitPriority } from './module-Ds4tarcI.cjs';
|
|
2
|
+
import { ServiceMap, Layer, Effect, Schema } from 'effect';
|
|
3
|
+
import { D as Draft } from './Logic-09VQpIj3.cjs';
|
|
4
|
+
import { b as Workflow } from './Workflow-DmydkHO8.cjs';
|
|
5
|
+
import { b as ActionDefs, a as ActionToken, N as NormalizedActionTokens } from './action-BQxjPFEw.cjs';
|
|
6
|
+
import { J as JsonValue } from './ReadQuery-DXLzCE0E.cjs';
|
|
5
7
|
|
|
6
8
|
interface DevSource {
|
|
7
9
|
readonly file: string;
|
|
@@ -30,10 +32,14 @@ interface ModuleDescriptor {
|
|
|
30
32
|
readonly actionKeys: ReadonlyArray<string>;
|
|
31
33
|
readonly logicUnits: ReadonlyArray<MountedLogicUnitSummary>;
|
|
32
34
|
readonly schemaKeys?: ReadonlyArray<string>;
|
|
33
|
-
readonly meta?: Record<string,
|
|
35
|
+
readonly meta?: Record<string, JsonValue>;
|
|
34
36
|
readonly source?: DevSource;
|
|
35
37
|
}
|
|
36
|
-
type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime:
|
|
38
|
+
type HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = (runtime: ModuleRuntimeOfShape<Sh>, base: ModuleHandle<Sh>) => Ext | (ModuleHandle<Sh> & Ext) | null | undefined;
|
|
39
|
+
type ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = LogicEffect<Sh, R, ModuleHandle<Sh> & Ext, never>;
|
|
40
|
+
type ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = BoundApi<Sh, R> & {
|
|
41
|
+
readonly self: ModuleSelfHandleEffect<Sh, R, Ext>;
|
|
42
|
+
};
|
|
37
43
|
type NoInfer_<T> = [T][T extends any ? 0 : never];
|
|
38
44
|
type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyModuleShape, Ext extends object = {}> = ModuleLike<Id, Sh, Ext> & {
|
|
39
45
|
readonly shape: Sh;
|
|
@@ -49,14 +55,12 @@ type ModuleDefBase<Id extends string = string, Sh extends AnyModuleShape = AnyMo
|
|
|
49
55
|
* - Mainly for DX/reflection; runtime normalizes them into primary reducers inside ModuleTag/ModuleFactory.
|
|
50
56
|
*/
|
|
51
57
|
readonly reducers?: ReducersFromMap<Sh['stateSchema'], Sh['actionMap']>;
|
|
52
|
-
readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<
|
|
58
|
+
readonly live: <R = never, E = never>(initial: StateOf<Sh>, ...logics: Array<ModuleLogic<Sh, R, E>>) => Layer.Layer<ModuleRuntimeOfShape<Sh>, E, R>;
|
|
53
59
|
readonly schemas?: Record<string, unknown>;
|
|
54
|
-
readonly meta?: Record<string,
|
|
55
|
-
readonly services?: Record<string,
|
|
60
|
+
readonly meta?: Record<string, JsonValue>;
|
|
61
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
56
62
|
readonly dev?: ModuleDev;
|
|
57
|
-
readonly logic: <R = never, E = unknown>(build: (api:
|
|
58
|
-
readonly self: Of<Sh, R, ModuleHandle<Sh> & Ext, never>;
|
|
59
|
-
}) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
|
|
63
|
+
readonly logic: <R = never, E = unknown>(build: (api: ModuleLogicApi<Sh, R, Ext>) => ModuleLogic<Sh, R, E>, options?: LogicUnitOptions) => ModuleLogic<Sh, R, E>;
|
|
60
64
|
};
|
|
61
65
|
type AnyModule = {
|
|
62
66
|
readonly _kind: 'Module';
|
|
@@ -66,8 +70,8 @@ type AnyModule = {
|
|
|
66
70
|
readonly actions: Record<string, AnySchema>;
|
|
67
71
|
readonly reducers?: Record<string, unknown>;
|
|
68
72
|
readonly schemas?: Record<string, unknown>;
|
|
69
|
-
readonly meta?: Record<string,
|
|
70
|
-
readonly services?: Record<string,
|
|
73
|
+
readonly meta?: Record<string, JsonValue>;
|
|
74
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
71
75
|
readonly dev?: ModuleDev;
|
|
72
76
|
};
|
|
73
77
|
type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}, R = never> = ModuleDefBase<Id, Sh, Ext> & {
|
|
@@ -75,11 +79,15 @@ type Module<Id extends string, Sh extends AnyModuleShape, Ext extends object = {
|
|
|
75
79
|
readonly impl: ModuleImpl<Id, Sh, R>;
|
|
76
80
|
readonly withLogic: (logic: ModuleLogic<Sh, any, any>, options?: LogicUnitOptions) => Module<Id, Sh, Ext, R>;
|
|
77
81
|
readonly withLogics: (...inputs: ReadonlyArray<MountInput<Sh>>) => Module<Id, Sh, Ext, R>;
|
|
82
|
+
readonly withWorkflow: (workflow: Workflow) => Module<Id, Sh, Ext, R>;
|
|
83
|
+
readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => Module<Id, Sh, Ext, R>;
|
|
78
84
|
readonly withLayer: (layer: Layer.Layer<any, never, any>) => Module<Id, Sh, Ext, R>;
|
|
79
85
|
readonly withLayers: (...layers: ReadonlyArray<Layer.Layer<any, never, any>>) => Module<Id, Sh, Ext, R>;
|
|
80
86
|
};
|
|
81
87
|
type ModuleDef<Id extends string, Sh extends AnyModuleShape, Ext extends object = {}> = ModuleDefBase<Id, Sh, Ext> & {
|
|
82
88
|
readonly _kind: 'ModuleDef';
|
|
89
|
+
readonly withWorkflow: (workflow: Workflow) => ModuleDef<Id, Sh, Ext>;
|
|
90
|
+
readonly withWorkflows: (workflows: ReadonlyArray<Workflow>) => ModuleDef<Id, Sh, Ext>;
|
|
83
91
|
readonly implement: <R = never>(config: {
|
|
84
92
|
readonly initial: StateOf<Sh>;
|
|
85
93
|
readonly logics?: Array<ModuleLogic<Sh, R, any>>;
|
|
@@ -105,13 +113,13 @@ type MakeDef<Id extends string, SSchema extends AnySchema, AMap extends ActionDe
|
|
|
105
113
|
readonly effects?: EffectsFromMap<NoInfer_<AMap>>;
|
|
106
114
|
readonly traits?: unknown;
|
|
107
115
|
readonly schemas?: Record<string, unknown>;
|
|
108
|
-
readonly meta?: Record<string,
|
|
109
|
-
readonly services?: Record<string,
|
|
116
|
+
readonly meta?: Record<string, JsonValue>;
|
|
117
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
110
118
|
readonly dev?: ModuleDev;
|
|
111
119
|
};
|
|
112
120
|
type AnyActionMap = ActionDefs;
|
|
113
121
|
type EmptyActionMap = Record<never, never>;
|
|
114
|
-
type PayloadOfActionDef<V> = V extends Schema.Schema<any
|
|
122
|
+
type PayloadOfActionDef<V> = V extends Schema.Schema<any> ? Schema.Schema.Type<V> : V extends ActionToken<any, infer P, any> ? P : never;
|
|
115
123
|
type DeclaredEffectHandler<Payload> = ($: unknown, payload: Payload) => Effect.Effect<void, any, any>;
|
|
116
124
|
type EffectsFromMap<M extends AnyActionMap> = {
|
|
117
125
|
readonly [K in keyof M]?: ReadonlyArray<DeclaredEffectHandler<PayloadOfActionDef<M[K]>>>;
|
|
@@ -132,8 +140,8 @@ type MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap,
|
|
|
132
140
|
readonly immerReducers?: MutatorsFromMap<SSchema, MergeActionMap<BaseActions, ExtActions>>;
|
|
133
141
|
readonly effects?: EffectsFromMap<MergeActionMap<BaseActions, ExtActions>>;
|
|
134
142
|
readonly schemas?: Record<string, unknown>;
|
|
135
|
-
readonly meta?: Record<string,
|
|
136
|
-
readonly services?: Record<string,
|
|
143
|
+
readonly meta?: Record<string, JsonValue>;
|
|
144
|
+
readonly services?: Record<string, ServiceMap.Key<any, any>>;
|
|
137
145
|
readonly dev?: ModuleDev;
|
|
138
146
|
};
|
|
139
147
|
declare const Reducer: {
|
|
@@ -146,9 +154,12 @@ declare const Reducer: {
|
|
|
146
154
|
readonly payload?: infer P;
|
|
147
155
|
} ? P | undefined : never) => void; }) => R;
|
|
148
156
|
};
|
|
149
|
-
type
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
type ActionTokenMap<ADefs extends ActionDefs> = NormalizedActionTokens<ADefs>;
|
|
158
|
+
type ActionUnionOf<ADefs extends ActionDefs> = ActionsFromMap<ActionTokenMap<ADefs>>;
|
|
159
|
+
type ActionSchemaOf<ADefs extends ActionDefs> = Schema.Schema<ActionUnionOf<ADefs>>;
|
|
160
|
+
type Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = ModuleShape<SSchema, ActionSchemaOf<ADefs>, ActionTokenMap<ADefs>>;
|
|
161
|
+
declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}>(id: Id, def: MakeDef<Id, SSchema, AMap>): ModuleDef<Id, Shape<SSchema, AMap>, Ext>;
|
|
162
|
+
declare function make<Id extends string, SSchema extends AnySchema, AMap extends ActionDefs, Ext extends object = {}, ExtActions extends ActionDefs = EmptyActionMap>(id: Id, def: MakeDef<Id, SSchema, AMap>, extend: MakeExtendDef<SSchema, NoInfer_<AMap>, ExtActions>): ModuleDef<Id, Shape<SSchema, MergeActionMap<AMap, ExtActions>>, Ext>;
|
|
152
163
|
declare const Manage: {
|
|
153
164
|
readonly make: <D extends (...args: any[]) => AnyModule>(config: {
|
|
154
165
|
readonly kind?: string;
|
|
@@ -159,14 +170,28 @@ declare const Manage: {
|
|
|
159
170
|
};
|
|
160
171
|
};
|
|
161
172
|
|
|
173
|
+
declare const Module$1_ActionForTag: typeof ActionForTag;
|
|
162
174
|
declare const Module$1_ActionOf: typeof ActionOf;
|
|
175
|
+
type Module$1_ActionSchemaOf<ADefs extends ActionDefs> = ActionSchemaOf<ADefs>;
|
|
176
|
+
type Module$1_ActionTokenMap<ADefs extends ActionDefs> = ActionTokenMap<ADefs>;
|
|
177
|
+
type Module$1_ActionUnionOf<ADefs extends ActionDefs> = ActionUnionOf<ADefs>;
|
|
163
178
|
declare const Module$1_ActionsFromMap: typeof ActionsFromMap;
|
|
164
179
|
type Module$1_AnyModule = AnyModule;
|
|
165
180
|
declare const Module$1_AnyModuleShape: typeof AnyModuleShape;
|
|
166
181
|
declare const Module$1_AnySchema: typeof AnySchema;
|
|
167
182
|
declare const Module$1_BoundApi: typeof BoundApi;
|
|
183
|
+
declare const Module$1_BoundApiDispatchApi: typeof BoundApiDispatchApi;
|
|
184
|
+
declare const Module$1_BoundApiDispatchersApi: typeof BoundApiDispatchersApi;
|
|
185
|
+
declare const Module$1_BoundApiLifecycleApi: typeof BoundApiLifecycleApi;
|
|
186
|
+
declare const Module$1_BoundApiReducerApi: typeof BoundApiReducerApi;
|
|
187
|
+
declare const Module$1_BoundApiRootApi: typeof BoundApiRootApi;
|
|
188
|
+
declare const Module$1_BoundApiStateApi: typeof BoundApiStateApi;
|
|
189
|
+
declare const Module$1_BoundApiTraitsApi: typeof BoundApiTraitsApi;
|
|
190
|
+
declare const Module$1_BoundApiUseApi: typeof BoundApiUseApi;
|
|
168
191
|
type Module$1_DevSource = DevSource;
|
|
192
|
+
declare const Module$1_DispatchEffect: typeof DispatchEffect;
|
|
169
193
|
type Module$1_HandleExtendFn<Sh extends AnyModuleShape, Ext extends object> = HandleExtendFn<Sh, Ext>;
|
|
194
|
+
declare const Module$1_LogicEffect: typeof LogicEffect;
|
|
170
195
|
type Module$1_LogicUnitOptions = LogicUnitOptions;
|
|
171
196
|
type Module$1_MakeExtendDef<SSchema extends AnySchema, BaseActions extends AnyActionMap, ExtActions extends AnyActionMap = EmptyActionMap> = MakeExtendDef<SSchema, BaseActions, ExtActions>;
|
|
172
197
|
declare const Module$1_Manage: typeof Manage;
|
|
@@ -177,14 +202,18 @@ type Module$1_ModuleDev = ModuleDev;
|
|
|
177
202
|
declare const Module$1_ModuleHandle: typeof ModuleHandle;
|
|
178
203
|
declare const Module$1_ModuleImpl: typeof ModuleImpl;
|
|
179
204
|
declare const Module$1_ModuleLogic: typeof ModuleLogic;
|
|
205
|
+
type Module$1_ModuleLogicApi<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleLogicApi<Sh, R, Ext>;
|
|
180
206
|
declare const Module$1_ModuleRuntime: typeof ModuleRuntime;
|
|
207
|
+
declare const Module$1_ModuleRuntimeOfShape: typeof ModuleRuntimeOfShape;
|
|
208
|
+
type Module$1_ModuleSelfHandleEffect<Sh extends AnyModuleShape, R = never, Ext extends object = {}> = ModuleSelfHandleEffect<Sh, R, Ext>;
|
|
181
209
|
declare const Module$1_ModuleShape: typeof ModuleShape;
|
|
182
210
|
declare const Module$1_ModuleTag: typeof ModuleTag;
|
|
183
211
|
type Module$1_MountedLogicUnitSummary = MountedLogicUnitSummary;
|
|
184
212
|
declare const Module$1_MutatorsFromMap: typeof MutatorsFromMap;
|
|
213
|
+
declare const Module$1_ReadonlySubscriptionRef: typeof ReadonlySubscriptionRef;
|
|
185
214
|
declare const Module$1_Reducer: typeof Reducer;
|
|
186
215
|
declare const Module$1_ReducersFromMap: typeof ReducersFromMap;
|
|
187
|
-
type Module$1_Shape<
|
|
216
|
+
type Module$1_Shape<SSchema extends AnySchema, ADefs extends ActionDefs> = Shape<SSchema, ADefs>;
|
|
188
217
|
declare const Module$1_StateChangeWithMeta: typeof StateChangeWithMeta;
|
|
189
218
|
declare const Module$1_StateCommitMeta: typeof StateCommitMeta;
|
|
190
219
|
declare const Module$1_StateCommitMode: typeof StateCommitMode;
|
|
@@ -197,7 +226,7 @@ declare const Module$1_make: typeof make;
|
|
|
197
226
|
declare const Module$1_unwrapImpl: typeof unwrapImpl;
|
|
198
227
|
declare const Module$1_unwrapTag: typeof unwrapTag;
|
|
199
228
|
declare namespace Module$1 {
|
|
200
|
-
export { Module$1_ActionOf as ActionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, type Module$1_DevSource as DevSource, type Module$1_HandleExtendFn as HandleExtendFn, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
|
|
229
|
+
export { Module$1_ActionForTag as ActionForTag, Module$1_ActionOf as ActionOf, type Module$1_ActionSchemaOf as ActionSchemaOf, type Module$1_ActionTokenMap as ActionTokenMap, type Module$1_ActionUnionOf as ActionUnionOf, Module$1_ActionsFromMap as ActionsFromMap, type Module$1_AnyModule as AnyModule, Module$1_AnyModuleShape as AnyModuleShape, Module$1_AnySchema as AnySchema, Module$1_BoundApi as BoundApi, Module$1_BoundApiDispatchApi as BoundApiDispatchApi, Module$1_BoundApiDispatchersApi as BoundApiDispatchersApi, Module$1_BoundApiLifecycleApi as BoundApiLifecycleApi, Module$1_BoundApiReducerApi as BoundApiReducerApi, Module$1_BoundApiRootApi as BoundApiRootApi, Module$1_BoundApiStateApi as BoundApiStateApi, Module$1_BoundApiTraitsApi as BoundApiTraitsApi, Module$1_BoundApiUseApi as BoundApiUseApi, type Module$1_DevSource as DevSource, Module$1_DispatchEffect as DispatchEffect, type Module$1_HandleExtendFn as HandleExtendFn, Module$1_LogicEffect as LogicEffect, type Module$1_LogicUnitOptions as LogicUnitOptions, type Module$1_MakeExtendDef as MakeExtendDef, Module$1_Manage as Manage, type Module$1_Module as Module, type Module$1_ModuleDef as ModuleDef, type Module$1_ModuleDescriptor as ModuleDescriptor, type Module$1_ModuleDev as ModuleDev, Module$1_ModuleHandle as ModuleHandle, Module$1_ModuleImpl as ModuleImpl, Module$1_ModuleLogic as ModuleLogic, type Module$1_ModuleLogicApi as ModuleLogicApi, Module$1_ModuleRuntime as ModuleRuntime, Module$1_ModuleRuntimeOfShape as ModuleRuntimeOfShape, type Module$1_ModuleSelfHandleEffect as ModuleSelfHandleEffect, Module$1_ModuleShape as ModuleShape, Module$1_ModuleTag as ModuleTag, type Module$1_MountedLogicUnitSummary as MountedLogicUnitSummary, Module$1_MutatorsFromMap as MutatorsFromMap, Module$1_ReadonlySubscriptionRef as ReadonlySubscriptionRef, Module$1_Reducer as Reducer, Module$1_ReducersFromMap as ReducersFromMap, type Module$1_Shape as Shape, Module$1_StateChangeWithMeta as StateChangeWithMeta, Module$1_StateCommitMeta as StateCommitMeta, Module$1_StateCommitMode as StateCommitMode, Module$1_StateCommitPriority as StateCommitPriority, Module$1_StateOf as StateOf, Module$1_descriptor as descriptor, Module$1_hasImpl as hasImpl, Module$1_is as is, Module$1_make as make, Module$1_unwrapImpl as unwrapImpl, Module$1_unwrapTag as unwrapTag };
|
|
201
230
|
}
|
|
202
231
|
|
|
203
|
-
export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type
|
|
232
|
+
export { type AnyModule as A, type DevSource as D, type HandleExtendFn as H, type LogicUnitOptions as L, Module$1 as M, Reducer as R, type Shape as S, type ModuleDev as a, type MountedLogicUnitSummary as b, type ModuleDescriptor as c, type ModuleSelfHandleEffect as d, type ModuleLogicApi as e, type ModuleDef as f, unwrapImpl as g, hasImpl as h, is as i, descriptor as j, type MakeExtendDef as k, type ActionTokenMap as l, type ActionUnionOf as m, type ActionSchemaOf as n, make as o, Manage as p, type Module as q, unwrapTag as u };
|