@ixo/editor 7.14.0 → 7.16.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/dist/{BidConfig-EIEPSAOX.js → BidConfig-GP6SUQDP.js} +12 -10
- package/dist/{BidConfig-EIEPSAOX.js.map → BidConfig-GP6SUQDP.js.map} +1 -1
- package/dist/{BidFlowDetail-LRZW4SM4.js → BidFlowDetail-5IV4F57M.js} +145 -30
- package/dist/BidFlowDetail-5IV4F57M.js.map +1 -0
- package/dist/{CalendarEventCreateConfig-LNFS3LGH.js → CalendarEventCreateConfig-4MLTZ5LN.js} +13 -11
- package/dist/{CalendarEventCreateConfig-LNFS3LGH.js.map → CalendarEventCreateConfig-4MLTZ5LN.js.map} +1 -1
- package/dist/{CalendarEventCreateFlowDetail-ILQJQFQT.js → CalendarEventCreateFlowDetail-YXZZYXEV.js} +14 -12
- package/dist/{CalendarEventCreateFlowDetail-ILQJQFQT.js.map → CalendarEventCreateFlowDetail-YXZZYXEV.js.map} +1 -1
- package/dist/{CalendarEventListConfig-SLHSOOT6.js → CalendarEventListConfig-KNWS4QAV.js} +13 -11
- package/dist/{CalendarEventListConfig-SLHSOOT6.js.map → CalendarEventListConfig-KNWS4QAV.js.map} +1 -1
- package/dist/{CalendarEventListFlowDetail-AFXTCZDH.js → CalendarEventListFlowDetail-TNLEQISF.js} +5 -5
- package/dist/{CalendarEventUpdateConfig-73NQRPVQ.js → CalendarEventUpdateConfig-ULBUH6XB.js} +13 -11
- package/dist/{CalendarEventUpdateConfig-73NQRPVQ.js.map → CalendarEventUpdateConfig-ULBUH6XB.js.map} +1 -1
- package/dist/{CalendarEventUpdateFlowDetail-A3MORVXJ.js → CalendarEventUpdateFlowDetail-2JGXJNXF.js} +14 -12
- package/dist/{CalendarEventUpdateFlowDetail-A3MORVXJ.js.map → CalendarEventUpdateFlowDetail-2JGXJNXF.js.map} +1 -1
- package/dist/{ClaimConfig-TSUF6KA5.js → ClaimConfig-NA5OKL2E.js} +12 -10
- package/dist/{ClaimConfig-TSUF6KA5.js.map → ClaimConfig-NA5OKL2E.js.map} +1 -1
- package/dist/{ClaimFlowDetail-TQJJKD75.js → ClaimFlowDetail-3QAA2WQN.js} +155 -24
- package/dist/ClaimFlowDetail-3QAA2WQN.js.map +1 -0
- package/dist/{CollectionLifecycleConfig-ANZQEHQQ.js → CollectionLifecycleConfig-7FEGRU2T.js} +7 -5
- package/dist/{CollectionLifecycleConfig-ANZQEHQQ.js.map → CollectionLifecycleConfig-7FEGRU2T.js.map} +1 -1
- package/dist/{CollectionLifecycleFlowDetail-UYU4USDN.js → CollectionLifecycleFlowDetail-MZ57UM2D.js} +120 -79
- package/dist/CollectionLifecycleFlowDetail-MZ57UM2D.js.map +1 -0
- package/dist/{CollectionUsersConfig-OTDSHX5D.js → CollectionUsersConfig-EZPWZBVU.js} +12 -10
- package/dist/{CollectionUsersConfig-OTDSHX5D.js.map → CollectionUsersConfig-EZPWZBVU.js.map} +1 -1
- package/dist/{CollectionUsersFlowDetail-R5NVVE7D.js → CollectionUsersFlowDetail-P2JHJEDX.js} +70 -35
- package/dist/CollectionUsersFlowDetail-P2JHJEDX.js.map +1 -0
- package/dist/{CredentialStoreConfig-YIMQ7EKP.js → CredentialStoreConfig-NHGY66QF.js} +10 -8
- package/dist/{CredentialStoreConfig-YIMQ7EKP.js.map → CredentialStoreConfig-NHGY66QF.js.map} +1 -1
- package/dist/{CredentialStoreFlowDetail-XKHFADEW.js → CredentialStoreFlowDetail-E4ZA7SVE.js} +7 -7
- package/dist/{DesignPodFlowDetail-HY6IEQLU.js → DesignPodFlowDetail-TVE7QL5F.js} +5 -5
- package/dist/{DomainCardPreviewFlowDetail-IPPIGXYN.js → DomainCardPreviewFlowDetail-AD6R7T4V.js} +7 -7
- package/dist/{DomainIndexerLookupFlowDetail-EVVSQZTR.js → DomainIndexerLookupFlowDetail-IPKK755F.js} +5 -5
- package/dist/{DomainSignFlowDetail-3LESMXAF.js → DomainSignFlowDetail-GJDUQ4SK.js} +8 -8
- package/dist/{DomainSingleSelectionConfig-SSZ3FXMT.js → DomainSingleSelectionConfig-OQMKNWKB.js} +4 -4
- package/dist/{DomainSingleSelectionFlowDetail-HKNJA65L.js → DomainSingleSelectionFlowDetail-D5PEEZYE.js} +5 -5
- package/dist/{EmailSendConfig-H5K57JJS.js → EmailSendConfig-5P4PO2DP.js} +12 -10
- package/dist/{EmailSendConfig-H5K57JJS.js.map → EmailSendConfig-5P4PO2DP.js.map} +1 -1
- package/dist/{EntityCreateOracleFlowDetail-VYES3N5S.js → EntityCreateOracleFlowDetail-IQLILC7A.js} +7 -7
- package/dist/{EntitySingleSelectionFlowDetail-Y2U6HJPT.js → EntitySingleSelectionFlowDetail-73VBDDKV.js} +5 -5
- package/dist/{EntityTransferFlowDetail-XS3SZZ2X.js → EntityTransferFlowDetail-COBLNSTI.js} +7 -7
- package/dist/{EvalEngineConfig-VICCQI4P.js → EvalEngineConfig-4YSTWRVH.js} +30 -18
- package/dist/EvalEngineConfig-4YSTWRVH.js.map +1 -0
- package/dist/{EvalEngineFlowDetail-E6KAPHN2.js → EvalEngineFlowDetail-X5R4TYGB.js} +14 -12
- package/dist/{EvalEngineFlowDetail-E6KAPHN2.js.map → EvalEngineFlowDetail-X5R4TYGB.js.map} +1 -1
- package/dist/{EvaluateBidConfig-CP5PFEKU.js → EvaluateBidConfig-GKL7SYIS.js} +12 -10
- package/dist/{EvaluateBidConfig-CP5PFEKU.js.map → EvaluateBidConfig-GKL7SYIS.js.map} +1 -1
- package/dist/{EvaluateBidFlowDetail-K5HLP3NZ.js → EvaluateBidFlowDetail-QEUA6HYS.js} +36 -24
- package/dist/EvaluateBidFlowDetail-QEUA6HYS.js.map +1 -0
- package/dist/{EvaluateClaimConfig-C5CTAKG3.js → EvaluateClaimConfig-ANGCA37A.js} +12 -10
- package/dist/{EvaluateClaimConfig-C5CTAKG3.js.map → EvaluateClaimConfig-ANGCA37A.js.map} +1 -1
- package/dist/{EvaluateClaimFlowDetail-V46SYXBM.js → EvaluateClaimFlowDetail-SC7BDU6G.js} +50 -27
- package/dist/EvaluateClaimFlowDetail-SC7BDU6G.js.map +1 -0
- package/dist/{FormSubmitFlowDetail-W5XINRJR.js → FormSubmitFlowDetail-ABJIIT5G.js} +7 -7
- package/dist/{GovernanceAuthzExecFlowDetail-H6ULVHGB.js → GovernanceAuthzExecFlowDetail-SSXMCONH.js} +8 -8
- package/dist/{GovernanceAuthzGrantFlowDetail-T5SNEYAS.js → GovernanceAuthzGrantFlowDetail-OWP4PTST.js} +9 -9
- package/dist/{GovernanceAuthzRevokeFlowDetail-7ZMIMOCB.js → GovernanceAuthzRevokeFlowDetail-IF2MAJLL.js} +9 -9
- package/dist/{GovernanceChainVoteFlowDetail-FBCCCCRS.js → GovernanceChainVoteFlowDetail-UBICGJSY.js} +8 -8
- package/dist/{GovernanceConfigFlowDetail-FS34HWYF.js → GovernanceConfigFlowDetail-7FKPUYIO.js} +5 -5
- package/dist/{GovernanceContractExecuteFlowDetail-LLQCRCDQ.js → GovernanceContractExecuteFlowDetail-4N45IKK7.js} +9 -9
- package/dist/{GovernanceContractInstantiateFlowDetail-XMG6CDWB.js → GovernanceContractInstantiateFlowDetail-MSAJTVIR.js} +9 -9
- package/dist/{GovernanceContractManageCw20FlowDetail-4EQHD32A.js → GovernanceContractManageCw20FlowDetail-O6Z2A47N.js} +8 -8
- package/dist/{GovernanceContractMigrateFlowDetail-XX7XAKYX.js → GovernanceContractMigrateFlowDetail-FUYS2253.js} +9 -9
- package/dist/{GovernanceContractUpdateAdminFlowDetail-VNGO5GIX.js → GovernanceContractUpdateAdminFlowDetail-J4Z2TI2Y.js} +8 -8
- package/dist/{GovernanceCustomMessageFlowDetail-5DBFPFZJ.js → GovernanceCustomMessageFlowDetail-2WCHVHWW.js} +9 -9
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-RH6VXT63.js → GovernanceDaoAcceptToMarketplaceFlowDetail-VQE7VJE5.js} +9 -9
- package/dist/{GovernanceDaoAdminExecFlowDetail-6BJDY5ES.js → GovernanceDaoAdminExecFlowDetail-D2KSC7KX.js} +10 -10
- package/dist/{GovernanceDaoCreateEntityFlowDetail-KRDUPUSO.js → GovernanceDaoCreateEntityFlowDetail-FQKIMJ25.js} +9 -9
- package/dist/{GovernanceDaoJoinFlowDetail-7HD5UOTR.js → GovernanceDaoJoinFlowDetail-BIKEPPHW.js} +9 -9
- package/dist/{GovernanceDaoManageStorageFlowDetail-GAPLXBA2.js → GovernanceDaoManageStorageFlowDetail-LPIF6E7F.js} +8 -8
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-JSXHMJ2T.js → GovernanceDaoManageSubDaosFlowDetail-EP2NJTKN.js} +9 -9
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-LUW7JVSN.js → GovernanceDaoUpdateInfoFlowDetail-DSCFK5FM.js} +8 -8
- package/dist/{GovernanceMemberProposalConfig-3MKU6LZS.js → GovernanceMemberProposalConfig-MVYMGVN7.js} +5 -5
- package/dist/{GovernanceMemberProposalFlowDetail-OF5KN6OR.js → GovernanceMemberProposalFlowDetail-Z6POQJXA.js} +9 -9
- package/dist/{GovernanceNftBurnFlowDetail-I6HFDWM4.js → GovernanceNftBurnFlowDetail-UWXPVNSG.js} +8 -8
- package/dist/{GovernanceNftManageCollectionsFlowDetail-PGJGG2ID.js → GovernanceNftManageCollectionsFlowDetail-MW2VWVC2.js} +8 -8
- package/dist/{GovernanceNftTransferFlowDetail-KOHM7UES.js → GovernanceNftTransferFlowDetail-DBJQREB2.js} +9 -9
- package/dist/{GovernanceSettingsProposalConfig-XYFGTONO.js → GovernanceSettingsProposalConfig-7PIFFP47.js} +5 -5
- package/dist/{GovernanceSettingsProposalFlowDetail-IYRSFZ3X.js → GovernanceSettingsProposalFlowDetail-3ID5U4PF.js} +8 -8
- package/dist/{GovernanceStakingStakeFlowDetail-BNZQJHLC.js → GovernanceStakingStakeFlowDetail-CNJWW4XN.js} +8 -8
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-K4CZHBWG.js → GovernanceStakingStakeToGroupFlowDetail-ZRUICQ3D.js} +8 -8
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-DQYWFW6F.js → GovernanceSubmissionConfigProposalFlowDetail-UNTKYICX.js} +8 -8
- package/dist/{GovernanceTransactionMintFlowDetail-YCYNZ65O.js → GovernanceTransactionMintFlowDetail-7WMMK4MZ.js} +9 -9
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-CJOGFGQ2.js → GovernanceTransactionPerformTokenSwapFlowDetail-SRMMDAJ7.js} +8 -8
- package/dist/{GovernanceTransactionSendFundsConfig-KTNUCVX4.js → GovernanceTransactionSendFundsConfig-BHZTNS4Z.js} +5 -5
- package/dist/{GovernanceTransactionSendFundsFlowDetail-CUGBPU77.js → GovernanceTransactionSendFundsFlowDetail-PGM2EDOD.js} +9 -9
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-GQA66OCZ.js → GovernanceTransactionSendGroupTokenFlowDetail-6KDJ63HM.js} +9 -9
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-IET6DQHY.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-VM3AFFAD.js} +8 -8
- package/dist/{GovernanceValidatorActionsFlowDetail-ZKGF3CQK.js → GovernanceValidatorActionsFlowDetail-TZ3VQ3EA.js} +8 -8
- package/dist/{HarvestConfig-JT56JPR3.js → HarvestConfig-DM3V52S7.js} +11 -9
- package/dist/{HarvestConfig-JT56JPR3.js.map → HarvestConfig-DM3V52S7.js.map} +1 -1
- package/dist/{HarvestFlowDetail-ARHWXK45.js → HarvestFlowDetail-DSLEE22S.js} +7 -7
- package/dist/{HttpRequestConfig-M5E5CGBV.js → HttpRequestConfig-QJI62HRG.js} +10 -8
- package/dist/{HttpRequestConfig-M5E5CGBV.js.map → HttpRequestConfig-QJI62HRG.js.map} +1 -1
- package/dist/{HttpRequestFlowDetail-IO6QE4NN.js → HttpRequestFlowDetail-7KL6E2AJ.js} +5 -5
- package/dist/{IdentityCreateFlowDetail-MJMOLWYW.js → IdentityCreateFlowDetail-Y6IN6TXN.js} +15 -13
- package/dist/{IdentityCreateFlowDetail-MJMOLWYW.js.map → IdentityCreateFlowDetail-Y6IN6TXN.js.map} +1 -1
- package/dist/{IidCreateFlowDetail-W6HMEWE7.js → IidCreateFlowDetail-GZYUXPBZ.js} +15 -13
- package/dist/{IidCreateFlowDetail-W6HMEWE7.js.map → IidCreateFlowDetail-GZYUXPBZ.js.map} +1 -1
- package/dist/{KycVerifyConfig-KTGH3YPY.js → KycVerifyConfig-VCZCPMHG.js} +10 -8
- package/dist/{KycVerifyConfig-KTGH3YPY.js.map → KycVerifyConfig-VCZCPMHG.js.map} +1 -1
- package/dist/{KycVerifyFlowDetail-F44YWLZ4.js → KycVerifyFlowDetail-GHTMTDF7.js} +15 -13
- package/dist/{KycVerifyFlowDetail-F44YWLZ4.js.map → KycVerifyFlowDetail-GHTMTDF7.js.map} +1 -1
- package/dist/{ListDomainFlowsFlowDetail-4RV5P4XR.js → ListDomainFlowsFlowDetail-IKKCGK6H.js} +5 -5
- package/dist/{LoadBatchesFlowDetail-JLKNWUUD.js → LoadBatchesFlowDetail-CQUCDXS7.js} +7 -7
- package/dist/{MatrixDmConfig-TKTR4TMT.js → MatrixDmConfig-SAWMGCJY.js} +4 -4
- package/dist/{MatrixRegisterFlowDetail-5XD7IEDE.js → MatrixRegisterFlowDetail-JFS6LNVD.js} +7 -7
- package/dist/{MemberMultiSelectFlowDetail-ZX25VPRA.js → MemberMultiSelectFlowDetail-42V4NEDY.js} +5 -5
- package/dist/{OracleConfig-BP57HAML.js → OracleConfig-OSLSWVRA.js} +10 -8
- package/dist/{OracleConfig-BP57HAML.js.map → OracleConfig-OSLSWVRA.js.map} +1 -1
- package/dist/{OracleConfigureOracleFlowDetail-G6FN7G53.js → OracleConfigureOracleFlowDetail-NEPBW73E.js} +15 -13
- package/dist/{OracleConfigureOracleFlowDetail-G6FN7G53.js.map → OracleConfigureOracleFlowDetail-NEPBW73E.js.map} +1 -1
- package/dist/{OracleContractFlowDetail-D3T2RA25.js → OracleContractFlowDetail-VGX62V2T.js} +7 -7
- package/dist/{OracleDeployFlowDetail-TJNNMXY3.js → OracleDeployFlowDetail-OAS3ITPT.js} +7 -7
- package/dist/{OracleDeploySetupFlowDetail-IQR7QZEW.js → OracleDeploySetupFlowDetail-5VKCOPB4.js} +7 -7
- package/dist/{OracleDeployStartFlowDetail-JB6VKH4A.js → OracleDeployStartFlowDetail-WFXV4SWB.js} +7 -7
- package/dist/{OracleFlowDetail-DCUARHP7.js → OracleFlowDetail-UU3XJ7QT.js} +7 -7
- package/dist/{OraclePromptFlowDetail-STNR2ZMK.js → OraclePromptFlowDetail-OVWSYTGH.js} +7 -7
- package/dist/{OracleStoreConfigFlowDetail-6ONAXHBY.js → OracleStoreConfigFlowDetail-CY4SKQMO.js} +7 -7
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-EKH2WB3F.js → OracleStoreSecretsAndConfigFlowDetail-OZOG2CEP.js} +15 -13
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-EKH2WB3F.js.map → OracleStoreSecretsAndConfigFlowDetail-OZOG2CEP.js.map} +1 -1
- package/dist/{OracleStoreSecretsFlowDetail-W7NHJODN.js → OracleStoreSecretsFlowDetail-LD6EJUVW.js} +15 -13
- package/dist/{OracleStoreSecretsFlowDetail-W7NHJODN.js.map → OracleStoreSecretsFlowDetail-LD6EJUVW.js.map} +1 -1
- package/dist/{ProposalCreateConfig-XHHFE5AV.js → ProposalCreateConfig-B3H3Y34N.js} +12 -10
- package/dist/{ProposalCreateConfig-XHHFE5AV.js.map → ProposalCreateConfig-B3H3Y34N.js.map} +1 -1
- package/dist/{ProposalCreateFlowDetail-2G2GY4US.js → ProposalCreateFlowDetail-GRTQRWUT.js} +16 -14
- package/dist/{ProposalCreateFlowDetail-2G2GY4US.js.map → ProposalCreateFlowDetail-GRTQRWUT.js.map} +1 -1
- package/dist/{ProposalVoteConfig-B3CYLNMR.js → ProposalVoteConfig-4HNKH3MK.js} +12 -10
- package/dist/{ProposalVoteConfig-B3CYLNMR.js.map → ProposalVoteConfig-4HNKH3MK.js.map} +1 -1
- package/dist/{ProposalVoteFlowDetail-YDCAQDOU.js → ProposalVoteFlowDetail-FFJN3O6P.js} +9 -8
- package/dist/{ProposalVoteFlowDetail-YDCAQDOU.js.map → ProposalVoteFlowDetail-FFJN3O6P.js.map} +1 -1
- package/dist/{ProtocolSelectFlowDetail-3JP64T5K.js → ProtocolSelectFlowDetail-CDBH7BYF.js} +4 -4
- package/dist/{RetireConfig-6AJV46OC.js → RetireConfig-3FCYGEUG.js} +11 -9
- package/dist/{RetireConfig-6AJV46OC.js.map → RetireConfig-3FCYGEUG.js.map} +1 -1
- package/dist/{RetireFlowDetail-GTV6MFBD.js → RetireFlowDetail-5TR3WYKF.js} +7 -7
- package/dist/{SandboxProvisionFlowDetail-7MGLMPV7.js → SandboxProvisionFlowDetail-NVHFUDRV.js} +7 -7
- package/dist/{WalletFundConfig-JXDFL3NU.js → WalletFundConfig-R4FAESYH.js} +5 -5
- package/dist/{WalletFundFlowDetail-XVRH274W.js → WalletFundFlowDetail-52LJDXBZ.js} +8 -8
- package/dist/{WalletGenerateAndFundFlowDetail-IU62QLIS.js → WalletGenerateAndFundFlowDetail-PTQLEDUE.js} +5 -5
- package/dist/{WalletGenerateFlowDetail-FBC4X5LU.js → WalletGenerateFlowDetail-GAAEO5OB.js} +5 -5
- package/dist/{XeroContactCreateConfig-NHDFNSFV.js → XeroContactCreateConfig-3K7GR4PQ.js} +13 -11
- package/dist/{XeroContactCreateConfig-NHDFNSFV.js.map → XeroContactCreateConfig-3K7GR4PQ.js.map} +1 -1
- package/dist/{XeroContactCreateFlowDetail-Y75GK4YD.js → XeroContactCreateFlowDetail-CBNHE23D.js} +14 -12
- package/dist/{XeroContactCreateFlowDetail-Y75GK4YD.js.map → XeroContactCreateFlowDetail-CBNHE23D.js.map} +1 -1
- package/dist/{XeroInvoiceCreateConfig-RA7RWAML.js → XeroInvoiceCreateConfig-BPOC6DP4.js} +13 -11
- package/dist/{XeroInvoiceCreateConfig-RA7RWAML.js.map → XeroInvoiceCreateConfig-BPOC6DP4.js.map} +1 -1
- package/dist/{XeroInvoiceCreateFlowDetail-VM4CFTC5.js → XeroInvoiceCreateFlowDetail-5ZJISTQP.js} +16 -14
- package/dist/{XeroInvoiceCreateFlowDetail-VM4CFTC5.js.map → XeroInvoiceCreateFlowDetail-5ZJISTQP.js.map} +1 -1
- package/dist/{XeroInvoiceListConfig-W24K2EYI.js → XeroInvoiceListConfig-5GHQS4X2.js} +13 -11
- package/dist/{XeroInvoiceListConfig-W24K2EYI.js.map → XeroInvoiceListConfig-5GHQS4X2.js.map} +1 -1
- package/dist/{XeroInvoiceListFlowDetail-XGELG75J.js → XeroInvoiceListFlowDetail-A45D47DJ.js} +5 -5
- package/dist/{XeroPaymentCreateConfig-FZUOUTU7.js → XeroPaymentCreateConfig-N34OOVF3.js} +10 -8
- package/dist/{XeroPaymentCreateConfig-FZUOUTU7.js.map → XeroPaymentCreateConfig-N34OOVF3.js.map} +1 -1
- package/dist/{XeroPaymentCreateFlowDetail-RE4GJ4WQ.js → XeroPaymentCreateFlowDetail-GQU62UKC.js} +17 -15
- package/dist/{XeroPaymentCreateFlowDetail-RE4GJ4WQ.js.map → XeroPaymentCreateFlowDetail-GQU62UKC.js.map} +1 -1
- package/dist/action-manifest.json +4 -3
- package/dist/{chunk-USHMGWKF.js → chunk-3ZO4VLSK.js} +159 -35
- package/dist/chunk-3ZO4VLSK.js.map +1 -0
- package/dist/{chunk-GH7O4QGO.js → chunk-43D3NWOA.js} +3 -3
- package/dist/{chunk-CZIGDW25.js → chunk-4Y66NZYT.js} +1 -1
- package/dist/chunk-4Y66NZYT.js.map +1 -0
- package/dist/{chunk-5WYFQEOS.js → chunk-5DHQ62CY.js} +15 -10
- package/dist/chunk-5DHQ62CY.js.map +1 -0
- package/dist/{chunk-CXJLU4EO.js → chunk-7TNGZ73M.js} +7 -3
- package/dist/chunk-7TNGZ73M.js.map +1 -0
- package/dist/{chunk-WKOKMWRK.js → chunk-7TT4RM2M.js} +2 -2
- package/dist/{chunk-HKK2CXCE.js → chunk-ADFZLOPH.js} +30 -10
- package/dist/{chunk-HKK2CXCE.js.map → chunk-ADFZLOPH.js.map} +1 -1
- package/dist/{chunk-C6JR6MTE.js → chunk-AHPUF6IS.js} +2 -2
- package/dist/{chunk-M2KG76WI.js → chunk-AOLCNPGV.js} +2 -2
- package/dist/{chunk-RCL6AUKZ.js → chunk-AWAQL6ZO.js} +2 -2
- package/dist/chunk-BE4KNIIO.js +38 -0
- package/dist/chunk-BE4KNIIO.js.map +1 -0
- package/dist/{chunk-YN4CEKCF.js → chunk-CXVE34NH.js} +4 -20
- package/dist/chunk-CXVE34NH.js.map +1 -0
- package/dist/{chunk-2UBHREIK.js → chunk-CYSIKH2M.js} +5 -5
- package/dist/{chunk-NDB4OY5L.js → chunk-DTI7CLYI.js} +23 -22
- package/dist/chunk-DTI7CLYI.js.map +1 -0
- package/dist/{chunk-NIKTH7CV.js → chunk-DV3SAEKZ.js} +2 -2
- package/dist/{chunk-EF64DHSI.js → chunk-DXY3INKM.js} +2 -2
- package/dist/{chunk-JUEFMNUL.js → chunk-EVHWLO2C.js} +18 -5
- package/dist/chunk-EVHWLO2C.js.map +1 -0
- package/dist/{chunk-FHPW3SMU.js → chunk-FORJT34Q.js} +9 -2
- package/dist/chunk-FORJT34Q.js.map +1 -0
- package/dist/{chunk-VDENAJYC.js → chunk-GRVWI465.js} +2 -2
- package/dist/{chunk-PSKT6V2B.js → chunk-GUGO63DD.js} +2 -2
- package/dist/{chunk-5PDVYGOE.js → chunk-HNZQKYXU.js} +2 -2
- package/dist/{chunk-2MF7Z23C.js → chunk-IZRTWKW3.js} +2 -2
- package/dist/{chunk-QKS67VYF.js → chunk-JCZHNO6K.js} +2 -2
- package/dist/{chunk-OCO3YMSP.js → chunk-K2LBL7FF.js} +2056 -1809
- package/dist/chunk-K2LBL7FF.js.map +1 -0
- package/dist/{chunk-VPIXCG2A.js → chunk-KKFBQ64O.js} +2 -2
- package/dist/{chunk-J2TX7CLV.js → chunk-LD5FYXB5.js} +2 -2
- package/dist/{chunk-K6S2QJVA.js → chunk-LHDORVTE.js} +2 -2
- package/dist/chunk-M23YQVG5.js +141 -0
- package/dist/chunk-M23YQVG5.js.map +1 -0
- package/dist/{chunk-HNI2BNV4.js → chunk-MH2PPQSO.js} +5 -5
- package/dist/{chunk-JIUHQT5G.js → chunk-NPFETBLF.js} +2 -2
- package/dist/{chunk-PKA3A5LV.js → chunk-NUQ4QOVJ.js} +2 -2
- package/dist/{chunk-H2OYJ7T2.js → chunk-OG56C7DD.js} +2 -2
- package/dist/{chunk-OKKUZIFE.js → chunk-OV4KVTZI.js} +2 -2
- package/dist/{chunk-CGFAICUE.js → chunk-PEBGCXBW.js} +2 -2
- package/dist/chunk-SSXD4YNM.js +58 -0
- package/dist/chunk-SSXD4YNM.js.map +1 -0
- package/dist/{chunk-KSZJDCDZ.js → chunk-T57N7ZN5.js} +2 -2
- package/dist/{chunk-BLSDMB7H.js → chunk-WAM3FJJL.js} +3 -3
- package/dist/{chunk-JPOMVC6W.js → chunk-WM3A4CI6.js} +3 -3
- package/dist/{chunk-AC7XNDYY.js → chunk-WU6CRA5K.js} +2 -2
- package/dist/{chunk-4YSKITJI.js → chunk-XLUP6K4Q.js} +4 -4
- package/dist/{chunk-REACQ3FM.js → chunk-YJZBVHZG.js} +4 -3
- package/dist/chunk-YJZBVHZG.js.map +1 -0
- package/dist/{chunk-KAU3TGO5.js → chunk-Z2CUKACX.js} +39 -40
- package/dist/chunk-Z2CUKACX.js.map +1 -0
- package/dist/{connections-Dg3LrIiZ.d.ts → connections-D0wDsBew.d.ts} +12 -1
- package/dist/core/index.cjs +146 -42
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +14 -10
- package/dist/core/index.js.map +1 -1
- package/dist/{graphql-client-DCgFumho.d.ts → graphql-client-CCfakDEp.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +26 -23
- package/dist/index.js.map +1 -1
- package/dist/mantine/index.d.ts +116 -7
- package/dist/mantine/index.js +45 -24
- package/dist/mantine/index.js.map +1 -1
- package/dist/{types-D-PiyyFv.d.ts → types-DN9nWVxp.d.ts} +71 -2
- package/package.json +2 -2
- package/dist/BidFlowDetail-LRZW4SM4.js.map +0 -1
- package/dist/ClaimFlowDetail-TQJJKD75.js.map +0 -1
- package/dist/CollectionLifecycleFlowDetail-UYU4USDN.js.map +0 -1
- package/dist/CollectionUsersFlowDetail-R5NVVE7D.js.map +0 -1
- package/dist/EvalEngineConfig-VICCQI4P.js.map +0 -1
- package/dist/EvaluateBidFlowDetail-K5HLP3NZ.js.map +0 -1
- package/dist/EvaluateClaimFlowDetail-V46SYXBM.js.map +0 -1
- package/dist/chunk-5WYFQEOS.js.map +0 -1
- package/dist/chunk-CXJLU4EO.js.map +0 -1
- package/dist/chunk-CZIGDW25.js.map +0 -1
- package/dist/chunk-FHPW3SMU.js.map +0 -1
- package/dist/chunk-JUEFMNUL.js.map +0 -1
- package/dist/chunk-KAU3TGO5.js.map +0 -1
- package/dist/chunk-NDB4OY5L.js.map +0 -1
- package/dist/chunk-OCO3YMSP.js.map +0 -1
- package/dist/chunk-REACQ3FM.js.map +0 -1
- package/dist/chunk-USHMGWKF.js.map +0 -1
- package/dist/chunk-YN4CEKCF.js.map +0 -1
- /package/dist/{CalendarEventListFlowDetail-AFXTCZDH.js.map → CalendarEventListFlowDetail-TNLEQISF.js.map} +0 -0
- /package/dist/{CredentialStoreFlowDetail-XKHFADEW.js.map → CredentialStoreFlowDetail-E4ZA7SVE.js.map} +0 -0
- /package/dist/{DesignPodFlowDetail-HY6IEQLU.js.map → DesignPodFlowDetail-TVE7QL5F.js.map} +0 -0
- /package/dist/{DomainCardPreviewFlowDetail-IPPIGXYN.js.map → DomainCardPreviewFlowDetail-AD6R7T4V.js.map} +0 -0
- /package/dist/{DomainIndexerLookupFlowDetail-EVVSQZTR.js.map → DomainIndexerLookupFlowDetail-IPKK755F.js.map} +0 -0
- /package/dist/{DomainSignFlowDetail-3LESMXAF.js.map → DomainSignFlowDetail-GJDUQ4SK.js.map} +0 -0
- /package/dist/{DomainSingleSelectionConfig-SSZ3FXMT.js.map → DomainSingleSelectionConfig-OQMKNWKB.js.map} +0 -0
- /package/dist/{DomainSingleSelectionFlowDetail-HKNJA65L.js.map → DomainSingleSelectionFlowDetail-D5PEEZYE.js.map} +0 -0
- /package/dist/{EntityCreateOracleFlowDetail-VYES3N5S.js.map → EntityCreateOracleFlowDetail-IQLILC7A.js.map} +0 -0
- /package/dist/{EntitySingleSelectionFlowDetail-Y2U6HJPT.js.map → EntitySingleSelectionFlowDetail-73VBDDKV.js.map} +0 -0
- /package/dist/{EntityTransferFlowDetail-XS3SZZ2X.js.map → EntityTransferFlowDetail-COBLNSTI.js.map} +0 -0
- /package/dist/{FormSubmitFlowDetail-W5XINRJR.js.map → FormSubmitFlowDetail-ABJIIT5G.js.map} +0 -0
- /package/dist/{GovernanceAuthzExecFlowDetail-H6ULVHGB.js.map → GovernanceAuthzExecFlowDetail-SSXMCONH.js.map} +0 -0
- /package/dist/{GovernanceAuthzGrantFlowDetail-T5SNEYAS.js.map → GovernanceAuthzGrantFlowDetail-OWP4PTST.js.map} +0 -0
- /package/dist/{GovernanceAuthzRevokeFlowDetail-7ZMIMOCB.js.map → GovernanceAuthzRevokeFlowDetail-IF2MAJLL.js.map} +0 -0
- /package/dist/{GovernanceChainVoteFlowDetail-FBCCCCRS.js.map → GovernanceChainVoteFlowDetail-UBICGJSY.js.map} +0 -0
- /package/dist/{GovernanceConfigFlowDetail-FS34HWYF.js.map → GovernanceConfigFlowDetail-7FKPUYIO.js.map} +0 -0
- /package/dist/{GovernanceContractExecuteFlowDetail-LLQCRCDQ.js.map → GovernanceContractExecuteFlowDetail-4N45IKK7.js.map} +0 -0
- /package/dist/{GovernanceContractInstantiateFlowDetail-XMG6CDWB.js.map → GovernanceContractInstantiateFlowDetail-MSAJTVIR.js.map} +0 -0
- /package/dist/{GovernanceContractManageCw20FlowDetail-4EQHD32A.js.map → GovernanceContractManageCw20FlowDetail-O6Z2A47N.js.map} +0 -0
- /package/dist/{GovernanceContractMigrateFlowDetail-XX7XAKYX.js.map → GovernanceContractMigrateFlowDetail-FUYS2253.js.map} +0 -0
- /package/dist/{GovernanceContractUpdateAdminFlowDetail-VNGO5GIX.js.map → GovernanceContractUpdateAdminFlowDetail-J4Z2TI2Y.js.map} +0 -0
- /package/dist/{GovernanceCustomMessageFlowDetail-5DBFPFZJ.js.map → GovernanceCustomMessageFlowDetail-2WCHVHWW.js.map} +0 -0
- /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-RH6VXT63.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-VQE7VJE5.js.map} +0 -0
- /package/dist/{GovernanceDaoAdminExecFlowDetail-6BJDY5ES.js.map → GovernanceDaoAdminExecFlowDetail-D2KSC7KX.js.map} +0 -0
- /package/dist/{GovernanceDaoCreateEntityFlowDetail-KRDUPUSO.js.map → GovernanceDaoCreateEntityFlowDetail-FQKIMJ25.js.map} +0 -0
- /package/dist/{GovernanceDaoJoinFlowDetail-7HD5UOTR.js.map → GovernanceDaoJoinFlowDetail-BIKEPPHW.js.map} +0 -0
- /package/dist/{GovernanceDaoManageStorageFlowDetail-GAPLXBA2.js.map → GovernanceDaoManageStorageFlowDetail-LPIF6E7F.js.map} +0 -0
- /package/dist/{GovernanceDaoManageSubDaosFlowDetail-JSXHMJ2T.js.map → GovernanceDaoManageSubDaosFlowDetail-EP2NJTKN.js.map} +0 -0
- /package/dist/{GovernanceDaoUpdateInfoFlowDetail-LUW7JVSN.js.map → GovernanceDaoUpdateInfoFlowDetail-DSCFK5FM.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalConfig-3MKU6LZS.js.map → GovernanceMemberProposalConfig-MVYMGVN7.js.map} +0 -0
- /package/dist/{GovernanceMemberProposalFlowDetail-OF5KN6OR.js.map → GovernanceMemberProposalFlowDetail-Z6POQJXA.js.map} +0 -0
- /package/dist/{GovernanceNftBurnFlowDetail-I6HFDWM4.js.map → GovernanceNftBurnFlowDetail-UWXPVNSG.js.map} +0 -0
- /package/dist/{GovernanceNftManageCollectionsFlowDetail-PGJGG2ID.js.map → GovernanceNftManageCollectionsFlowDetail-MW2VWVC2.js.map} +0 -0
- /package/dist/{GovernanceNftTransferFlowDetail-KOHM7UES.js.map → GovernanceNftTransferFlowDetail-DBJQREB2.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalConfig-XYFGTONO.js.map → GovernanceSettingsProposalConfig-7PIFFP47.js.map} +0 -0
- /package/dist/{GovernanceSettingsProposalFlowDetail-IYRSFZ3X.js.map → GovernanceSettingsProposalFlowDetail-3ID5U4PF.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeFlowDetail-BNZQJHLC.js.map → GovernanceStakingStakeFlowDetail-CNJWW4XN.js.map} +0 -0
- /package/dist/{GovernanceStakingStakeToGroupFlowDetail-K4CZHBWG.js.map → GovernanceStakingStakeToGroupFlowDetail-ZRUICQ3D.js.map} +0 -0
- /package/dist/{GovernanceSubmissionConfigProposalFlowDetail-DQYWFW6F.js.map → GovernanceSubmissionConfigProposalFlowDetail-UNTKYICX.js.map} +0 -0
- /package/dist/{GovernanceTransactionMintFlowDetail-YCYNZ65O.js.map → GovernanceTransactionMintFlowDetail-7WMMK4MZ.js.map} +0 -0
- /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-CJOGFGQ2.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-SRMMDAJ7.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsConfig-KTNUCVX4.js.map → GovernanceTransactionSendFundsConfig-BHZTNS4Z.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendFundsFlowDetail-CUGBPU77.js.map → GovernanceTransactionSendFundsFlowDetail-PGM2EDOD.js.map} +0 -0
- /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-GQA66OCZ.js.map → GovernanceTransactionSendGroupTokenFlowDetail-6KDJ63HM.js.map} +0 -0
- /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-IET6DQHY.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-VM3AFFAD.js.map} +0 -0
- /package/dist/{GovernanceValidatorActionsFlowDetail-ZKGF3CQK.js.map → GovernanceValidatorActionsFlowDetail-TZ3VQ3EA.js.map} +0 -0
- /package/dist/{HarvestFlowDetail-ARHWXK45.js.map → HarvestFlowDetail-DSLEE22S.js.map} +0 -0
- /package/dist/{HttpRequestFlowDetail-IO6QE4NN.js.map → HttpRequestFlowDetail-7KL6E2AJ.js.map} +0 -0
- /package/dist/{ListDomainFlowsFlowDetail-4RV5P4XR.js.map → ListDomainFlowsFlowDetail-IKKCGK6H.js.map} +0 -0
- /package/dist/{LoadBatchesFlowDetail-JLKNWUUD.js.map → LoadBatchesFlowDetail-CQUCDXS7.js.map} +0 -0
- /package/dist/{MatrixDmConfig-TKTR4TMT.js.map → MatrixDmConfig-SAWMGCJY.js.map} +0 -0
- /package/dist/{MatrixRegisterFlowDetail-5XD7IEDE.js.map → MatrixRegisterFlowDetail-JFS6LNVD.js.map} +0 -0
- /package/dist/{MemberMultiSelectFlowDetail-ZX25VPRA.js.map → MemberMultiSelectFlowDetail-42V4NEDY.js.map} +0 -0
- /package/dist/{OracleContractFlowDetail-D3T2RA25.js.map → OracleContractFlowDetail-VGX62V2T.js.map} +0 -0
- /package/dist/{OracleDeployFlowDetail-TJNNMXY3.js.map → OracleDeployFlowDetail-OAS3ITPT.js.map} +0 -0
- /package/dist/{OracleDeploySetupFlowDetail-IQR7QZEW.js.map → OracleDeploySetupFlowDetail-5VKCOPB4.js.map} +0 -0
- /package/dist/{OracleDeployStartFlowDetail-JB6VKH4A.js.map → OracleDeployStartFlowDetail-WFXV4SWB.js.map} +0 -0
- /package/dist/{OracleFlowDetail-DCUARHP7.js.map → OracleFlowDetail-UU3XJ7QT.js.map} +0 -0
- /package/dist/{OraclePromptFlowDetail-STNR2ZMK.js.map → OraclePromptFlowDetail-OVWSYTGH.js.map} +0 -0
- /package/dist/{OracleStoreConfigFlowDetail-6ONAXHBY.js.map → OracleStoreConfigFlowDetail-CY4SKQMO.js.map} +0 -0
- /package/dist/{ProtocolSelectFlowDetail-3JP64T5K.js.map → ProtocolSelectFlowDetail-CDBH7BYF.js.map} +0 -0
- /package/dist/{RetireFlowDetail-GTV6MFBD.js.map → RetireFlowDetail-5TR3WYKF.js.map} +0 -0
- /package/dist/{SandboxProvisionFlowDetail-7MGLMPV7.js.map → SandboxProvisionFlowDetail-NVHFUDRV.js.map} +0 -0
- /package/dist/{WalletFundConfig-JXDFL3NU.js.map → WalletFundConfig-R4FAESYH.js.map} +0 -0
- /package/dist/{WalletFundFlowDetail-XVRH274W.js.map → WalletFundFlowDetail-52LJDXBZ.js.map} +0 -0
- /package/dist/{WalletGenerateAndFundFlowDetail-IU62QLIS.js.map → WalletGenerateAndFundFlowDetail-PTQLEDUE.js.map} +0 -0
- /package/dist/{WalletGenerateFlowDetail-FBC4X5LU.js.map → WalletGenerateFlowDetail-GAAEO5OB.js.map} +0 -0
- /package/dist/{XeroInvoiceListFlowDetail-XGELG75J.js.map → XeroInvoiceListFlowDetail-A45D47DJ.js.map} +0 -0
- /package/dist/{chunk-GH7O4QGO.js.map → chunk-43D3NWOA.js.map} +0 -0
- /package/dist/{chunk-WKOKMWRK.js.map → chunk-7TT4RM2M.js.map} +0 -0
- /package/dist/{chunk-C6JR6MTE.js.map → chunk-AHPUF6IS.js.map} +0 -0
- /package/dist/{chunk-M2KG76WI.js.map → chunk-AOLCNPGV.js.map} +0 -0
- /package/dist/{chunk-RCL6AUKZ.js.map → chunk-AWAQL6ZO.js.map} +0 -0
- /package/dist/{chunk-2UBHREIK.js.map → chunk-CYSIKH2M.js.map} +0 -0
- /package/dist/{chunk-NIKTH7CV.js.map → chunk-DV3SAEKZ.js.map} +0 -0
- /package/dist/{chunk-EF64DHSI.js.map → chunk-DXY3INKM.js.map} +0 -0
- /package/dist/{chunk-VDENAJYC.js.map → chunk-GRVWI465.js.map} +0 -0
- /package/dist/{chunk-PSKT6V2B.js.map → chunk-GUGO63DD.js.map} +0 -0
- /package/dist/{chunk-5PDVYGOE.js.map → chunk-HNZQKYXU.js.map} +0 -0
- /package/dist/{chunk-2MF7Z23C.js.map → chunk-IZRTWKW3.js.map} +0 -0
- /package/dist/{chunk-QKS67VYF.js.map → chunk-JCZHNO6K.js.map} +0 -0
- /package/dist/{chunk-VPIXCG2A.js.map → chunk-KKFBQ64O.js.map} +0 -0
- /package/dist/{chunk-J2TX7CLV.js.map → chunk-LD5FYXB5.js.map} +0 -0
- /package/dist/{chunk-K6S2QJVA.js.map → chunk-LHDORVTE.js.map} +0 -0
- /package/dist/{chunk-HNI2BNV4.js.map → chunk-MH2PPQSO.js.map} +0 -0
- /package/dist/{chunk-JIUHQT5G.js.map → chunk-NPFETBLF.js.map} +0 -0
- /package/dist/{chunk-PKA3A5LV.js.map → chunk-NUQ4QOVJ.js.map} +0 -0
- /package/dist/{chunk-H2OYJ7T2.js.map → chunk-OG56C7DD.js.map} +0 -0
- /package/dist/{chunk-OKKUZIFE.js.map → chunk-OV4KVTZI.js.map} +0 -0
- /package/dist/{chunk-CGFAICUE.js.map → chunk-PEBGCXBW.js.map} +0 -0
- /package/dist/{chunk-KSZJDCDZ.js.map → chunk-T57N7ZN5.js.map} +0 -0
- /package/dist/{chunk-BLSDMB7H.js.map → chunk-WAM3FJJL.js.map} +0 -0
- /package/dist/{chunk-JPOMVC6W.js.map → chunk-WM3A4CI6.js.map} +0 -0
- /package/dist/{chunk-AC7XNDYY.js.map → chunk-WU6CRA5K.js.map} +0 -0
- /package/dist/{chunk-4YSKITJI.js.map → chunk-XLUP6K4Q.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import { Doc, Map, Array as Array$1 } from 'yjs';
|
|
|
3
3
|
import * as _blocknote_core from '@blocknote/core';
|
|
4
4
|
import { PartialBlock, DefaultBlockSchema, PageBreakBlockConfig, BlockSchemaFromSpecs, InlineContentSchema, StyleSchema, BlockNoteEditor } from '@blocknote/core';
|
|
5
5
|
import * as _blocknote_react from '@blocknote/react';
|
|
6
|
-
import { DIDKeyResolver, RevocationChecker, Delegation } from '@ixo/ucan';
|
|
6
|
+
import { DIDKeyResolver, RevocationChecker, ProofChainLimits, Delegation } from '@ixo/ucan';
|
|
7
7
|
import { F as FlowProtocolGateV1 } from './legacy-BpgIqaQ5.js';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
@@ -918,6 +918,37 @@ declare function topicActionReceiptSigningPayload(receipt: UnsignedTopicActionRe
|
|
|
918
918
|
* it still valid" are different questions the step panel shows apart.
|
|
919
919
|
*/
|
|
920
920
|
|
|
921
|
+
/**
|
|
922
|
+
* Proof-chain shape limits for every flow grant and receipt the validator
|
|
923
|
+
* checks. @ixo/ucan 2.3.0's defaults (32 capabilities per link, 256 units of
|
|
924
|
+
* work) refuse ordinary flows, so they are sized here from the chains flows
|
|
925
|
+
* actually produce.
|
|
926
|
+
*
|
|
927
|
+
* @ixo/ucan charges `work(node) = max(1, caps) × (1 + Σ work(proofs))`. With N
|
|
928
|
+
* agent-run (fenced) steps and M steps assigned to one actor:
|
|
929
|
+
*
|
|
930
|
+
* - owner root: `1+N` capabilities, no proofs → `1+N`
|
|
931
|
+
* - flow-manager grant: `11+N` capabilities (ten manager abilities, the
|
|
932
|
+
* scheduled start, one per fenced step), embedding the root →
|
|
933
|
+
* `(11+N)(2+N)`
|
|
934
|
+
* - actor step grant: M capabilities, embedding the root → `M(2+N)`
|
|
935
|
+
* - invocation: one capability; the grant AND the root are attached as
|
|
936
|
+
* top-level proofs (flowAuthorityIndex) → `1 + work(grant) + (1+N)`
|
|
937
|
+
*
|
|
938
|
+
* Sized for N = M = 120. The heaviest shape is the flow-manager's
|
|
939
|
+
* invocation: `1 + 131·122 + 121 = 16,104` (an actor's is
|
|
940
|
+
* `1 + 120·122 + 121 = 14,762`); `maxWork` is 1.5× that, rounded up. The widest
|
|
941
|
+
* link is the manager grant at 131 capabilities; `maxCapabilitiesPerLink` is
|
|
942
|
+
* 1.5× that, rounded up. Depth stays at the library default of 10 (real
|
|
943
|
+
* chains are 2–3 deep). A unit is roughly one signature check, so a token at
|
|
944
|
+
* `maxWork` may cost seconds of CPU to refuse; the bound stays finite on
|
|
945
|
+
* purpose.
|
|
946
|
+
*
|
|
947
|
+
* Every other service that validates these tokens on @ixo/ucan 2.3.0+
|
|
948
|
+
* (the flow-manager / qiforge) must use this same constant, or the same flows
|
|
949
|
+
* that verify here will be refused there with INVALID_FORMAT.
|
|
950
|
+
*/
|
|
951
|
+
declare const PORTAL_PROOF_CHAIN_LIMITS: Readonly<ProofChainLimits>;
|
|
921
952
|
interface UcanVerificationEnv {
|
|
922
953
|
/** Resolves did:ixo (and other non-did:key) DIDs to their did:key verification keys. */
|
|
923
954
|
didResolver?: DIDKeyResolver;
|
|
@@ -3228,6 +3259,25 @@ interface BlocknoteHandlers {
|
|
|
3228
3259
|
getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
|
|
3229
3260
|
getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
|
|
3230
3261
|
getCurrentUser: () => User;
|
|
3262
|
+
/** Host check that a claim without a live card guard has no managed draft pending for its owner; never an authorization grant. */
|
|
3263
|
+
checkClaimCardDispatch?: (params: {
|
|
3264
|
+
ownerKind?: 'flow-claim-block';
|
|
3265
|
+
flowId: string;
|
|
3266
|
+
runId: string;
|
|
3267
|
+
stepId: string;
|
|
3268
|
+
collectionId: string;
|
|
3269
|
+
schema: unknown;
|
|
3270
|
+
}) => Promise<void>;
|
|
3271
|
+
/** Host check that a bid without a live card guard has no managed draft pending for its owner; signing and role/group authority remain with the existing executor. */
|
|
3272
|
+
checkBidCardDispatch?: (params: {
|
|
3273
|
+
flowId: string;
|
|
3274
|
+
runId: string;
|
|
3275
|
+
stepId: string;
|
|
3276
|
+
collectionId: string;
|
|
3277
|
+
roleId: string;
|
|
3278
|
+
groupId?: string;
|
|
3279
|
+
schema: unknown;
|
|
3280
|
+
}) => Promise<void>;
|
|
3231
3281
|
/**
|
|
3232
3282
|
* The Personal Agent (chat) oracle's DID for the active network. This is the
|
|
3233
3283
|
* ENTITY DID (display, lookup, routing). Use `getOracleAuthDid` instead when
|
|
@@ -8619,6 +8669,17 @@ interface ActionHandlers {
|
|
|
8619
8669
|
getOnlyClaimCollections?: (deedDid: string) => Promise<any[]>;
|
|
8620
8670
|
getDeedSurveyTemplate?: (...args: any[]) => any;
|
|
8621
8671
|
getDeedRubric?: (...args: any[]) => any;
|
|
8672
|
+
/**
|
|
8673
|
+
* Host duplicate-dispatch check for a claim submitted without a card guard (the same handler as
|
|
8674
|
+
* the claim form's). Throws to refuse; resolves when the claim may go ahead.
|
|
8675
|
+
*/
|
|
8676
|
+
checkClaimCardDispatch?: (params: {
|
|
8677
|
+
flowId: string;
|
|
8678
|
+
runId: string;
|
|
8679
|
+
stepId: string;
|
|
8680
|
+
collectionId: string;
|
|
8681
|
+
schema: unknown;
|
|
8682
|
+
}) => Promise<void>;
|
|
8622
8683
|
requestPin?: (...args: any[]) => any;
|
|
8623
8684
|
signCredential?: (...args: any[]) => any;
|
|
8624
8685
|
publicFileUpload?: (...args: any[]) => any;
|
|
@@ -8712,6 +8773,14 @@ declare enum CollectionStateEnum {
|
|
|
8712
8773
|
interface CollectionCoin {
|
|
8713
8774
|
denom: string;
|
|
8714
8775
|
amount: string;
|
|
8776
|
+
/**
|
|
8777
|
+
* Only on editor-emitted collection payment legs whose `denom` is the
|
|
8778
|
+
* display token `'USDC'`: the exact registry chain denom (Noble or
|
|
8779
|
+
* Injective USDC, see `core/usdc`) the leg must be written as, so an update
|
|
8780
|
+
* re-emits a collection's original USDC denom. Hosts map `'USDC'` without a
|
|
8781
|
+
* valid `baseDenom` to `DEFAULT_USDC_DENOM`.
|
|
8782
|
+
*/
|
|
8783
|
+
baseDenom?: string;
|
|
8715
8784
|
}
|
|
8716
8785
|
/**
|
|
8717
8786
|
* A CW20 token payment leg. Mirrors `ixo.claims.v1beta1.CW20Payment`.
|
|
@@ -10757,4 +10826,4 @@ interface ActionResult {
|
|
|
10757
10826
|
};
|
|
10758
10827
|
}
|
|
10759
10828
|
|
|
10760
|
-
export { createRuntimeStateManager as $, type Addr as A, type BlockRequirements as B, type CosmosMsgForEmpty as C, type DelegationChainValidationResult as D, type Expiration as E, type FlowRuntimeStateManager as F, type UcanService as G, type UcanServiceConfig as H, type ImportProtocolTemplateResult as I, type UcanServiceHandlers as J, type Uint128 as K, type ListProtocolDeedsWithTemplatesParams as L, type MatrixPrivacySettings as M, type User as N, type Vote as O, type ProposalAction as P, type VoteInfo as Q, type VoteResponse as R, type SingleChoiceProposal as S, type Threshold as T, type UcanCapability as U, ValidatorActionType as V, type Votes as W, blockSpecs as X, createInvocationStore as Y, createMemoryInvocationStore as Z, createMemoryUcanDelegationStore as _, AuthzExecActionTypes as a, type ActionReadBackMetadata as a$, createUcanDelegationStore as a0, createUcanService as a1, getExtraSlashMenuItems as a2, useBlocknoteContext as a3, useBlocknoteHandlers as a4, useTranslate as a5, type FlowNodeAuthzExtension as a6, type FlowNode as a7, type EvaluationStatus as a8, type IxoEditorType as a9, type ActionEventDefinition as aA, type ActionDoneContract as aB, type OutputSchemaField as aC, type ActionRiskTier as aD, type ActionSchedulingContract as aE, type TopicActionInvocationV1 as aF, type TopicActionReceiptV2 as aG, type TopicActionRecord as aH, type TopicActionRuntimeProvider as aI, type DesignPodService as aJ, type DesignPodPhaseId as aK, type DesignPodControlId as aL, type DesignPodActionProofV1 as aM, type DesignPodPhaseCommitmentV1 as aN, type DesignPodArtifactReceiptV1 as aO, type LegacyDesignPodEvidenceV1 as aP, type DesignPodProjectIdentityV1 as aQ, type DesignPodControlRevisionV1 as aR, type DesignPodReviewRecordV1 as aS, type DesignPodMethodManifestV1 as aT, type DesignPodFlowStateV1 as aU, type DesignPodPhaseDefinitionV1 as aV, type RunEventInput as aW, type RunJsonValue as aX, type ActionRunContext as aY, type CompletionCheck as aZ, type ReadBackTerminalState as a_, type PendingInvocation as aa, type ActionServices as ab, type ActionHandlers as ac, type RunEventAppender as ad, type TopicExecutionContext as ae, TopicActionBridge as af, type DesignPodRuntimeAuthorityV1 as ag, type ActionResult as ah, type TopicActionWriteBackResult as ai, type FlowNodeRuntimeState as aj, type ActionDefinition as ak, type DesignPodMethodId as al, type IxoBlockProps as am, type InsertProfile as an, type DomainCardData as ao, type DomainCardRenderer as ap, type DynamicListData as aq, type DynamicListDataProvider as ar, type DynamicListPanelRenderer as as, type DynamicListRenderer as at, type TopicActionRuntimeContext as au, type VisualizationRenderer as av, isIxoBlockType as aw, type UnlMapConfig as ax, type TopicSemanticRecordDefinition as ay, type TopicActionMetadata as az, type BlocknoteContextValue as b, type FlowRequestFactsV1 as b$, type ActionProofDeclaration as b0, type ReceiptExpectation as b1, type ReceiptStatus as b2, type RunRecordDetails as b3, type RunLifecycleAuthorizer as b4, type UcanVerificationEnv as b5, type FlowMetadata as b6, AUTHORITY_RECHECK_MS as b7, type ActionContext as b8, type ActionRunEventInput as b9, type DesignPodChecklistRecordV1 as bA, type DesignPodControlDefinitionV1 as bB, type DesignPodControlStatus as bC, type DesignPodInvocationVerificationRequestV1 as bD, type DesignPodInvocationVerifier as bE, type DesignPodPackageFileV1 as bF, type DesignPodProtocolRecordV1 as bG, type DesignPodReleaseRecordV1 as bH, type DesignPodReviewAssignmentV1 as bI, type DesignPodReviewRequestV1 as bJ, type DomainVfsService as bK, type EmailService as bL, type EntityService as bM, type EvalRegisterService as bN, type EvaluationRuntimeService as bO, type EvidenceService as bP, type ExecutionWithInvocationResult as bQ, ExplicitRunRequiredError as bR, FLOW_REQUESTS_MAP_KEY as bS, type FailedListenerRun as bT, type FindProofsResult as bU, type FinishRunResult as bV, type FlowAuthorityIndex as bW, type FlowAuthorityIndexOptions as bX, type FlowInvocationService as bY, type FlowNodeBase as bZ, FlowNotMigratedError as b_, type AgentRuntimeService as ba, type AuthorityDecision as bb, type BidService as bc, type CancelRunParams as bd, type CarbonService as be, type ChainFailure as bf, type ChainFailureCode as bg, type ClaimCollectionURI as bh, type ClaimService as bi, type CloseRunParams as bj, type CollectionService as bk, type CollectionUsersService as bl, type CompileDesignPodReleaseOptions as bm, type CompiledDesignPodReleaseV1 as bn, type CreateDelegationParams as bo, type CreateFlowRequestParams as bp, type CreateInvocationParams as bq, type CreateRootDelegationParams as br, type CredentialIssuanceService as bs, DESIGN_POD_CONTROL_IDS as bt, DESIGN_POD_METHODS as bu, DESIGN_POD_PHASE_IDS as bv, DESIGN_POD_TEMPLATE_ID as bw, DESIGN_YOMA_METHOD_V1 as bx, type DID as by, type DesignPodChecklistItemDefinitionV1 as bz, type BlocknoteHandlers as c, type TopicActionReceiptVerifier as c$, type FlowRequestKind as c0, type FlowRequestRecordV1 as c1, type FlowRunLifecycleService as c2, type FundingVerificationService as c3, type GrantVerdict as c4, type HttpService as c5, InMemoryTopicActionOutboxStore as c6, type IncidentService as c7, type IntegrationsService as c8, type InvocationRequest as c9, type RunDefinitionSnapshot as cA, type RunJsonObject as cB, type RunLifecycleAuthorizationDecision as cC, RunLifecycleAuthorizationError as cD, type RunLifecycleAuthorizationRequest as cE, type RunLifecycleCapability as cF, type RunLogEventInput as cG, type RunManifest as cH, type RunMeta as cI, RunNotMigratedError as cJ, RunNotReadyError as cK, type RunRequestProof as cL, type RunSnapshot as cM, type RunStorageVersion as cN, type RunTerminalAuthorizationProof as cO, type RunTerminalRecord as cP, type RunTerminalReservation as cQ, type SettlementService as cR, type SignedCapability as cS, type StartRunParams as cT, type StartRunResult as cU, TerminalRunExecutionError as cV, type TopicActionOutboxEntry as cW, type TopicActionOutboxStore as cX, type TopicActionReceiptSigner as cY, type TopicActionReceiptSink as cZ, type TopicActionReceiptStatus as c_, type InvocationResult as ca, type InvocationVerdict as cb, LEGACY_RUN_STORAGE_VERSION as cc, type LifecycleRunEventInput as cd, type LinkedClaim as ce, MULTI_RUN_STORAGE_VERSION as cf, type MatrixCredentialService as cg, type MigrateFlowParams as ch, type MigrateFlowResult as ci, type MultiRunMigrationResult as cj, type NodeServiceReport as ck, type NodeState as cl, type NotifyService as cm, type OracleService as cn, type OutcomeCertificateService as co, PROFESSIONAL_SERVICE_METHOD_V1 as cp, RUNS_TERMINAL_MAP_KEY as cq, RUNS_TERMINAL_PENDING_MAP_KEY as cr, RUN_RECORD_AUDIT_TYPE as cs, RUN_STORAGE_VERSION_KEY as ct, type ReceiptVerifier as cu, type ReceiptVerifierOptions as cv, type RecordFlowActionPhaseParams as cw, type RubricService as cx, type RunDefinitionBlock as cy, type RunDefinitionDrift as cz, BlocknoteProvider as d, isRecordInRun as d$, type TopicActionTerminalStatus as d0, type TopicActionThreadUpdateV1 as d1, type TopicActionWriteBackState as d2, type TopicOperationAppendResult as d3, TopicRevisionConflictError as d4, type TopicService as d5, type UcanVerificationHandlers as d6, UnknownRunError as d7, type UnsignedTopicActionReceiptV2 as d8, type VerifiedGrant as d9, createRunId as dA, createRunRuntimeReader as dB, createRunRuntimeReaderWithDoc as dC, createRunScopedRuntimeManager as dD, createRunTerminalAuthorizationProof as dE, createRunUlid as dF, createYDocRuntimeManager as dG, decodeCarBase64 as dH, deleteActionState as dI, detectRunDefinitionDrift as dJ, digestInputResponse as dK, digestRequestValue as dL, enableMultiRunStorage as dM, ensureRun as dN, findFailedListenersForSourceRun as dO, getOrCreateBlockPendingMap as dP, getPendingInvocationsMap as dQ, getRunActionsMap as dR, getRunMeta as dS, getRunStorageVersion as dT, getRunsMap as dU, getRunsTerminalMap as dV, getRunsTerminalPendingMap as dW, grantCoversExercise as dX, hasLegacyRuntimeHistory as dY, isBelowTheLineBlock as dZ, isLegacyRuntimeAdoptionEnabled as d_, type VerifiedInvocation as da, type VerifyGrantOptions as db, type VerifyInvocationOptions as dc, YjsTopicActionOutboxStore as dd, type YoIdLinkService as de, type YomaOpportunityService as df, adoptLegacyRuntime as dg, appendRunRecord as dh, assertRunActionExecutionAllowed as di, buildRunDefinitionSnapshot as dj, buildTopicActionThreadUpdate as dk, cancelRun as dl, capabilityForRequest as dm, clearAllActionState as dn, clearRuntimeForTemplateClone as dp, closeRun as dq, collectPhantomLegacyRun as dr, compileDesignPodRelease as ds, computePendingInvocationId as dt, computeRunDefinitionHash as du, computeRunSummary as dv, countPendingInvocations as dw, createFlowAuthorityIndex as dx, createFlowRequest as dy, createReceiptVerifier as dz, type DelegationGrant as e, isRunTerminalOrPending as e0, lifecycleRequestProof as e1, listOpenRuns as e2, listRuns as e3, migrateFlowToSessions as e4, queuePendingInvocation as e5, readActionState as e6, readActionStates as e7, readFlowRequest as e8, readPendingInvocations as e9, usesLegacyRuntimeCompatibility as eA, verifyGrant as eB, verifyInvocation as eC, writeActionState as eD, writeFlowRequest as eE, readRunActionStates as ea, readRunRecords as eb, recordRunDefinitionDrift as ec, removePendingInvocation as ed, replayFailedListenerRun as ee, requestStepRun as ef, resetActionState as eg, resolveActiveRunId as eh, resolveRecordRunId as ei, resolveRunIdForExecution as ej, resolveRunIdForRead as ek, revocationCheckerFor as el, seedRunFromLegacyRuntime as em, setAdvisoryActiveRunId as en, setMultiRunStorage as eo, signedCapabilityCovers as ep, snapshotInputRefs as eq, startRun as er, subscribeToActionState as es, toRunJsonValue as et, topicActionReceiptSigningPayload as eu, topicActionThreadUpdateBody as ev, topicActionThreadUpdateId as ew, topicActionThreadUpdateTransactionId as ex, topicSemanticRecordsDigest as ey, ucanVerificationEnvFrom as ez, type ImportProtocolTemplatesToSpaceParams as f, type InvocationStore as g, type IxoCollaborativeEditorOptions as h, type IxoCollaborativeUser as i, type IxoEditorConfig as j, type IxoEditorOptions as k, type IxoEditorTheme as l, type MatrixRoom as m, type MatrixSpace as n, type MatrixSpaceStructure as o, type MatrixSubspace as p, type ProposalResponse as q, type ProtocolDeedWithTemplates as r, type ProtocolTemplateSummary as s, StakeType as t, type Status as u, type StoredDelegation as v, type StoredInvocation as w, type Timestamp as x, type Translate as y, type UcanDelegationStore as z };
|
|
10829
|
+
export { createRuntimeStateManager as $, type Addr as A, type BlockRequirements as B, type CosmosMsgForEmpty as C, type DelegationChainValidationResult as D, type Expiration as E, type FlowRuntimeStateManager as F, type UcanService as G, type UcanServiceConfig as H, type ImportProtocolTemplateResult as I, type UcanServiceHandlers as J, type Uint128 as K, type ListProtocolDeedsWithTemplatesParams as L, type MatrixPrivacySettings as M, type User as N, type Vote as O, type ProposalAction as P, type VoteInfo as Q, type VoteResponse as R, type SingleChoiceProposal as S, type Threshold as T, type UcanCapability as U, ValidatorActionType as V, type Votes as W, blockSpecs as X, createInvocationStore as Y, createMemoryInvocationStore as Z, createMemoryUcanDelegationStore as _, AuthzExecActionTypes as a, type ActionReadBackMetadata as a$, createUcanDelegationStore as a0, createUcanService as a1, getExtraSlashMenuItems as a2, useBlocknoteContext as a3, useBlocknoteHandlers as a4, useTranslate as a5, type FlowNodeAuthzExtension as a6, type FlowNode as a7, type EvaluationStatus as a8, type IxoEditorType as a9, type ActionEventDefinition as aA, type ActionDoneContract as aB, type OutputSchemaField as aC, type ActionRiskTier as aD, type ActionSchedulingContract as aE, type TopicActionInvocationV1 as aF, type TopicActionReceiptV2 as aG, type TopicActionRecord as aH, type TopicActionRuntimeProvider as aI, type DesignPodService as aJ, type DesignPodPhaseId as aK, type DesignPodControlId as aL, type DesignPodActionProofV1 as aM, type DesignPodPhaseCommitmentV1 as aN, type DesignPodArtifactReceiptV1 as aO, type LegacyDesignPodEvidenceV1 as aP, type DesignPodProjectIdentityV1 as aQ, type DesignPodControlRevisionV1 as aR, type DesignPodReviewRecordV1 as aS, type DesignPodMethodManifestV1 as aT, type DesignPodFlowStateV1 as aU, type DesignPodPhaseDefinitionV1 as aV, type RunEventInput as aW, type RunJsonValue as aX, type ActionRunContext as aY, type CompletionCheck as aZ, type ReadBackTerminalState as a_, type PendingInvocation as aa, type ActionServices as ab, type ActionHandlers as ac, type RunEventAppender as ad, type TopicExecutionContext as ae, TopicActionBridge as af, type DesignPodRuntimeAuthorityV1 as ag, type ActionResult as ah, type TopicActionWriteBackResult as ai, type FlowNodeRuntimeState as aj, type ActionDefinition as ak, type DesignPodMethodId as al, type IxoBlockProps as am, type UnlMapConfig as an, type VisualizationRenderer as ao, type DynamicListDataProvider as ap, type DynamicListPanelRenderer as aq, type DynamicListRenderer as ar, type DomainCardRenderer as as, type TopicActionRuntimeContext as at, type InsertProfile as au, type DomainCardData as av, type DynamicListData as aw, isIxoBlockType as ax, type TopicSemanticRecordDefinition as ay, type TopicActionMetadata as az, type BlocknoteContextValue as b, type FlowRequestFactsV1 as b$, type ActionProofDeclaration as b0, type ReceiptExpectation as b1, type ReceiptStatus as b2, type RunRecordDetails as b3, type RunLifecycleAuthorizer as b4, type UcanVerificationEnv as b5, type FlowMetadata as b6, AUTHORITY_RECHECK_MS as b7, type ActionContext as b8, type ActionRunEventInput as b9, type DesignPodChecklistRecordV1 as bA, type DesignPodControlDefinitionV1 as bB, type DesignPodControlStatus as bC, type DesignPodInvocationVerificationRequestV1 as bD, type DesignPodInvocationVerifier as bE, type DesignPodPackageFileV1 as bF, type DesignPodProtocolRecordV1 as bG, type DesignPodReleaseRecordV1 as bH, type DesignPodReviewAssignmentV1 as bI, type DesignPodReviewRequestV1 as bJ, type DomainVfsService as bK, type EmailService as bL, type EntityService as bM, type EvalRegisterService as bN, type EvaluationRuntimeService as bO, type EvidenceService as bP, type ExecutionWithInvocationResult as bQ, ExplicitRunRequiredError as bR, FLOW_REQUESTS_MAP_KEY as bS, type FailedListenerRun as bT, type FindProofsResult as bU, type FinishRunResult as bV, type FlowAuthorityIndex as bW, type FlowAuthorityIndexOptions as bX, type FlowInvocationService as bY, type FlowNodeBase as bZ, FlowNotMigratedError as b_, type AgentRuntimeService as ba, type AuthorityDecision as bb, type BidService as bc, type CancelRunParams as bd, type CarbonService as be, type ChainFailure as bf, type ChainFailureCode as bg, type ClaimCollectionURI as bh, type ClaimService as bi, type CloseRunParams as bj, type CollectionService as bk, type CollectionUsersService as bl, type CompileDesignPodReleaseOptions as bm, type CompiledDesignPodReleaseV1 as bn, type CreateDelegationParams as bo, type CreateFlowRequestParams as bp, type CreateInvocationParams as bq, type CreateRootDelegationParams as br, type CredentialIssuanceService as bs, DESIGN_POD_CONTROL_IDS as bt, DESIGN_POD_METHODS as bu, DESIGN_POD_PHASE_IDS as bv, DESIGN_POD_TEMPLATE_ID as bw, DESIGN_YOMA_METHOD_V1 as bx, type DID as by, type DesignPodChecklistItemDefinitionV1 as bz, type BlocknoteHandlers as c, type TopicActionReceiptStatus as c$, type FlowRequestKind as c0, type FlowRequestRecordV1 as c1, type FlowRunLifecycleService as c2, type FundingVerificationService as c3, type GrantVerdict as c4, type HttpService as c5, InMemoryTopicActionOutboxStore as c6, type IncidentService as c7, type IntegrationsService as c8, type InvocationRequest as c9, type RunDefinitionDrift as cA, type RunDefinitionSnapshot as cB, type RunJsonObject as cC, type RunLifecycleAuthorizationDecision as cD, RunLifecycleAuthorizationError as cE, type RunLifecycleAuthorizationRequest as cF, type RunLifecycleCapability as cG, type RunLogEventInput as cH, type RunManifest as cI, type RunMeta as cJ, RunNotMigratedError as cK, RunNotReadyError as cL, type RunRequestProof as cM, type RunSnapshot as cN, type RunStorageVersion as cO, type RunTerminalAuthorizationProof as cP, type RunTerminalRecord as cQ, type RunTerminalReservation as cR, type SettlementService as cS, type SignedCapability as cT, type StartRunParams as cU, type StartRunResult as cV, TerminalRunExecutionError as cW, type TopicActionOutboxEntry as cX, type TopicActionOutboxStore as cY, type TopicActionReceiptSigner as cZ, type TopicActionReceiptSink as c_, type InvocationResult as ca, type InvocationVerdict as cb, LEGACY_RUN_STORAGE_VERSION as cc, type LifecycleRunEventInput as cd, type LinkedClaim as ce, MULTI_RUN_STORAGE_VERSION as cf, type MatrixCredentialService as cg, type MigrateFlowParams as ch, type MigrateFlowResult as ci, type MultiRunMigrationResult as cj, type NodeServiceReport as ck, type NodeState as cl, type NotifyService as cm, type OracleService as cn, type OutcomeCertificateService as co, PORTAL_PROOF_CHAIN_LIMITS as cp, PROFESSIONAL_SERVICE_METHOD_V1 as cq, RUNS_TERMINAL_MAP_KEY as cr, RUNS_TERMINAL_PENDING_MAP_KEY as cs, RUN_RECORD_AUDIT_TYPE as ct, RUN_STORAGE_VERSION_KEY as cu, type ReceiptVerifier as cv, type ReceiptVerifierOptions as cw, type RecordFlowActionPhaseParams as cx, type RubricService as cy, type RunDefinitionBlock as cz, BlocknoteProvider as d, isLegacyRuntimeAdoptionEnabled as d$, type TopicActionReceiptVerifier as d0, type TopicActionTerminalStatus as d1, type TopicActionThreadUpdateV1 as d2, type TopicActionWriteBackState as d3, type TopicOperationAppendResult as d4, TopicRevisionConflictError as d5, type TopicService as d6, type UcanVerificationHandlers as d7, UnknownRunError as d8, type UnsignedTopicActionReceiptV2 as d9, createReceiptVerifier as dA, createRunId as dB, createRunRuntimeReader as dC, createRunRuntimeReaderWithDoc as dD, createRunScopedRuntimeManager as dE, createRunTerminalAuthorizationProof as dF, createRunUlid as dG, createYDocRuntimeManager as dH, decodeCarBase64 as dI, deleteActionState as dJ, detectRunDefinitionDrift as dK, digestInputResponse as dL, digestRequestValue as dM, enableMultiRunStorage as dN, ensureRun as dO, findFailedListenersForSourceRun as dP, getOrCreateBlockPendingMap as dQ, getPendingInvocationsMap as dR, getRunActionsMap as dS, getRunMeta as dT, getRunStorageVersion as dU, getRunsMap as dV, getRunsTerminalMap as dW, getRunsTerminalPendingMap as dX, grantCoversExercise as dY, hasLegacyRuntimeHistory as dZ, isBelowTheLineBlock as d_, type VerifiedGrant as da, type VerifiedInvocation as db, type VerifyGrantOptions as dc, type VerifyInvocationOptions as dd, YjsTopicActionOutboxStore as de, type YoIdLinkService as df, type YomaOpportunityService as dg, adoptLegacyRuntime as dh, appendRunRecord as di, assertRunActionExecutionAllowed as dj, buildRunDefinitionSnapshot as dk, buildTopicActionThreadUpdate as dl, cancelRun as dm, capabilityForRequest as dn, clearAllActionState as dp, clearRuntimeForTemplateClone as dq, closeRun as dr, collectPhantomLegacyRun as ds, compileDesignPodRelease as dt, computePendingInvocationId as du, computeRunDefinitionHash as dv, computeRunSummary as dw, countPendingInvocations as dx, createFlowAuthorityIndex as dy, createFlowRequest as dz, type DelegationGrant as e, isRecordInRun as e0, isRunTerminalOrPending as e1, lifecycleRequestProof as e2, listOpenRuns as e3, listRuns as e4, migrateFlowToSessions as e5, queuePendingInvocation as e6, readActionState as e7, readActionStates as e8, readFlowRequest as e9, ucanVerificationEnvFrom as eA, usesLegacyRuntimeCompatibility as eB, verifyGrant as eC, verifyInvocation as eD, writeActionState as eE, writeFlowRequest as eF, readPendingInvocations as ea, readRunActionStates as eb, readRunRecords as ec, recordRunDefinitionDrift as ed, removePendingInvocation as ee, replayFailedListenerRun as ef, requestStepRun as eg, resetActionState as eh, resolveActiveRunId as ei, resolveRecordRunId as ej, resolveRunIdForExecution as ek, resolveRunIdForRead as el, revocationCheckerFor as em, seedRunFromLegacyRuntime as en, setAdvisoryActiveRunId as eo, setMultiRunStorage as ep, signedCapabilityCovers as eq, snapshotInputRefs as er, startRun as es, subscribeToActionState as et, toRunJsonValue as eu, topicActionReceiptSigningPayload as ev, topicActionThreadUpdateBody as ew, topicActionThreadUpdateId as ex, topicActionThreadUpdateTransactionId as ey, topicSemanticRecordsDigest as ez, type ImportProtocolTemplatesToSpaceParams as f, type InvocationStore as g, type IxoCollaborativeEditorOptions as h, type IxoCollaborativeUser as i, type IxoEditorConfig as j, type IxoEditorOptions as k, type IxoEditorTheme as l, type MatrixRoom as m, type MatrixSpace as n, type MatrixSpaceStructure as o, type MatrixSubspace as p, type ProposalResponse as q, type ProtocolDeedWithTemplates as r, type ProtocolTemplateSummary as s, StakeType as t, type Status as u, type StoredDelegation as v, type StoredInvocation as w, type Timestamp as x, type Translate as y, type UcanDelegationStore as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"description": "A custom BlockNote editor wrapper for IXO team",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@blocknote/mantine": "0.56.0",
|
|
100
100
|
"@blocknote/react": "0.56.0",
|
|
101
101
|
"@dnd-kit/core": "^6.3.1",
|
|
102
|
-
"@ixo/ucan": "^2.
|
|
102
|
+
"@ixo/ucan": "^2.3.0",
|
|
103
103
|
"@ucanto/core": "10.4.6",
|
|
104
104
|
"@tabler/icons-react": "3.35.0",
|
|
105
105
|
"@tiptap/core": "^3.32.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/mantine/blocks/action/actionTypes/bid/BidFlowDetail.tsx"],"sourcesContent":["import { useRunRuntimeReader } from '@/mantine/hooks/useRunRuntimeReader';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Loader, Stack, Text } from '@mantine/core';\nimport { DismissibleAlert as Alert } from '@/mantine/components/Base/DismissibleAlert';\nimport { IconPlayerPlay } from '@tabler/icons-react';\nimport BasePrimaryButton from '@/mantine/components/Base/BasePrimaryButton';\nimport { SurveyModel } from '@ixo/surveys';\nimport { StableSurvey } from '@/mantine/components/StableSurvey';\nimport { SurveyAiFillButton } from '@/mantine/components/SurveyAiFillButton';\nimport { surveyTheme } from '@/mantine/blocks/claim/flow/theme';\nimport { useBlocknoteHandlers, useTranslate } from '@/mantine/context/BlocknoteContext';\nimport { useRegisterOpenSurvey } from '@/mantine/hooks/useOpenSurveys';\nimport { resolveReferences } from '@/mantine/utils/referenceResolver';\nimport { attachSurveyAnalytics, buildBlockLabel, getFlowRoomContext } from '@/mantine/utils/surveyAnalytics';\nimport type { ActionTypeFlowProps } from '../../actionTypeUI';\nimport { ActAsGroupSection, actAsGroupReady, actAsGroupRuntimeInputs, emptyActAsGroupState, type ActAsGroupState } from '../_shared/groupExecution/ActAsGroupSection';\nimport { GroupProposalStatus } from '../_shared/groupExecution/GroupProposalStatus';\nimport type { BidRuntimeInputs } from '@/core/lib/actionRegistry/actions/bid/types';\nimport { parseBidActionInputs } from './types';\nimport BaseSelect from '@/mantine/components/Base/BaseSelect';\nimport { AgentRole, Bid } from '@/mantine/context/BlocknoteContext';\nimport { actionAlertStyles } from '../../alertStyles';\n\nexport const BidFlowDetail: React.FC<ActionTypeFlowProps<BidRuntimeInputs>> = ({\n inputs,\n editor,\n runtime,\n block,\n isDisabled,\n provideSigningHandler,\n unlockSigning,\n registerRuntimeInputs,\n executeAction,\n}) => {\n const [actAs, setActAs] = useState<ActAsGroupState>(emptyActAsGroupState());\n const t = useTranslate();\n const handlers = useBlocknoteHandlers();\n const handlersRef = useRef(handlers);\n useEffect(() => {\n handlersRef.current = handlers;\n }, [handlers]);\n const actorDid = useMemo(() => {\n try {\n return handlers?.getCurrentUser?.()?.address || '';\n } catch {\n return '';\n }\n }, [handlers]);\n\n const parsed = useMemo(() => parseBidActionInputs(inputs), [inputs]);\n const editorDocument = editor?.document || [];\n const runtimeReader = useRunRuntimeReader(editor);\n const resolveOpts = useMemo(() => ({ yRuntime: runtimeReader }), [runtimeReader]);\n const deedDid = resolveReferences(parsed.deedDid, editorDocument, resolveOpts).trim();\n const collectionId = resolveReferences(parsed.collectionId, editorDocument, resolveOpts).trim();\n\n const [role, setRole] = useState<'service_agent' | 'evaluation_agent'>('service_agent');\n const [surveyJson, setSurveyJson] = useState<any>(null);\n const [loadingSurvey, setLoadingSurvey] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const [submitting, setSubmitting] = useState(false);\n const [statusLoading, setStatusLoading] = useState(false);\n const [userBid, setUserBid] = useState<Bid | null>(null);\n const [userRole, setUserRole] = useState<AgentRole | null>(null);\n const [surveyReady, setSurveyReady] = useState(false);\n\n const surveyModel = useMemo(() => {\n if (!surveyJson) return null;\n const model = new SurveyModel(surveyJson);\n model.applyTheme(surveyTheme);\n model.showQuestionNumbers = 'off';\n model.questionsOnPageMode = 'singlePage';\n if (provideSigningHandler) {\n model.showCompleteButton = false;\n model.showNavigationButtons = 'none';\n model.showCompletedPage = false;\n // Hide review/thank-you panel — the diff view replaces it\n const reviewEl = model.getQuestionByName('reviewAndSubmit') || model.getPanelByName('reviewAndSubmit');\n if (reviewEl) reviewEl.visible = false;\n const reviewMsg = model.getQuestionByName('reviewMessage');\n if (reviewMsg) reviewMsg.visible = false;\n }\n return model;\n }, [surveyJson, provideSigningHandler]);\n\n // Track whether the survey is loaded and all required questions are filled\n useEffect(() => {\n if (!surveyModel) {\n setSurveyReady(false);\n return undefined;\n }\n\n const checkReady = () => {\n const questions = surveyModel.getAllQuestions(true);\n const allFilled = questions.every((q: any) => !q.isRequired || !q.isEmpty());\n setSurveyReady(allFilled);\n };\n\n surveyModel.onValueChanged.add(checkReady);\n checkReady();\n\n return () => {\n surveyModel.onValueChanged.remove(checkReady);\n };\n }, [surveyModel]);\n\n const loadSurveyTemplate = useCallback(async () => {\n if (!deedDid) {\n setError(t('actionTypes.bid.flow.errors.didRequired', { defaultValue: '{{did}} is required in template configuration.', did: 'DID' }));\n return;\n }\n if (!collectionId) {\n setError(t('actionTypes.bid.flow.errors.collectionRequired', { defaultValue: '{{collection}} is required in template configuration.', collection: 'Collection' }));\n return;\n }\n const handlers = handlersRef.current;\n\n setLoadingSurvey(true);\n setError(null);\n try {\n const result =\n role === 'service_agent' ? await handlers.getBidContributorSurveyTemplate(deedDid, collectionId) : await handlers.getBidEvaluatorSurveyTemplate(deedDid, collectionId);\n if (!result?.surveyTemplate) {\n setSurveyJson(null);\n setError(t('actionTypes.bid.flow.errors.noSurveyForRole', { defaultValue: 'No survey template found for the selected role.' }));\n return;\n }\n setSurveyJson(result.surveyTemplate);\n } catch (err) {\n setSurveyJson(null);\n setError(err instanceof Error ? err.message : t('actionTypes.shared.errors.surveyTemplateLoad', { defaultValue: 'Failed to load survey template' }));\n } finally {\n setLoadingSurvey(false);\n }\n }, [role, deedDid, collectionId]);\n\n useEffect(() => {\n setSurveyJson(null);\n setError(null);\n }, [role, deedDid, collectionId]);\n\n useEffect(() => {\n let mounted = true;\n\n const fetchApplicationState = async () => {\n if (!deedDid || !collectionId || !actorDid) {\n if (!mounted) return;\n setUserBid(null);\n setUserRole(null);\n return;\n }\n const handlers = handlersRef.current;\n\n setStatusLoading(true);\n try {\n const formattedDid = actorDid.startsWith('did:ixo:') ? actorDid : `did:ixo:${actorDid}`;\n\n const [bidResponse, collectionsResponse] = await Promise.all([\n handlers.queryBidsByDid({ collectionId, did: formattedDid, entityDid: deedDid }),\n handlers.getClaimCollections(deedDid),\n ]);\n\n if (!mounted) return;\n\n const bid = Array.isArray(bidResponse?.data) && bidResponse.data.length > 0 ? bidResponse.data[0] : null;\n setUserBid(bid);\n\n const adminAddress = collectionsResponse?.collections?.find?.((c: any) => c?.id === collectionId)?.admin || collectionsResponse?.adminAddress || '';\n\n if (!adminAddress) {\n setUserRole(null);\n return;\n }\n\n const roles = await handlers.getUserRoles({\n userAddress: actorDid,\n adminAddress,\n deedDid,\n collectionIds: [collectionId],\n });\n\n if (!mounted) return;\n const roleData = roles?.find((r) => r.collectionId === collectionId);\n setUserRole(roleData?.role || null);\n } catch {\n if (!mounted) return;\n setUserBid(null);\n setUserRole(null);\n } finally {\n if (mounted) setStatusLoading(false);\n }\n };\n\n fetchApplicationState();\n\n return () => {\n mounted = false;\n };\n }, [deedDid, collectionId, actorDid]);\n\n const isApproved = userRole === AgentRole.ServiceProvider || userRole === AgentRole.Evaluator;\n const isPending = !isApproved && !!userBid;\n const canSubmit = !isPending && !isApproved;\n\n useEffect(() => {\n unlockSigning?.(canSubmit && surveyReady && actAsGroupReady(actAs));\n }, [unlockSigning, canSubmit, surveyReady, actAs]);\n\n useEffect(() => {\n registerRuntimeInputs?.({ role, surveyStarted: !!surveyJson });\n }, [registerRuntimeInputs, role, surveyJson]);\n\n const openSurveyId = `bid:${block.id}:${role}:new`;\n const openSurveyTitle = `Submit Bid${role === 'service_agent' ? ' — Service Agent' : ' — Evaluation Agent'}`;\n\n useRegisterOpenSurvey({\n id: openSurveyId,\n title: openSurveyTitle,\n source: 'panel',\n schema: surveyJson,\n context: {\n flowType: 'bid-submission',\n blockId: block.id,\n blockTitle: block?.props?.title as string | undefined,\n blockType: 'action',\n deedId: deedDid,\n collectionId,\n role,\n ...getFlowRoomContext(editor),\n },\n model: surveyModel,\n enabled: !!surveyModel && canSubmit,\n });\n\n const handleSurveyComplete = useCallback(\n async (sender: any) => {\n if (!canSubmit) {\n return;\n }\n\n if (!executeAction) {\n setError(t('actionTypes.bid.flow.errors.actionNotRegistered', { defaultValue: 'Bid action executor is unavailable' }));\n return;\n }\n\n const submissionProps = {\n flowType: 'bid-submission' as const,\n entityDid: handlers.getEntityDid?.(),\n ...getFlowRoomContext(editor),\n blockId: block.id,\n blockTitle: block?.props?.title as string | undefined,\n blockLabel: buildBlockLabel(block.id, block?.props?.title as string | undefined),\n deedId: deedDid,\n collectionId,\n role,\n };\n let submittedEmitted = false;\n\n setSubmitting(true);\n setError(null);\n\n try {\n handlers.onAnalyticsEvent?.('editor_flow_submission_attempted', submissionProps);\n\n const outcome = await executeAction({\n runtimeInputs: {\n ...actAsGroupRuntimeInputs(actAs),\n deedDid,\n collectionId,\n role,\n surveyAnswers: sender.data,\n } as unknown as BidRuntimeInputs,\n });\n\n if (!outcome.success) {\n throw new Error(outcome.error || t('actionTypes.bid.flow.errors.executionFailed', { defaultValue: 'Bid execution failed' }));\n }\n\n handlers.onAnalyticsEvent?.('editor_flow_submitted', {\n ...submissionProps,\n bidId: (outcome.output as any)?.bidId,\n });\n submittedEmitted = true;\n } catch (err) {\n const message = err instanceof Error ? err.message : t('actionTypes.bid.flow.errors.submitFailed', { defaultValue: 'Failed to submit bid' });\n if (!submittedEmitted) {\n handlers.onAnalyticsEvent?.('editor_flow_submission_failed', { ...submissionProps, reason: message });\n }\n setError(message);\n } finally {\n setSubmitting(false);\n }\n },\n [actorDid, block.id, collectionId, deedDid, editor, executeAction, handlers, role]\n );\n\n useEffect(() => {\n if (!surveyModel) return undefined;\n surveyModel.onComplete.add(handleSurveyComplete);\n return () => {\n surveyModel.onComplete.remove(handleSurveyComplete);\n };\n }, [surveyModel, handleSurveyComplete]);\n\n // Emit section-completed event each time this survey finishes\n useEffect(() => {\n return attachSurveyAnalytics({\n model: surveyModel,\n handlers,\n flowType: 'bid-submission',\n sectionName: `bid-${role}-survey`,\n extraProps: {\n entityDid: handlers?.getEntityDid?.(),\n ...getFlowRoomContext(editor),\n blockId: block.id,\n blockTitle: block?.props?.title,\n blockLabel: buildBlockLabel(block.id, block?.props?.title as string | undefined),\n deedId: deedDid,\n collectionId,\n role,\n },\n });\n }, [surveyModel, handlers, editor, deedDid, collectionId, role, block.id, block?.props?.title]);\n\n useEffect(() => {\n if (!provideSigningHandler || !surveyModel) return;\n provideSigningHandler(async () => {\n surveyModel.tryComplete();\n });\n }, [provideSigningHandler, surveyModel]);\n\n return (\n <Stack gap=\"md\">\n <GroupProposalStatus editor={editor} block={block} runtime={runtime} />\n {runtime?.state !== 'awaiting_readback' && <ActAsGroupSection value={actAs} onChange={setActAs} isDisabled={isDisabled} actionLabel=\"submit this bid\" />}\n {!deedDid || !collectionId ? (\n <Alert color=\"yellow\" styles={actionAlertStyles}>\n {t('actionTypes.shared.errors.configRequired', {\n defaultValue: 'Configure {{did}} and {{claimCollection}} in template mode before running this action.',\n did: 'DID',\n claimCollection: 'claim collection',\n })}\n </Alert>\n ) : (\n <>\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.shared.collectionPrefix', { id: collectionId, defaultValue: `Collection: ${collectionId}` })}\n </Text>\n {statusLoading && (\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.shared.checkingApplicationState', { defaultValue: 'Checking application state...' })}\n </Text>\n )}\n {isPending && (\n <Alert color=\"yellow\" title={t('actionTypes.bid.flow.applicationStatus', { defaultValue: 'Application Status' })} styles={actionAlertStyles}>\n {t('actionTypes.bid.flow.applicationPending', { defaultValue: 'Your application is pending review. Resubmission is disabled.' })}\n </Alert>\n )}\n {isApproved && (\n <Alert color=\"green\" title={t('actionTypes.bid.flow.applicationStatus', { defaultValue: 'Application Status' })} styles={actionAlertStyles}>\n {t('actionTypes.bid.flow.applicationApproved', { defaultValue: 'Your application was approved. You already have the required role.' })}\n </Alert>\n )}\n <BaseSelect\n label={t('actionTypes.bid.flow.applyAs', { defaultValue: 'Apply As' })}\n value={role}\n onChange={(value) => setRole((value as 'service_agent' | 'evaluation_agent') || 'service_agent')}\n data={[\n { value: 'service_agent', label: t('actionTypes.bid.flow.role.contributor', { defaultValue: 'Contributor' }) },\n { value: 'evaluation_agent', label: t('actionTypes.bid.flow.role.evaluator', { defaultValue: 'Evaluator' }) },\n ]}\n disabled={isDisabled || submitting || statusLoading || !canSubmit}\n />\n <BasePrimaryButton\n leftSection={loadingSurvey ? <Loader size={14} /> : <IconPlayerPlay size={14} />}\n onClick={loadSurveyTemplate}\n disabled={isDisabled || loadingSurvey || submitting || statusLoading || !canSubmit}\n >\n {loadingSurvey\n ? t('actionTypes.shared.loadingSurvey', { defaultValue: 'Loading Survey...' })\n : t('actionTypes.bid.flow.startBidSurvey', { defaultValue: 'Start Bid Survey' })}\n </BasePrimaryButton>\n </>\n )}\n\n {error && (\n <Alert color=\"red\" styles={actionAlertStyles}>\n {error}\n </Alert>\n )}\n\n {submitting && (\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.bid.flow.submittingBid', { defaultValue: 'Submitting bid...' })}\n </Text>\n )}\n\n {surveyModel && !loadingSurvey && canSubmit && (\n <>\n <SurveyAiFillButton surveyId={openSurveyId} title={openSurveyTitle} />\n <StableSurvey model={surveyModel} />\n </>\n )}\n </Stack>\n );\n};\n"],"mappings":";;;;;;;;;;;;;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,EAAE,cAAc,cAAc,CAAC,EAAE;AAAA,QAC7G,EAAE,OAAO,oBAAoB,OAAO,EAAE,uCAAuC,EAAE,cAAc,YAAY,CAAC,EAAE;AAAA,MAC9G;AAAA,MACA,UAAU,cAAc,cAAc,iBAAiB,CAAC;AAAA;AAAA,EAC1D,GACA;AAAA,IAAC;AAAA;AAAA,MACC,aAAa,gBAAgB,oCAAC,UAAO,MAAM,IAAI,IAAK,oCAAC,kBAAe,MAAM,IAAI;AAAA,MAC9E,SAAS;AAAA,MACT,UAAU,cAAc,iBAAiB,cAAc,iBAAiB,CAAC;AAAA;AAAA,IAExE,gBACG,EAAE,oCAAoC,EAAE,cAAc,oBAAoB,CAAC,IAC3E,EAAE,uCAAuC,EAAE,cAAc,mBAAmB,CAAC;AAAA,EACnF,CACF,GAGD,SACC,oCAAC,oBAAM,OAAM,OAAM,QAAQ,qBACxB,KACH,GAGD,cACC,oCAAC,QAAK,MAAK,MAAK,GAAE,YACf,EAAE,sCAAsC,EAAE,cAAc,oBAAoB,CAAC,CAChF,GAGD,eAAe,CAAC,iBAAiB,aAChC,0DACE,oCAAC,sBAAmB,UAAU,cAAc,OAAO,iBAAiB,GACpE,oCAAC,gBAAa,OAAO,aAAa,CACpC,CAEJ;AAEJ;","names":["handlers"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/mantine/blocks/action/actionTypes/claim/ClaimFlowDetail.tsx"],"sourcesContent":["import { useRunRuntimeReader } from '@/mantine/hooks/useRunRuntimeReader';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { ActionIcon, Box, Collapse, Group, Loader, Stack, Text, UnstyledButton } from '@mantine/core';\nimport { DismissibleAlert as Alert } from '@/mantine/components/Base/DismissibleAlert';\nimport { IconArrowLeft, IconCheck, IconChevronRight, IconPlayerPlay } from '@tabler/icons-react';\nimport BasePrimaryButton from '@/mantine/components/Base/BasePrimaryButton';\nimport { SurveyModel } from '@ixo/surveys';\nimport { StableSurvey } from '@/mantine/components/StableSurvey';\nimport { SurveyAiFillButton } from '@/mantine/components/SurveyAiFillButton';\nimport { surveyTheme } from '@/mantine/blocks/claim/flow/theme';\nimport { AgentRole, useBlocknoteHandlers, useTranslate, type Claim, type IUserMatrixProfile } from '@/mantine/context/BlocknoteContext';\nimport { resolveReferences } from '@/mantine/utils/referenceResolver';\nimport { getClaimStatusInfo } from '@/mantine/utils/claimStatus';\nimport { attachSurveyAnalytics, buildBlockLabel, getFlowRoomContext } from '@/mantine/utils/surveyAnalytics';\nimport { useRegisterOpenSurvey } from '@/mantine/hooks/useOpenSurveys';\nimport type { ActionTypeFlowProps } from '../../actionTypeUI';\nimport { ActAsGroupSection, actAsGroupReady, actAsGroupRuntimeInputs, emptyActAsGroupState, type ActAsGroupState } from '../_shared/groupExecution/ActAsGroupSection';\nimport { GroupProposalStatus } from '../_shared/groupExecution/GroupProposalStatus';\nimport { parseClaimActionInputs } from './types';\nimport type { ClaimRuntimeInputs } from '@/core/lib/actionRegistry/actions/claim/types';\nimport ListItemContainer from '@/mantine/blocks/list/ListItemContainer';\nimport { actionAlertStyles } from '../../alertStyles';\nimport { resolveFilesInCredentialSubject } from '../_shared/media/resolveClaimFileRef';\n\nfunction getTimeAgo(dateString: string): string {\n if (!dateString) return '';\n try {\n const date = new Date(dateString);\n const now = new Date();\n const diffMs = now.getTime() - date.getTime();\n const diffMins = Math.floor(diffMs / 60000);\n if (diffMins < 1) return 'just now';\n if (diffMins < 60) return `${diffMins}m ago`;\n const diffHours = Math.floor(diffMins / 60);\n if (diffHours < 24) return `${diffHours}h ago`;\n const diffDays = Math.floor(diffHours / 24);\n if (diffDays < 30) return `${diffDays} day${diffDays > 1 ? 's' : ''} ago`;\n const diffMonths = Math.floor(diffDays / 30);\n return `${diffMonths} month${diffMonths > 1 ? 's' : ''} ago`;\n } catch {\n return dateString;\n }\n}\n\nfunction truncateAddress(address: string): string {\n if (!address) return '';\n if (address.length <= 14) return address;\n return `${address.slice(0, 8)}...${address.slice(-3)}`;\n}\n\nfunction truncateId(value: string, start: number = 8, end: number = 6): string {\n if (!value) return '';\n if (value.length <= start + end + 3) return value;\n return `${value.slice(0, start)}...${value.slice(-end)}`;\n}\n\ntype DisputeDetails = {\n reason?: string;\n disputeType?: number;\n evaluatorDid?: string;\n disputedAt?: string;\n uri?: string;\n proof?: string;\n};\n\nexport const ClaimFlowDetail: React.FC<ActionTypeFlowProps<ClaimRuntimeInputs>> = ({\n inputs,\n editor,\n runtime,\n block,\n isDisabled,\n provideSigningHandler,\n unlockSigning,\n registerRuntimeInputs,\n executeAction,\n}) => {\n const [actAs, setActAs] = useState<ActAsGroupState>(emptyActAsGroupState());\n const t = useTranslate();\n const handlers = useBlocknoteHandlers();\n const handlersRef = useRef(handlers);\n useEffect(() => {\n handlersRef.current = handlers;\n }, [handlers]);\n const actorDid = useMemo(() => {\n try {\n return handlers?.getCurrentUser?.()?.address || '';\n } catch {\n return '';\n }\n }, [handlers]);\n\n const parsed = useMemo(() => parseClaimActionInputs(inputs), [inputs]);\n const editorDocument = editor?.document || [];\n const runtimeReader = useRunRuntimeReader(editor);\n const resolveOpts = useMemo(() => ({ yRuntime: runtimeReader }), [runtimeReader]);\n const deedDid = resolveReferences(parsed.deedDid, editorDocument, resolveOpts).trim();\n const collectionId = resolveReferences(parsed.collectionId, editorDocument, resolveOpts).trim();\n\n const [claims, setClaims] = useState<Claim[]>([]);\n const [loadingClaims, setLoadingClaims] = useState(false);\n const [adminAddress, setAdminAddress] = useState('');\n const [surveyJson, setSurveyJson] = useState<any>(null);\n const [prefillData, setPrefillData] = useState<any>(null);\n const [loadingSurvey, setLoadingSurvey] = useState(false);\n const [submitting, setSubmitting] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const [profilesByDid, setProfilesByDid] = useState<Record<string, IUserMatrixProfile>>({});\n const [isServiceAgentAuthorized, setIsServiceAgentAuthorized] = useState<boolean>(false);\n const [authChecking, setAuthChecking] = useState<boolean>(true);\n const [authError, setAuthError] = useState<string | null>(null);\n const [authRetryKey, setAuthRetryKey] = useState(0);\n const [surveyComplete, setSurveyComplete] = useState(false);\n const [selectedClaimId, setSelectedClaimId] = useState('');\n const [selectedClaimData, setSelectedClaimData] = useState<any>(null);\n const [loadingClaimDetail, setLoadingClaimDetail] = useState(false);\n const [disputeDetails, setDisputeDetails] = useState<DisputeDetails | null>(null);\n const [loadingDispute, setLoadingDispute] = useState(false);\n const [claimsExpanded, setClaimsExpanded] = useState(false);\n\n const selectedClaim = useMemo(() => claims.find((c) => c.claimId === selectedClaimId) || null, [claims, selectedClaimId]);\n const selectedClaimStatus = useMemo(() => (selectedClaim ? getClaimStatusInfo(selectedClaim) : null), [selectedClaim]);\n const isSelectedDisputed = selectedClaimStatus?.key === 'disputed';\n\n const checkSurveyCompleteness = useCallback((model: SurveyModel) => {\n const allRequired = model.getAllQuestions(true).filter((q: any) => q.isRequired);\n const isComplete = allRequired.length === 0 || allRequired.every((q: any) => !q.isEmpty());\n setSurveyComplete(isComplete);\n }, []);\n\n const surveyModel = useMemo(() => {\n if (!surveyJson) return null;\n const model = new SurveyModel(surveyJson);\n model.applyTheme(surveyTheme);\n model.showQuestionNumbers = 'off';\n if (provideSigningHandler) {\n model.showCompleteButton = false;\n model.showCompletedPage = false;\n const reviewEl = model.getQuestionByName('reviewAndSubmit') || model.getPanelByName('reviewAndSubmit');\n if (reviewEl) reviewEl.visible = false;\n const reviewMsg = model.getQuestionByName('reviewMessage');\n if (reviewMsg) reviewMsg.visible = false;\n }\n\n // Upload file answers to the collection media store instead of inlining their\n // base64 content into the claim (SUP-67). With `storeDataAsText` disabled the\n // survey value keeps only the reference returned by `uploadClaimFile`.\n if (handlersRef.current.uploadClaimFile) {\n for (const q of model.getAllQuestions()) {\n if (q.getType?.() === 'file') {\n (q as any).storeDataAsText = false;\n }\n }\n model.onUploadFiles.add((_sender: SurveyModel, options: any) => {\n const uploader = handlersRef.current.uploadClaimFile;\n if (!uploader) {\n options.callback([], ['File upload is not supported']);\n return;\n }\n Promise.all((options.files as File[]).map((file) => uploader(file, collectionId, { entityDid: deedDid })))\n .then((results) => {\n options.callback((options.files as File[]).map((file, i) => ({ file, content: results[i].content })));\n })\n .catch((err: unknown) => {\n console.error('[Claim] file upload failed', err);\n options.callback([], [err instanceof Error ? err.message : 'File upload failed']);\n });\n });\n }\n\n if (prefillData) {\n model.data = prefillData?.credentialSubject ?? prefillData;\n }\n return model;\n }, [surveyJson, provideSigningHandler, prefillData, collectionId, deedDid]);\n\n const mediaBlobCacheRef = useRef<Map<string, string>>(new Map());\n useEffect(() => {\n return () => {\n for (const blobUrl of mediaBlobCacheRef.current.values()) URL.revokeObjectURL(blobUrl);\n mediaBlobCacheRef.current.clear();\n };\n }, []);\n\n const detailSurveyModel = useMemo(() => {\n if (!surveyJson || !selectedClaimData) return null;\n const model = new SurveyModel(surveyJson);\n model.applyTheme(surveyTheme);\n model.showQuestionNumbers = 'off';\n model.questionsOnPageMode = 'singlePage';\n model.mode = 'display';\n\n // Resolve claim file references and stream their bytes through fetchClaimMedia\n // (claim-bot auth) so submitted attachments can be previewed/downloaded.\n const fetcher = handlersRef.current.fetchClaimMedia;\n if (fetcher) {\n const cache = mediaBlobCacheRef.current;\n for (const q of model.getAllQuestions()) {\n if (q.getType?.() === 'file') {\n (q as any).storeDataAsText = false;\n }\n }\n model.onDownloadFile.add((_sender: SurveyModel, options: any) => {\n const src: string = options?.content;\n if (typeof src !== 'string' || !/^https?:/i.test(src)) {\n options.callback('success', src);\n return;\n }\n const cached = cache.get(src);\n if (cached) {\n options.callback('success', cached);\n return;\n }\n fetcher(src, { entityDid: deedDid })\n .then((blob: Blob) => {\n const blobUrl = URL.createObjectURL(blob);\n cache.set(src, blobUrl);\n options.callback('success', blobUrl);\n })\n .catch((err: unknown) => {\n console.error('[Claim] fetchClaimMedia failed', src, err);\n options.callback('error');\n });\n });\n }\n\n const cs = selectedClaimData?.credentialSubject ?? selectedClaimData;\n model.data = cs && typeof cs === 'object' ? resolveFilesInCredentialSubject(cs) : cs;\n return model;\n }, [surveyJson, selectedClaimData, deedDid]);\n\n const openSurveyId = `claim-action:${block.id}:new`;\n const openSurveyTitle = `Submit Claim${block?.props?.title ? ` — ${block.props.title}` : ''}`;\n\n useRegisterOpenSurvey({\n id: openSurveyId,\n title: openSurveyTitle,\n source: 'panel',\n schema: surveyJson,\n context: {\n flowType: 'claim-submission',\n blockId: block.id,\n blockTitle: block?.props?.title as string | undefined,\n blockType: 'action',\n deedId: deedDid,\n collectionId,\n ...getFlowRoomContext(editor),\n },\n model: surveyModel,\n enabled: !!surveyModel && !selectedClaimId,\n });\n\n // Wire registerRuntimeInputs — push admin address and claim-started flag to parent for diff resolver.\n // `claimStarted` must be false while viewing an existing claim's read-only detail (selectedClaim is set),\n // otherwise the diff view + SlideToSign render under the detail view.\n useEffect(() => {\n if (!registerRuntimeInputs) return;\n registerRuntimeInputs({ adminAddress, claimStarted: !!surveyJson && !selectedClaimId });\n }, [registerRuntimeInputs, adminAddress, surveyJson, selectedClaimId]);\n\n // Wire unlockSigning — enable slider when authorized, survey loaded, admin resolved, and all required fields filled.\n // Lock while viewing an existing claim's detail (selectedClaimId is set) — signing is only for new/amended submissions.\n useEffect(() => {\n if (!unlockSigning) return;\n unlockSigning((actAs.actAsGroup || isServiceAgentAuthorized) && !!surveyModel && !!adminAddress && surveyComplete && !selectedClaimId && actAsGroupReady(actAs));\n }, [unlockSigning, isServiceAgentAuthorized, surveyModel, adminAddress, surveyComplete, selectedClaimId, actAs]);\n\n // Track survey completeness across all pages — unlocks slider only when every required field is filled\n useEffect(() => {\n if (!surveyModel) {\n setSurveyComplete(false);\n return;\n }\n const handler = () => checkSurveyCompleteness(surveyModel);\n surveyModel.onValueChanged.add(handler);\n surveyModel.onCurrentPageChanged.add(handler);\n checkSurveyCompleteness(surveyModel);\n return () => {\n surveyModel.onValueChanged.remove(handler);\n surveyModel.onCurrentPageChanged.remove(handler);\n };\n }, [surveyModel, checkSurveyCompleteness]);\n\n // Wire provideSigningHandler — slide triggers survey completion\n useEffect(() => {\n if (!provideSigningHandler || !surveyModel) return;\n provideSigningHandler(async () => {\n surveyModel.tryComplete();\n });\n }, [provideSigningHandler, surveyModel]);\n\n const fetchClaimsAndAdmin = useCallback(async () => {\n if (!deedDid || !collectionId || !actorDid) return;\n const handlers = handlersRef.current;\n\n setLoadingClaims(true);\n setError(null);\n try {\n const [claimsResponse, collectionsResponse] = await Promise.all([\n handlers.getClaimsPerUserAddress({ collectionId, userAddress: actorDid }),\n handlers.getClaimCollections(deedDid),\n ]);\n\n const fetchedClaims = Array.isArray(claimsResponse) ? claimsResponse : [];\n console.log(\n '[Claim/SA] status breakdown:',\n fetchedClaims.map((c: any) => ({\n claimId: c.claimId,\n evalStatus: c.evaluationByClaimId?.status,\n disputeBySubjectId: c.disputeBySubjectId,\n resolvedKey: getClaimStatusInfo(c).key,\n }))\n );\n setClaims(fetchedClaims);\n\n const resolvedAdmin = collectionsResponse?.collections?.find?.((c: any) => c?.id === collectionId)?.admin || collectionsResponse?.adminAddress || '';\n setAdminAddress(resolvedAdmin);\n } catch (err) {\n setClaims([]);\n setAdminAddress('');\n setError(err instanceof Error ? err.message : t('actionTypes.claim.flow.errors.loadClaimData', { defaultValue: 'Failed to load claim data' }));\n } finally {\n setLoadingClaims(false);\n }\n }, [deedDid, collectionId, actorDid]);\n\n useEffect(() => {\n setSurveyJson(null);\n setPrefillData(null);\n setSelectedClaimId('');\n setError(null);\n }, [deedDid, collectionId]);\n\n useEffect(() => {\n if (!deedDid || !collectionId || !actorDid) return;\n fetchClaimsAndAdmin();\n }, [deedDid, collectionId, actorDid, fetchClaimsAndAdmin]);\n\n useEffect(() => {\n let mounted = true;\n const dids = Array.from(new Set(claims.map((claim) => claim.agentDid).filter(Boolean)));\n const missing = dids.filter((did) => !profilesByDid[did]);\n if (missing.length === 0)\n return () => {\n mounted = false;\n };\n\n const loadProfiles = async () => {\n const handlers = handlersRef.current;\n const results = await Promise.all(\n missing.map(async (did) => {\n try {\n const profile = await handlers.getMatrixInfoPerDid(did);\n return [did, profile] as const;\n } catch {\n return [did, null] as const;\n }\n })\n );\n\n if (!mounted) return;\n setProfilesByDid((prev) => {\n const next = { ...prev };\n results.forEach(([did, profile]) => {\n if (profile) {\n next[did] = profile;\n }\n });\n return next;\n });\n };\n\n loadProfiles();\n return () => {\n mounted = false;\n };\n }, [claims, profilesByDid]);\n\n useEffect(() => {\n let mounted = true;\n\n const checkServiceAgentAuthorization = async () => {\n const handlers = handlersRef.current;\n if (!deedDid || !collectionId || !adminAddress || !actorDid) {\n if (mounted) {\n setIsServiceAgentAuthorized(false);\n setAuthError(null);\n setAuthChecking(false);\n }\n return;\n }\n\n if (typeof handlers.getUserRoles !== 'function') {\n if (mounted) {\n setIsServiceAgentAuthorized(false);\n setAuthError(null);\n setAuthChecking(false);\n }\n return;\n }\n\n setAuthChecking(true);\n setAuthError(null);\n try {\n const roles = await handlers.getUserRoles({\n userAddress: actorDid,\n adminAddress,\n deedDid,\n collectionIds: [collectionId],\n });\n const role = roles?.find((r) => r.collectionId === collectionId)?.role || null;\n if (mounted) {\n setIsServiceAgentAuthorized(role === AgentRole.ServiceProvider);\n setAuthError(null);\n }\n } catch (err) {\n if (mounted) {\n setIsServiceAgentAuthorized(false);\n setAuthError(err instanceof Error ? err.message : t('actionTypes.claim.flow.errors.verifyAuth', { defaultValue: 'Failed to verify authorization' }));\n }\n } finally {\n if (mounted) {\n setAuthChecking(false);\n }\n }\n };\n\n checkServiceAgentAuthorization();\n return () => {\n mounted = false;\n };\n }, [actorDid, adminAddress, deedDid, collectionId, authRetryKey]);\n\n useEffect(() => {\n if (!selectedClaim) {\n setSelectedClaimData(null);\n setDisputeDetails(null);\n return;\n }\n let cancelled = false;\n\n const loadDetail = async () => {\n const handlers = handlersRef.current;\n setLoadingClaimDetail(true);\n setError(null);\n try {\n const [claimDataResult, templateResult] = await Promise.all([\n handlers.getClaimData(collectionId, selectedClaim.claimId, { entityDid: deedDid }),\n surveyJson ? Promise.resolve({ surveyTemplate: surveyJson }) : handlers.getDeedSurveyTemplate(deedDid, collectionId),\n ]);\n if (cancelled) return;\n setSelectedClaimData(claimDataResult || null);\n if (!surveyJson && templateResult?.surveyTemplate) {\n setSurveyJson(templateResult.surveyTemplate);\n }\n } catch (err) {\n if (!cancelled) setError(err instanceof Error ? err.message : t('actionTypes.claim.flow.errors.loadClaimDetails', { defaultValue: 'Failed to load claim details' }));\n } finally {\n if (!cancelled) setLoadingClaimDetail(false);\n }\n\n if (getClaimStatusInfo(selectedClaim).key === 'disputed' && typeof handlers.getClaimDisputeDetails === 'function') {\n setLoadingDispute(true);\n try {\n const details = await handlers.getClaimDisputeDetails(selectedClaim.claimId);\n if (!cancelled) setDisputeDetails(details);\n } catch {\n if (!cancelled) setDisputeDetails(null);\n } finally {\n if (!cancelled) setLoadingDispute(false);\n }\n } else {\n setDisputeDetails(null);\n }\n };\n\n loadDetail();\n return () => {\n cancelled = true;\n };\n }, [selectedClaim, collectionId, deedDid, surveyJson]);\n\n const amendAndResubmit = useCallback(() => {\n if (!selectedClaimData) return;\n setPrefillData(selectedClaimData);\n setSelectedClaimId('');\n }, [selectedClaimData]);\n\n const startSurvey = useCallback(async () => {\n if (!deedDid) return;\n const handlers = handlersRef.current;\n setLoadingSurvey(true);\n setError(null);\n setPrefillData(null);\n try {\n const template = await handlers.getDeedSurveyTemplate(deedDid, collectionId);\n if (!template?.surveyTemplate) {\n setSurveyJson(null);\n setError(t('actionTypes.claim.flow.errors.noSurveyTemplate', { defaultValue: 'No survey template found for this {{did}}', did: 'DID' }));\n return;\n }\n setSurveyJson(template.surveyTemplate);\n } catch (err) {\n setSurveyJson(null);\n setError(err instanceof Error ? err.message : t('actionTypes.shared.errors.surveyTemplateLoad', { defaultValue: 'Failed to load survey template' }));\n } finally {\n setLoadingSurvey(false);\n }\n }, [deedDid, collectionId]);\n\n const handleSurveyComplete = useCallback(\n async (sender: any) => {\n if (authChecking || (!isServiceAgentAuthorized && !actAs.actAsGroup)) {\n setError(t('actionTypes.claim.flow.errors.notAuthorized', { defaultValue: 'You need service agent authorization for this collection to submit claims.' }));\n return;\n }\n if (!adminAddress) {\n setError(t('actionTypes.claim.flow.errors.noAdminAddress', { defaultValue: 'Admin address could not be resolved for this collection' }));\n return;\n }\n\n if (!executeAction) {\n setError(t('actionTypes.claim.flow.errors.actionNotRegistered', { defaultValue: 'Claim action executor is unavailable' }));\n return;\n }\n\n const submissionProps = {\n flowType: 'claim-submission' as const,\n entityDid: handlers.getEntityDid?.(),\n ...getFlowRoomContext(editor),\n blockId: block.id,\n blockTitle: block?.props?.title as string | undefined,\n blockLabel: buildBlockLabel(block.id, block?.props?.title as string | undefined),\n deedId: deedDid,\n collectionId,\n };\n let submittedEmitted = false;\n\n setSubmitting(true);\n setError(null);\n\n try {\n handlers.onAnalyticsEvent?.('editor_flow_submission_attempted', submissionProps);\n\n const outcome = await executeAction({\n runtimeInputs: {\n ...actAsGroupRuntimeInputs(actAs),\n deedDid,\n collectionId,\n adminAddress,\n surveyAnswers: sender.data,\n } as unknown as ClaimRuntimeInputs,\n });\n\n if (!outcome.success) {\n throw new Error(outcome.error || t('actionTypes.claim.flow.errors.executionFailed', { defaultValue: 'Claim execution failed' }));\n }\n\n handlers.onAnalyticsEvent?.('editor_flow_submitted', {\n ...submissionProps,\n claimId: (outcome.output as any)?.claimId,\n });\n submittedEmitted = true;\n\n setSurveyJson(null);\n setPrefillData(null);\n setClaimsExpanded(true);\n await fetchClaimsAndAdmin();\n } catch (err) {\n const message = err instanceof Error ? err.message : t('actionTypes.claim.flow.errors.submitFailed', { defaultValue: 'Failed to submit claim' });\n if (!submittedEmitted) {\n handlers.onAnalyticsEvent?.('editor_flow_submission_failed', { ...submissionProps, reason: message });\n }\n setError(message);\n } finally {\n setSubmitting(false);\n }\n },\n [adminAddress, actorDid, block.id, collectionId, deedDid, editor, executeAction, fetchClaimsAndAdmin, handlers, authChecking, isServiceAgentAuthorized, actAs]\n );\n\n useEffect(() => {\n if (!surveyModel) return undefined;\n surveyModel.onComplete.add(handleSurveyComplete);\n return () => {\n surveyModel.onComplete.remove(handleSurveyComplete);\n };\n }, [surveyModel, handleSurveyComplete]);\n\n // Emit section-completed event each time this survey finishes\n useEffect(() => {\n return attachSurveyAnalytics({\n model: surveyModel,\n handlers,\n flowType: 'claim-submission',\n sectionName: 'claim-survey',\n extraProps: {\n entityDid: handlers?.getEntityDid?.(),\n ...getFlowRoomContext(editor),\n blockId: block.id,\n blockTitle: block?.props?.title,\n blockLabel: buildBlockLabel(block.id, block?.props?.title as string | undefined),\n deedId: deedDid,\n collectionId,\n },\n });\n }, [surveyModel, handlers, editor, deedDid, collectionId, block.id, block?.props?.title]);\n\n if (selectedClaim) {\n return (\n <Stack gap=\"md\">\n <Group gap=\"xs\" align=\"center\">\n <ActionIcon variant=\"subtle\" color=\"gray\" size=\"sm\" onClick={() => setSelectedClaimId('')}>\n <IconArrowLeft size={16} />\n </ActionIcon>\n <Text fw={500} size=\"sm\" title={selectedClaim.claimId}>\n {t('actionTypes.claim.flow.claimNumber', { id: truncateId(selectedClaim.claimId), defaultValue: `Claim #${truncateId(selectedClaim.claimId)}` })}\n </Text>\n </Group>\n\n {selectedClaimStatus && (\n <Group gap=\"xs\" align=\"center\">\n <Text size=\"sm\" c=\"dimmed\">\n {t('actionTypes.claim.flow.statusLabel', { defaultValue: 'Status:' })}\n </Text>\n <Text fw={500} size=\"sm\" c={selectedClaimStatus.color}>\n {selectedClaimStatus.label}\n </Text>\n <Text size=\"xs\" c=\"dimmed\">\n · {getTimeAgo(selectedClaim.submissionDate || '')}\n </Text>\n </Group>\n )}\n\n {isSelectedDisputed && (\n <Alert color=\"orange\" title={t('actionTypes.claim.flow.disputed.title', { defaultValue: 'Claim disputed' })} styles={actionAlertStyles}>\n {loadingDispute ? (\n <Group gap=\"xs\">\n <Loader size=\"xs\" />\n <Text size=\"xs\">{t('actionTypes.claim.flow.disputed.loadingDetails', { defaultValue: 'Loading dispute details…' })}</Text>\n </Group>\n ) : disputeDetails ? (\n <Stack gap={6}>\n {disputeDetails.reason ? (\n <Text size=\"sm\">{disputeDetails.reason}</Text>\n ) : (\n <Text size=\"sm\" c=\"dimmed\">\n {t('actionTypes.claim.flow.disputed.noMessage', { defaultValue: 'The evaluator disputed this claim but did not provide a message.' })}\n </Text>\n )}\n {(disputeDetails.evaluatorDid || disputeDetails.disputedAt) && (\n <Text size=\"xs\" c=\"dimmed\">\n {disputeDetails.evaluatorDid\n ? t('actionTypes.claim.flow.disputed.byEvaluator', {\n address: truncateAddress(disputeDetails.evaluatorDid),\n defaultValue: `By ${truncateAddress(disputeDetails.evaluatorDid)}`,\n })\n : ''}\n {disputeDetails.evaluatorDid && disputeDetails.disputedAt ? ' · ' : ''}\n {disputeDetails.disputedAt ? new Date(disputeDetails.disputedAt).toLocaleString() : ''}\n </Text>\n )}\n <BasePrimaryButton onClick={amendAndResubmit} disabled={isDisabled || submitting || !isServiceAgentAuthorized || !selectedClaimData}>\n {t('actionTypes.claim.flow.disputed.amendAndResubmit', { defaultValue: 'Amend & Resubmit' })}\n </BasePrimaryButton>\n </Stack>\n ) : typeof handlers.getClaimDisputeDetails !== 'function' ? (\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.claim.flow.disputed.unavailable', { defaultValue: 'Dispute details unavailable in this environment.' })}\n </Text>\n ) : (\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.claim.flow.disputed.noRecord', { defaultValue: 'No dispute record found on-chain for this claim.' })}\n </Text>\n )}\n </Alert>\n )}\n\n {loadingClaimDetail ? (\n <Group gap=\"xs\">\n <Loader size=\"xs\" />\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.claim.flow.loadingSubmission', { defaultValue: 'Loading submission…' })}\n </Text>\n </Group>\n ) : detailSurveyModel ? (\n <StableSurvey model={detailSurveyModel} />\n ) : (\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.claim.flow.noSubmissionData', { defaultValue: 'No submission data available.' })}\n </Text>\n )}\n\n {error && (\n <Alert color=\"red\" styles={actionAlertStyles}>\n {error}\n </Alert>\n )}\n </Stack>\n );\n }\n\n return (\n <Stack gap=\"md\">\n <GroupProposalStatus editor={editor} block={block} runtime={runtime} />\n {runtime?.state !== 'awaiting_readback' && (\n <ActAsGroupSection\n value={actAs}\n onChange={setActAs}\n isDisabled={isDisabled}\n actionLabel=\"submit this claim\"\n authzFilter={collectionId ? { requiresAuthz: 'submitClaim', collectionId } : undefined}\n />\n )}\n {!deedDid || !collectionId ? (\n <Alert color=\"yellow\" styles={actionAlertStyles}>\n {t('actionTypes.shared.errors.configRequired', {\n defaultValue: 'Configure {{did}} and {{claimCollection}} in template mode before running this action.',\n did: 'DID',\n claimCollection: 'claim collection',\n })}\n </Alert>\n ) : (\n <>\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.shared.collectionPrefix', { id: collectionId, defaultValue: `Collection: ${collectionId}` })}\n </Text>\n\n {loadingClaims ? (\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.claim.flow.loadingYourClaims', { defaultValue: 'Loading your claims...' })}\n </Text>\n ) : claims.length === 0 ? (\n <Text size=\"sm\" c=\"dimmed\">\n {t('actionTypes.claim.flow.noClaimsYet', { defaultValue: 'No claims submitted for this collection yet.' })}\n </Text>\n ) : (\n <Stack gap=\"xs\">\n <UnstyledButton onClick={() => setClaimsExpanded((prev) => !prev)} style={{ color: 'var(--mantine-color-text)' }}>\n <Group gap={6} align=\"center\">\n <IconChevronRight size={16} style={{ transform: claimsExpanded ? 'rotate(90deg)' : 'none', transition: 'transform 150ms ease', flexShrink: 0 }} />\n <Text size=\"sm\" fw={600}>\n {t('actionTypes.claim.flow.yourClaims', { defaultValue: 'Your Claims' })} ({claims.length})\n </Text>\n </Group>\n </UnstyledButton>\n <Collapse in={claimsExpanded}>\n <Stack gap=\"xs\">\n {claims.map((claim) => {\n const status = getClaimStatusInfo(claim);\n const profile = profilesByDid[claim.agentDid];\n const displayName = profile?.displayname || claim.agentDid || claim.agentAddress;\n const avatarLabel = (profile?.displayname || claim.agentDid || claim.agentAddress || '?')[0]?.toUpperCase();\n return (\n <ListItemContainer key={claim.claimId} isChecked={false} onClick={() => setSelectedClaimId(claim.claimId)}>\n <Group gap={16} align=\"center\" style={{ flex: 1, minWidth: 0 }}>\n <Box\n style={{\n width: 32,\n height: 32,\n borderRadius: '50%',\n background: 'var(--mantine-color-neutralColor-4)',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n fontSize: 14,\n fontWeight: 500,\n color: 'var(--mantine-color-dimmed)',\n backgroundImage: profile?.avatarUrl ? `url(${profile.avatarUrl})` : undefined,\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n }}\n >\n {profile?.avatarUrl ? null : avatarLabel}\n </Box>\n <Stack gap={0} style={{ flex: 1, minWidth: 0 }}>\n <Text fw={500} size=\"md\" truncate style={{ lineHeight: 1.5 }}>\n {displayName}\n </Text>\n <Text size=\"xs\" c=\"dimmed\" truncate>\n {truncateAddress(claim.agentAddress)}\n </Text>\n </Stack>\n </Group>\n <Stack gap={0} align=\"flex-end\" style={{ flexShrink: 0, minWidth: 80 }}>\n <Text fw={500} size=\"md\" c={status.color} style={{ lineHeight: 1.5 }}>\n {status.key === 'approved' && <IconCheck size={14} style={{ verticalAlign: 'middle', marginRight: 2 }} />}\n {status.label}\n </Text>\n <Text size=\"xs\" c=\"dimmed\">\n {getTimeAgo(claim.submissionDate || '')}\n </Text>\n </Stack>\n </ListItemContainer>\n );\n })}\n </Stack>\n </Collapse>\n </Stack>\n )}\n\n {prefillData && (\n <Alert color=\"orange\" styles={actionAlertStyles}>\n {t('actionTypes.claim.flow.amendingNotice', { defaultValue: 'Amending a previously disputed claim — edit the fields below and submit to resubmit.' })}\n </Alert>\n )}\n\n <BasePrimaryButton\n leftSection={loadingSurvey || authChecking ? <Loader size={14} /> : <IconPlayerPlay size={14} />}\n onClick={startSurvey}\n disabled={isDisabled || loadingSurvey || submitting || authChecking || (!isServiceAgentAuthorized && !actAs.actAsGroup) || !adminAddress}\n >\n {authChecking\n ? t('actionTypes.claim.flow.checkingAuthorization', { defaultValue: 'Checking authorization...' })\n : loadingSurvey\n ? t('actionTypes.shared.loadingSurvey', { defaultValue: 'Loading Survey...' })\n : t('actionTypes.claim.flow.startNewClaim', { defaultValue: 'Start New Claim' })}\n </BasePrimaryButton>\n\n {!authChecking && authError && (\n <Alert color=\"orange\" styles={actionAlertStyles}>\n <Stack gap=\"xs\">\n <Text size=\"sm\">{t('actionTypes.claim.flow.authVerifyFailed', { defaultValue: \"Couldn't verify your authorization — the chain RPC is unreachable.\" })}</Text>\n <Text size=\"xs\" c=\"dimmed\">\n {authError}\n </Text>\n <BasePrimaryButton size=\"xs\" onClick={() => setAuthRetryKey((k) => k + 1)}>\n {t('actionTypes.claim.flow.retry', { defaultValue: 'Retry' })}\n </BasePrimaryButton>\n </Stack>\n </Alert>\n )}\n\n {!authChecking && !authError && !isServiceAgentAuthorized && !actAs.actAsGroup && (\n <Alert color=\"yellow\" styles={actionAlertStyles}>\n {t('actionTypes.claim.flow.errors.notAuthorized', { defaultValue: 'You need service agent authorization for this collection to submit claims.' })}\n </Alert>\n )}\n\n {surveyModel && !loadingSurvey && (\n <>\n <SurveyAiFillButton surveyId={openSurveyId} title={openSurveyTitle} />\n <StableSurvey model={surveyModel} />\n </>\n )}\n </>\n )}\n\n {submitting && (\n <Group gap=\"xs\">\n <Loader size=\"xs\" />\n <Text size=\"xs\" c=\"dimmed\">\n {t('actionTypes.claim.flow.submittingClaim', { defaultValue: 'Submitting claim...' })}\n </Text>\n </Group>\n )}\n\n {error && (\n <Alert color=\"red\" styles={actionAlertStyles}>\n {error}\n </Alert>\n )}\n </Stack>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,SAAS,aAAa,WAAW,SAAS,QAAQ,gB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ACE,oCAAC,sBAAmB,UAAU,cAAc,OAAO,iBAAiB,GACpE,oCAAC,gBAAa,OAAO,aAAa,CACpC,CAEJ,GAGD,cACC,oCAAC,SAAM,KAAI,QACT,oCAAC,UAAO,MAAK,MAAK,GAClB,oCAAC,QAAK,MAAK,MAAK,GAAE,YACf,EAAE,0CAA0C,EAAE,cAAc,sBAAsB,CAAC,CACtF,CACF,GAGD,SACC,oCAAC,oBAAM,OAAM,OAAM,QAAQ,qBACxB,KACH,CAEJ;AAEJ;","names":["handlers"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/mantine/blocks/action/actionTypes/collection/CollectionLifecycleFlowDetail.tsx","../src/core/lib/actionRegistry/actions/collection/failure.ts"],"sourcesContent":["import { useRunRuntimeReader } from '@/mantine/hooks/useRunRuntimeReader';\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { Badge, Box, Button, Group, Loader, Overlay, SegmentedControl, Stack, Text } from '@mantine/core';\nimport { DismissibleAlert as Alert } from '@/mantine/components/Base/DismissibleAlert';\nimport { DateTimePicker } from '@mantine/dates';\nimport { IconAlertCircle, IconCheck, IconRefresh } from '@tabler/icons-react';\nimport BaseNumberInput from '@/mantine/components/Base/BaseNumberInput';\nimport BaseSelect from '@/mantine/components/Base/BaseSelect';\nimport BaseTextInput from '@/mantine/components/Base/BaseTextInput';\nimport { resolveReferences } from '@/mantine/utils/referenceResolver';\nimport type { ActionTypeFlowProps } from '../../actionTypeUI';\nimport { ActAsGroupSection, actAsGroupReady, actAsGroupRuntimeInputs, emptyActAsGroupState, type ActAsGroupState } from '../_shared/groupExecution/ActAsGroupSection';\nimport { GroupProposalStatus } from '../_shared/groupExecution/GroupProposalStatus';\nimport { actionAlertStyles } from '../../alertStyles';\nimport { collectionLifecycleRuntimeError } from '@/core/lib/actionRegistry/actions/collection/failure';\nimport {\n type CollectionIntentOptions,\n type CollectionLifecycleRuntimeInputs,\n type CollectionOperation,\n type CollectionPayment,\n type CollectionState,\n CollectionStateEnum,\n type Payments,\n} from '@/core/lib/actionRegistry/actions/collection/types';\n\nconst LOG = '[collection.lifecycle]';\n\n// ---------------------------------------------------------------------------\n// Template inputs (configured in CollectionLifecycleConfig). Parsed defensively\n// — this track does not own the config shape, so read every field optionally.\n// ---------------------------------------------------------------------------\ninterface CollectionTemplateInputs {\n entity: string;\n protocol: string;\n collectionId: string;\n quota: string;\n startDate: string;\n endDate: string;\n payments?: Payments;\n intents?: CollectionIntentOptions;\n state?: CollectionStateEnum;\n}\n\nfunction parseTemplateInputs(json: string): CollectionTemplateInputs {\n try {\n const parsed = typeof json === 'string' ? (json ? JSON.parse(json) : {}) : json || {};\n return {\n entity: parsed?.entity || '',\n protocol: parsed?.protocol || '',\n collectionId: parsed?.collectionId || '',\n quota: parsed?.quota != null ? String(parsed.quota) : '',\n startDate: parsed?.startDate || '',\n endDate: parsed?.endDate || '',\n payments: parsed?.payments,\n intents: parsed?.intents,\n state: typeof parsed?.state === 'number' ? parsed.state : undefined,\n };\n } catch {\n return { entity: '', protocol: '', collectionId: '', quota: '', startDate: '', endDate: '' };\n }\n}\n\nconst STATE_LABELS: Record<number, string> = {\n [CollectionStateEnum.OPEN]: 'Open',\n [CollectionStateEnum.PAUSED]: 'Paused',\n [CollectionStateEnum.CLOSED]: 'Closed',\n};\n\nfunction stateLabel(state: CollectionStateEnum | undefined): string {\n if (state == null) return 'Unknown';\n return STATE_LABELS[state] ?? `State ${state}`;\n}\n\nfunction formatQuota(quota: string | undefined): string {\n if (quota == null || quota === '') return '—';\n if (quota === '0') return 'Unlimited';\n return quota;\n}\n\nfunction toNumberOrUndefined(value: string | number | undefined): number | undefined {\n if (value === '' || value == null) return undefined;\n const n = Number(value);\n return Number.isFinite(n) ? n : undefined;\n}\n\n// Date <-> ISO-8601 conversion for the DateTimePicker controls. State is kept as\n// ISO strings (what the run inputs and chain timestamps expect); the picker works\n// in local \"YYYY-MM-DD HH:mm:ss\" strings. Mirrors the helpers in TtlTab.tsx.\nfunction isoToDate(iso: string): Date | null {\n if (!iso) return null;\n const d = new Date(iso);\n return isNaN(d.getTime()) ? null : d;\n}\n\nfunction dateToIso(value: string | null): string {\n if (!value) return '';\n const date = new Date(value.replace(' ', 'T'));\n return Number.isNaN(date.getTime()) ? '' : date.toISOString();\n}\n\n// ---------------------------------------------------------------------------\n// Payments — structured editor model.\n//\n// Each of the four claim stages can carry an optional payout. The UI works in\n// DISPLAY units: a token (IXO | USDC) + a human-readable amount (e.g. \"10\",\n// \"0.5\"). The consumer handler (impacts-x-web collectionHandlers) converts the\n// display denom to its chain base denom (IXO→uixo, USDC→ibc/…) and multiplies\n// by 1e6, and overwrites every leg's `account` with the entity admin account —\n// so the UI sends `account: ''` and never sets micro amounts itself.\n//\n// On read-back, `output.payments` comes back in CHAIN denoms + micro amounts,\n// so seeding the form reverses that mapping (legToInput).\n// ---------------------------------------------------------------------------\ntype PaymentToken = 'IXO' | 'USDC';\nconst PAYMENT_TOKENS: PaymentToken[] = ['IXO', 'USDC'];\nconst USDC_IBC_DENOM = 'ibc/6BBE9BD4246F8E04948D5A4EEE7164B2630263B9EBB5E7DC5F0A46C62A2FF97B';\nconst MICRO = 1_000_000;\n\ntype PaymentLegKey = 'submission' | 'evaluation' | 'approval' | 'rejection';\nconst PAYMENT_LEGS: { key: PaymentLegKey; label: string; description: string }[] = [\n { key: 'submission', label: 'Submission', description: 'Paid when a claim is submitted.' },\n { key: 'evaluation', label: 'Evaluation', description: 'Paid to the evaluator per claim.' },\n { key: 'approval', label: 'Approval', description: 'Paid when a claim is approved.' },\n { key: 'rejection', label: 'Rejection', description: 'Paid when a claim is rejected.' },\n];\n\ninterface PaymentLegInput {\n token: PaymentToken;\n amount: string; // display amount; '' or '0' means no payout for this stage\n}\ntype PaymentsInput = Record<PaymentLegKey, PaymentLegInput>;\n\nfunction emptyPaymentsInput(): PaymentsInput {\n return {\n submission: { token: 'IXO', amount: '' },\n evaluation: { token: 'IXO', amount: '' },\n approval: { token: 'IXO', amount: '' },\n rejection: { token: 'IXO', amount: '' },\n };\n}\n\n// Reverse map: an on-chain CollectionPayment leg → the display input model.\nfunction legToInput(leg: CollectionPayment | undefined): PaymentLegInput {\n const coin = leg?.amount?.[0];\n if (!coin || !coin.amount || coin.amount === '0') return { token: 'IXO', amount: '' };\n let token: PaymentToken = 'IXO';\n let isMicro = false;\n if (coin.denom === 'uixo') {\n token = 'IXO';\n isMicro = true;\n } else if (coin.denom === USDC_IBC_DENOM || coin.denom.startsWith('ibc/')) {\n token = 'USDC';\n isMicro = true;\n } else if (coin.denom === 'USDC') {\n token = 'USDC';\n } else if (coin.denom === 'IXO') {\n token = 'IXO';\n }\n const raw = Number(coin.amount);\n if (!Number.isFinite(raw)) return { token, amount: '' };\n const display = isMicro ? raw / MICRO : raw;\n return { token, amount: String(display) };\n}\n\nfunction paymentsToInput(payments: Payments | undefined): PaymentsInput {\n if (!payments) return emptyPaymentsInput();\n return {\n submission: legToInput(payments.submission),\n evaluation: legToInput(payments.evaluation),\n approval: legToInput(payments.approval),\n rejection: legToInput(payments.rejection),\n };\n}\n\n// Forward map: a display leg → the contract CollectionPayment (display denom +\n// human amount; the consumer handles denom/×1e6 conversion and the account).\nfunction inputToLeg(leg: PaymentLegInput): CollectionPayment | undefined {\n const n = toNumberOrUndefined(leg.amount);\n if (n == null || n <= 0) return undefined;\n return { account: '', amount: [{ denom: leg.token, amount: leg.amount }] };\n}\n\nfunction inputToPayments(input: PaymentsInput): Payments | undefined {\n const payments: Payments = {\n submission: inputToLeg(input.submission),\n evaluation: inputToLeg(input.evaluation),\n approval: inputToLeg(input.approval),\n rejection: inputToLeg(input.rejection),\n };\n if (!payments.submission && !payments.evaluation && !payments.approval && !payments.rejection) {\n return undefined;\n }\n return payments;\n}\n\n/**\n * Single-block claim collection lifecycle execution UI (IXO-2578).\n *\n * `runtime` is the single source of truth — never mirrored to local state.\n * `runtime.output` always holds the full latest on-chain {@link CollectionState}\n * (IXO-2573); `runtime.output.collectionId` is the proof field that flips the\n * surface from create-mode → manage-mode.\n *\n * Two entry modes:\n * - No bound `collectionId` and no `output.collectionId` → create form.\n * - Bound `collectionId` (template literal or upstream ref) but empty output →\n * one-shot `refresh` on mount, then the manage surface.\n *\n * The shared executor owns durable runtime writes (running → completed/failed,\n * and `output` = re-fetched CollectionState). We only write runtime locally for\n * stale-state recovery and to surface a failure message.\n */\nexport const CollectionLifecycleFlowDetail: React.FC<ActionTypeFlowProps<CollectionLifecycleRuntimeInputs>> = ({\n inputs,\n editor,\n block,\n runtime,\n updateRuntime,\n isDisabled,\n provideSigningHandler,\n unlockSigning,\n registerRuntimeInputs,\n executeAction,\n}) => {\n const [actAs, setActAs] = useState<ActAsGroupState>(emptyActAsGroupState());\n const parsed = useMemo(() => parseTemplateInputs(inputs), [inputs]);\n const editorDocument = editor?.document || [];\n const runtimeReader = useRunRuntimeReader(editor);\n const resolveOpts = useMemo(() => ({ yRuntime: runtimeReader }), [runtimeReader]);\n\n // Resolve the optional bound collectionId (literal or {{block.output.collectionId}}).\n const boundCollectionId = useMemo(() => resolveReferences(parsed.collectionId || '', editorDocument, resolveOpts).trim(), [parsed.collectionId, editorDocument, resolveOpts]);\n\n // -------------------------------------------------------------------------\n // Derived runtime state — read directly from the Y.Map on every render.\n // -------------------------------------------------------------------------\n const output = (runtime.output as Partial<CollectionState> | undefined) || undefined;\n const outputCollectionId = (output?.collectionId as string) || '';\n // Effective collection: prefer the live on-chain output, fall back to the\n // template/upstream binding (manage-only mode before the first refresh).\n const effectiveCollectionId = outputCollectionId || boundCollectionId;\n\n const isRunning = runtime.state === 'running';\n const isFailed = runtime.state === 'failed';\n const errorMessage = runtime.error?.message || null;\n // Proof = a collectionId in output. `completed` without it is stale.\n const isCompletedWithProof = runtime.state === 'completed' && !!outputCollectionId;\n const isStale = runtime.state === 'completed' && !outputCollectionId;\n\n // Manage surface shows whenever we have an on-chain snapshot to render.\n const hasSnapshot = !!outputCollectionId;\n // Manage-only mode: a collectionId was bound up-front (existing collection).\n const isManageMode = !!boundCollectionId || hasSnapshot;\n // Create mode: no binding and no snapshot yet.\n const isCreateMode = !isManageMode;\n\n // -------------------------------------------------------------------------\n // Operation selection + per-op form state. These ARE genuinely ephemeral\n // local concerns (the user's in-progress selection before they sign), so\n // useState is correct here — they are not runtime/result state.\n // -------------------------------------------------------------------------\n const [operation, setOperation] = useState<CollectionOperation>(isCreateMode ? 'create' : 'updateState');\n\n // Once a create succeeds we are in manage mode; default the op to a manage op.\n useEffect(() => {\n if (hasSnapshot && operation === 'create') {\n setOperation('updateState');\n }\n }, [hasSnapshot, operation]);\n\n // Create-form fields (seeded from template config).\n const [createQuota, setCreateQuota] = useState<string>(parsed.quota || '0');\n const [createStartDate, setCreateStartDate] = useState<string>(parsed.startDate || '');\n const [createEndDate, setCreateEndDate] = useState<string>(parsed.endDate || '');\n const [createPayments, setCreatePayments] = useState<PaymentsInput>(() => paymentsToInput(parsed.payments));\n\n // Manage-op fields, seeded from the current on-chain snapshot when available.\n const [targetState, setTargetState] = useState<CollectionStateEnum>(output?.state ?? CollectionStateEnum.OPEN);\n const [editStartDate, setEditStartDate] = useState<string>('');\n const [editEndDate, setEditEndDate] = useState<string>('');\n const [editQuota, setEditQuota] = useState<string>('');\n const [editPayments, setEditPayments] = useState<PaymentsInput>(() => paymentsToInput(output?.payments));\n const [editIntentsJson, setEditIntentsJson] = useState<string>('');\n\n // Re-seed manage fields whenever a fresh snapshot lands (collectionId or the\n // mutable fields change). Guarded so we don't clobber an in-progress edit on\n // every render — we only re-seed when the snapshot identity actually changes.\n const seededFromRef = useRef<string>('');\n useEffect(() => {\n if (!hasSnapshot) return;\n const snapshotKey = JSON.stringify({\n id: outputCollectionId,\n s: output?.state,\n sd: output?.startDate,\n ed: output?.endDate,\n q: output?.quota,\n executedAt: runtime.executedAt,\n });\n if (seededFromRef.current === snapshotKey) return;\n seededFromRef.current = snapshotKey;\n setTargetState(output?.state ?? CollectionStateEnum.OPEN);\n setEditStartDate(output?.startDate || '');\n setEditEndDate(output?.endDate || '');\n setEditQuota(output?.quota != null ? String(output.quota) : '');\n setEditPayments(paymentsToInput(output?.payments));\n setEditIntentsJson(output?.intents ? JSON.stringify(output.intents, null, 2) : '');\n }, [hasSnapshot, outputCollectionId, output?.state, output?.startDate, output?.endDate, output?.quota, output?.payments, output?.intents, runtime.executedAt]);\n\n // -------------------------------------------------------------------------\n // Refresh-on-load: when a collectionId is bound but we have no snapshot yet,\n // run the read-only `refresh` op once to hydrate output. One-shot ref guard.\n // -------------------------------------------------------------------------\n const refreshOnLoadRef = useRef(false);\n const runRefresh = useCallback(async () => {\n if (!executeAction) {\n updateRuntime({ state: 'failed', error: { message: 'Shared action executor is unavailable', at: Date.now() } });\n return;\n }\n const collectionId = effectiveCollectionId;\n if (!collectionId) return;\n console.log(`${LOG} refresh →`, { collectionId });\n try {\n const outcome = await executeAction({ runtimeInputs: { operation: 'refresh', collectionId } as CollectionLifecycleRuntimeInputs });\n if (!outcome.success) {\n throw new Error(outcome.error || 'Failed to refresh collection state');\n }\n const payload = outcome.output as Partial<CollectionState> | undefined;\n if (!payload?.collectionId) {\n throw new Error('Refresh returned no collection state. Check the [collection:get] handler logs.');\n }\n console.log(`${LOG} refresh success`, { collectionId: payload.collectionId });\n } catch (err) {\n const failure = collectionLifecycleRuntimeError(err, { operation: 'refresh', collectionId });\n const message = failure.message;\n console.error(`${LOG} refresh failed`, { message });\n updateRuntime({ state: 'failed', error: failure });\n }\n }, [executeAction, effectiveCollectionId, updateRuntime]);\n\n useEffect(() => {\n if (refreshOnLoadRef.current) return;\n if (!boundCollectionId) return; // only manage-only mode auto-refreshes\n if (hasSnapshot) return; // already have state\n if (isRunning || isFailed) return; // don't fight an in-flight/failed run\n if (runtime.state === 'needs_verification') return; // ran-but-unproven — never auto-retry (H1)\n refreshOnLoadRef.current = true;\n console.log(`${LOG} refresh-on-load`, { boundCollectionId });\n runRefresh();\n }, [boundCollectionId, hasSnapshot, isRunning, isFailed, runtime.state, runRefresh]);\n\n // -------------------------------------------------------------------------\n // Durability: once a collection is created in this block (create-mode, i.e. no\n // template-bound id), persist its id into the block's saved inputs. The\n // executor blanks `output` at the start of every run and leaves it blank on\n // failure (see actionExecutor) — so without this, a failed follow-up op or a\n // page reload erases the only copy of the new id and drops the block back to\n // create-mode. Persisting flips the block to manage-mode permanently and lets\n // run()/refresh resolve the id from saved inputs even when `output` is empty.\n // -------------------------------------------------------------------------\n const persistedIdRef = useRef(false);\n useEffect(() => {\n if (boundCollectionId) return; // already bound via template — never overwrite\n if (!outputCollectionId) return; // nothing created yet\n if (!editor || !block) return;\n if (persistedIdRef.current) return;\n if (parsed.collectionId === outputCollectionId) return; // already saved\n persistedIdRef.current = true;\n try {\n const raw = inputs ? JSON.parse(inputs) : {};\n raw.collectionId = outputCollectionId;\n editor.updateBlock(block, { props: { ...block.props, inputs: JSON.stringify(raw) } });\n console.log(`${LOG} persisted collectionId to block inputs`, { collectionId: outputCollectionId });\n } catch (err) {\n persistedIdRef.current = false;\n console.warn(`${LOG} failed to persist collectionId to block inputs`, err);\n }\n }, [boundCollectionId, outputCollectionId, parsed.collectionId, inputs, editor, block]);\n\n // -------------------------------------------------------------------------\n // Per-operation validation → drives unlockSigning + inline errors.\n // -------------------------------------------------------------------------\n const currentCount = toNumberOrUndefined(output?.count) ?? 0;\n\n const validation = useMemo((): { ok: boolean; error?: string } => {\n if (operation === 'refresh') return { ok: true };\n\n if (operation === 'create') {\n if (!parsed.entity) return { ok: false, error: 'Entity (deed) DID is required — configure it in template mode.' };\n if (!parsed.protocol) return { ok: false, error: 'Protocol is required — configure it in template mode.' };\n const q = toNumberOrUndefined(createQuota);\n if (q == null || q < 0) return { ok: false, error: 'Quota must be 0 (unlimited) or a positive number.' };\n if (createStartDate && createEndDate && new Date(createEndDate) <= new Date(createStartDate)) {\n return { ok: false, error: 'End date must be after the start date.' };\n }\n return { ok: true };\n }\n\n // All manage ops need a target collection.\n if (!effectiveCollectionId) return { ok: false, error: 'No collection loaded yet.' };\n\n if (operation === 'updateState') {\n if (output?.state != null && output.state === targetState) return { ok: false, error: 'Collection is already in that state.' };\n return { ok: true };\n }\n\n if (operation === 'updateDates') {\n if (!editStartDate && !editEndDate) return { ok: false, error: 'Set at least one of start / end date.' };\n if (editStartDate && editEndDate && new Date(editEndDate) <= new Date(editStartDate)) {\n return { ok: false, error: 'End date must be after the start date.' };\n }\n return { ok: true };\n }\n\n if (operation === 'updateQuota') {\n const q = toNumberOrUndefined(editQuota);\n if (q == null || q < 0) return { ok: false, error: 'Quota must be 0 (unlimited) or a positive number.' };\n // 0 = unlimited is always allowed; otherwise quota must be >= submitted count.\n if (q !== 0 && q < currentCount) {\n return { ok: false, error: `Quota cannot be below the submitted count (${currentCount}). Use 0 for unlimited.` };\n }\n return { ok: true };\n }\n\n if (operation === 'updatePayments') {\n if (!inputToPayments(editPayments)) {\n return { ok: false, error: 'Set a payout amount for at least one claim stage.' };\n }\n return { ok: true };\n }\n\n if (operation === 'updateIntents') {\n if (!editIntentsJson.trim()) return { ok: false, error: 'Intents configuration is required.' };\n try {\n JSON.parse(editIntentsJson);\n } catch {\n return { ok: false, error: 'Intents must be valid JSON.' };\n }\n return { ok: true };\n }\n\n return { ok: false, error: 'Unsupported operation.' };\n }, [\n operation,\n parsed.entity,\n parsed.protocol,\n createQuota,\n createStartDate,\n createEndDate,\n effectiveCollectionId,\n output?.state,\n targetState,\n editStartDate,\n editEndDate,\n editQuota,\n currentCount,\n editPayments,\n editIntentsJson,\n ]);\n\n // -------------------------------------------------------------------------\n // Build the runtime inputs for the currently-selected operation.\n // -------------------------------------------------------------------------\n const buildRuntimeInputs = useCallback((): CollectionLifecycleRuntimeInputs => {\n // Every non-create op targets an existing collection. Pass the resolved id\n // explicitly so updates/refresh work for an in-session create (where the id\n // is only in `output`, not yet in the saved template inputs).\n const targetId = effectiveCollectionId || undefined;\n switch (operation) {\n case 'create':\n return {\n operation: 'create',\n quota: String(toNumberOrUndefined(createQuota) ?? 0),\n startDate: createStartDate || undefined,\n endDate: createEndDate || undefined,\n payments: inputToPayments(createPayments),\n intents: parsed.intents,\n state: parsed.state,\n };\n case 'updateState':\n return { operation: 'updateState', collectionId: targetId, state: targetState };\n case 'updateDates':\n return { operation: 'updateDates', collectionId: targetId, startDate: editStartDate || undefined, endDate: editEndDate || undefined };\n case 'updateQuota':\n return { operation: 'updateQuota', collectionId: targetId, quota: String(toNumberOrUndefined(editQuota) ?? 0) };\n case 'updatePayments':\n return { operation: 'updatePayments', collectionId: targetId, payments: inputToPayments(editPayments) };\n case 'updateIntents':\n return { operation: 'updateIntents', collectionId: targetId, intents: JSON.parse(editIntentsJson) as CollectionIntentOptions };\n case 'refresh':\n default:\n return { operation: 'refresh', collectionId: targetId };\n }\n }, [\n operation,\n effectiveCollectionId,\n createQuota,\n createStartDate,\n createEndDate,\n createPayments,\n parsed.intents,\n parsed.state,\n targetState,\n editStartDate,\n editEndDate,\n editQuota,\n editPayments,\n editIntentsJson,\n ]);\n\n // Push runtime inputs upward so the diff resolver (and executor merge) see the\n // current per-op selection. Guard parse errors so we never throw in an effect.\n useEffect(() => {\n if (!registerRuntimeInputs) return;\n try {\n registerRuntimeInputs(buildRuntimeInputs());\n } catch {\n // Invalid JSON in payments/intents — validation surfaces the error; push\n // only the operation so the slider stays locked.\n registerRuntimeInputs({ operation });\n }\n }, [registerRuntimeInputs, buildRuntimeInputs, operation]);\n\n // Unlock the slide-to-sign control only when the chosen op is valid.\n useEffect(() => {\n unlockSigning?.(!isDisabled && !isRunning && validation.ok && actAsGroupReady(actAs));\n }, [unlockSigning, isDisabled, isRunning, validation.ok]);\n\n // -------------------------------------------------------------------------\n // The signing handler the generic SlideToSign control invokes.\n // -------------------------------------------------------------------------\n const execute = useCallback(async () => {\n if (isDisabled || isRunning) return;\n if (!executeAction) {\n updateRuntime({ state: 'failed', error: { message: 'Shared action executor is unavailable', at: Date.now() } });\n return;\n }\n if (!validation.ok) {\n console.warn(`${LOG} refusing to execute — invalid inputs`, { operation, error: validation.error });\n return;\n }\n\n let runtimeInputs: CollectionLifecycleRuntimeInputs;\n try {\n runtimeInputs = buildRuntimeInputs();\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Invalid operation inputs';\n updateRuntime({ state: 'failed', error: { message, at: Date.now() } });\n return;\n }\n\n console.log(`${LOG} execute →`, { operation: runtimeInputs.operation, collectionId: effectiveCollectionId });\n try {\n const outcome = await executeAction({ runtimeInputs: { ...runtimeInputs, ...actAsGroupRuntimeInputs(actAs) } as CollectionLifecycleRuntimeInputs });\n if (!outcome.success) {\n throw new Error(outcome.error || `Collection ${runtimeInputs.operation} failed`);\n }\n const payload = outcome.output as Partial<CollectionState> | undefined;\n // Proof guard: every op (create or update) must read back a collection.\n if (!payload?.collectionId) {\n throw new Error('Action returned success without a collection state. Check the [collection] handler logs.');\n }\n console.log(`${LOG} execute success`, { operation: runtimeInputs.operation, collectionId: payload.collectionId, state: payload.state });\n } catch (err) {\n const failure = collectionLifecycleRuntimeError(err, runtimeInputs);\n const message = failure.message;\n console.error(`${LOG} execute failed`, { operation: runtimeInputs.operation, message });\n updateRuntime({ state: 'failed', error: failure });\n }\n }, [isDisabled, isRunning, executeAction, validation.ok, validation.error, operation, buildRuntimeInputs, effectiveCollectionId, updateRuntime]);\n\n // Re-arm the signing handler whenever execute identity changes.\n useEffect(() => {\n if (!provideSigningHandler) return;\n provideSigningHandler(execute);\n }, [provideSigningHandler, execute]);\n\n // Stale-state recovery: clear runtime to idle, allow Force Run.\n const handleReset = useCallback(() => {\n console.log(`${LOG} reset → idle`);\n refreshOnLoadRef.current = false;\n seededFromRef.current = '';\n updateRuntime({ state: 'idle', error: undefined, output: {} });\n }, [updateRuntime]);\n\n const handleForceRun = useCallback(() => {\n console.log(`${LOG} force run`);\n updateRuntime({ state: 'idle', error: undefined, output: {} });\n // Defer so the reset propagates through the Y.Map before we re-execute.\n setTimeout(() => {\n execute();\n }, 0);\n }, [updateRuntime, execute]);\n\n // Manual refresh used by the failure-recovery path and as a general action.\n const handleManualRefresh = useCallback(() => {\n refreshOnLoadRef.current = false;\n runRefresh();\n }, [runRefresh]);\n\n // -------------------------------------------------------------------------\n // Render\n // -------------------------------------------------------------------------\n const title = (block?.props?.title as string) || (isCreateMode ? 'Create Claim Collection' : 'Manage Claim Collection');\n const description = (block?.props?.description as string) || '';\n\n return (\n <Stack gap=\"md\" pos=\"relative\">\n <GroupProposalStatus editor={editor} block={block} runtime={runtime} />\n {runtime?.state !== 'awaiting_readback' && <ActAsGroupSection value={actAs} onChange={setActAs} isDisabled={isDisabled} actionLabel=\"update this collection\" />}\n <Stack gap={2}>\n <Text fw={600}>{title}</Text>\n {description && (\n <Text size=\"sm\" c=\"dimmed\">\n {description}\n </Text>\n )}\n </Stack>\n\n {/* Stale-completed recovery (completed with no collectionId proof). */}\n {isStale && (\n <Alert icon={<IconAlertCircle size={16} />} color=\"yellow\" title=\"Inconsistent State\">\n <Stack gap=\"xs\">\n <Text size=\"sm\">Block was marked completed but no collection state was recorded. This is stale state from a previous run — reset and re-run.</Text>\n <Group>\n <Button variant=\"outline\" size=\"xs\" onClick={handleReset}>\n Reset\n </Button>\n <Button variant=\"filled\" size=\"xs\" onClick={handleForceRun} disabled={!validation.ok}>\n Force Run Now\n </Button>\n </Group>\n </Stack>\n </Alert>\n )}\n\n {/* Failure recovery — output is wiped on failure, so offer a refresh. */}\n {isFailed && (\n <Alert icon={<IconAlertCircle size={16} />} color=\"red\" title=\"Action Failed\" styles={actionAlertStyles}>\n <Stack gap=\"xs\">\n {errorMessage && <Text size=\"sm\">{errorMessage}</Text>}\n <Group>\n <Button variant=\"outline\" size=\"xs\" onClick={handleReset}>\n Reset\n </Button>\n {!!effectiveCollectionId && (\n <Button variant=\"filled\" size=\"xs\" leftSection={<IconRefresh size={14} />} onClick={handleManualRefresh}>\n Refresh State\n </Button>\n )}\n </Group>\n </Stack>\n </Alert>\n )}\n\n {/* Manage-only mode waiting on the first refresh. */}\n {isManageMode && !hasSnapshot && !isRunning && !isFailed && (\n <Group gap=\"xs\">\n <Loader size={14} />\n <Text size=\"sm\" c=\"dimmed\">\n Loading collection {effectiveCollectionId ? `(${effectiveCollectionId})` : ''}…\n </Text>\n </Group>\n )}\n\n {/* Manage surface — stats strip + per-op controls. */}\n {hasSnapshot && (\n <Stack gap=\"md\">\n <StatsStrip output={output as CollectionState} />\n\n {isCompletedWithProof && (\n <Alert icon={<IconCheck size={16} />} color=\"green\" styles={actionAlertStyles}>\n Collection {outputCollectionId} synced — {stateLabel(output?.state)}.\n </Alert>\n )}\n\n <SegmentedControl\n fullWidth\n value={operation === 'create' ? 'updateState' : operation}\n onChange={(value) => setOperation(value as CollectionOperation)}\n disabled={isDisabled || isRunning}\n data={[\n { label: 'State', value: 'updateState' },\n { label: 'Dates', value: 'updateDates' },\n { label: 'Quota', value: 'updateQuota' },\n { label: 'Payments', value: 'updatePayments' },\n { label: 'Intents', value: 'updateIntents' },\n ]}\n />\n\n {operation === 'updateState' && (\n <SegmentedControl\n fullWidth\n value={String(targetState)}\n onChange={(value) => setTargetState(Number(value) as CollectionStateEnum)}\n disabled={isDisabled || isRunning}\n data={[\n { label: 'Open', value: String(CollectionStateEnum.OPEN) },\n { label: 'Paused', value: String(CollectionStateEnum.PAUSED) },\n { label: 'Closed', value: String(CollectionStateEnum.CLOSED) },\n ]}\n />\n )}\n\n {operation === 'updateDates' && (\n <Group grow align=\"flex-start\">\n <DateTimePicker\n label=\"Start date\"\n placeholder=\"Select start date and time\"\n valueFormat=\"DD MMM YYYY, HH:mm\"\n clearable\n value={isoToDate(editStartDate)}\n onChange={(date) => setEditStartDate(dateToIso(date))}\n disabled={isDisabled || isRunning}\n />\n <DateTimePicker\n label=\"End date\"\n placeholder=\"Select end date and time\"\n valueFormat=\"DD MMM YYYY, HH:mm\"\n clearable\n minDate={isoToDate(editStartDate) || undefined}\n value={isoToDate(editEndDate)}\n onChange={(date) => setEditEndDate(dateToIso(date))}\n disabled={isDisabled || isRunning}\n />\n </Group>\n )}\n\n {operation === 'updateQuota' && (\n <BaseNumberInput\n label=\"Quota (0 = unlimited)\"\n description={`Submitted count: ${currentCount}. Quota must be 0 or at least ${currentCount}.`}\n min={0}\n value={editQuota === '' ? '' : Number(editQuota)}\n onChange={(value) => setEditQuota(value === '' || value == null ? '' : String(value))}\n disabled={isDisabled || isRunning}\n />\n )}\n\n {operation === 'updatePayments' && <PaymentsEditor value={editPayments} onChange={setEditPayments} disabled={isDisabled || isRunning} />}\n\n {operation === 'updateIntents' && (\n <BaseTextInput\n label=\"Intents (JSON)\"\n placeholder='{\"allowed\":true}'\n value={editIntentsJson}\n onChange={(e) => setEditIntentsJson(e.currentTarget.value)}\n disabled={isDisabled || isRunning}\n />\n )}\n\n {!validation.ok && validation.error && (\n <Alert color=\"yellow\" styles={actionAlertStyles}>\n {validation.error}\n </Alert>\n )}\n </Stack>\n )}\n\n {/* Create form. */}\n {isCreateMode && !hasSnapshot && (\n <Stack gap=\"md\">\n {(!parsed.entity || !parsed.protocol) && (\n <Alert color=\"yellow\" styles={actionAlertStyles}>\n Configure the entity DID and protocol in template mode before creating a collection.\n </Alert>\n )}\n <BaseNumberInput\n label=\"Quota (0 = unlimited)\"\n min={0}\n value={createQuota === '' ? '' : Number(createQuota)}\n onChange={(value) => setCreateQuota(value === '' || value == null ? '' : String(value))}\n disabled={isDisabled || isRunning}\n />\n <Group grow align=\"flex-start\">\n <DateTimePicker\n label=\"Start date\"\n placeholder=\"Select start date and time\"\n valueFormat=\"DD MMM YYYY, HH:mm\"\n clearable\n value={isoToDate(createStartDate)}\n onChange={(date) => setCreateStartDate(dateToIso(date))}\n disabled={isDisabled || isRunning}\n />\n <DateTimePicker\n label=\"End date\"\n placeholder=\"Select end date and time\"\n valueFormat=\"DD MMM YYYY, HH:mm\"\n clearable\n minDate={isoToDate(createStartDate) || undefined}\n value={isoToDate(createEndDate)}\n onChange={(date) => setCreateEndDate(dateToIso(date))}\n disabled={isDisabled || isRunning}\n />\n </Group>\n <PaymentsEditor value={createPayments} onChange={setCreatePayments} disabled={isDisabled || isRunning} />\n {!validation.ok && validation.error && (\n <Alert color=\"yellow\" styles={actionAlertStyles}>\n {validation.error}\n </Alert>\n )}\n </Stack>\n )}\n\n {isDisabled && (\n <Text size=\"xs\" c=\"dimmed\">\n This block is currently disabled.\n </Text>\n )}\n\n {/* In-flight overlay — output is blanked during a run, so block reads of\n stale data behind a syncing veil rather than rendering a half state. */}\n {isRunning && (\n <Overlay color=\"var(--mantine-color-body)\" backgroundOpacity={0.6} blur={1} zIndex={5} radius=\"md\">\n <Group gap=\"xs\" justify=\"center\" h=\"100%\">\n <Loader size={16} />\n <Text size=\"sm\">Syncing collection state…</Text>\n </Group>\n </Overlay>\n )}\n </Stack>\n );\n};\n\n/**\n * Structured per-stage payout editor. Each claim stage (submission, evaluation,\n * approval, rejection) gets an optional amount + token (IXO | USDC). A blank or\n * zero amount means \"no payout for this stage\". The amount is in display units;\n * the consumer handler converts to the chain base denom and settles every leg\n * from the entity admin account.\n */\nconst PaymentsEditor: React.FC<{ value: PaymentsInput; onChange: (next: PaymentsInput) => void; disabled?: boolean }> = ({ value, onChange, disabled }) => {\n const setLeg = (key: PaymentLegKey, patch: Partial<PaymentLegInput>) => {\n onChange({ ...value, [key]: { ...value[key], ...patch } });\n };\n return (\n <Stack gap=\"sm\">\n <Stack gap={2}>\n <Text size=\"sm\" fw={500}>\n Payouts\n </Text>\n <Text size=\"xs\" c=\"dimmed\">\n Optional payout per claim stage, paid from the entity admin account. Leave blank for no payout.\n </Text>\n </Stack>\n {PAYMENT_LEGS.map(({ key, label, description }) => (\n <Group key={key} align=\"flex-end\" gap=\"sm\" wrap=\"nowrap\">\n <BaseNumberInput\n label={label}\n description={description}\n placeholder=\"0\"\n min={0}\n decimalScale={6}\n style={{ flex: 1 }}\n value={value[key].amount === '' ? '' : Number(value[key].amount)}\n onChange={(v) => setLeg(key, { amount: v === '' || v == null ? '' : String(v) })}\n disabled={disabled}\n />\n <BaseSelect\n label=\"Token\"\n w={110}\n allowDeselect={false}\n data={PAYMENT_TOKENS.map((t) => ({ value: t, label: t }))}\n value={value[key].token}\n onChange={(v) => setLeg(key, { token: (v as PaymentToken) || 'IXO' })}\n disabled={disabled}\n />\n </Group>\n ))}\n </Stack>\n );\n};\n\nconst StatsStrip: React.FC<{ output: CollectionState }> = ({ output }) => {\n return (\n <Box\n style={{\n border: '1px solid var(--mantine-color-neutralColor-6)',\n borderRadius: 8,\n padding: 12,\n background: 'var(--mantine-color-neutralColor-5)',\n }}\n >\n <Group justify=\"space-between\" wrap=\"wrap\" gap=\"md\">\n <Stat label=\"Collection\" value={output.collectionId} mono />\n <Stat label=\"State\" value={stateLabel(output.state)} badge stateValue={output.state} />\n <Stat label=\"Count\" value={String(output.count ?? '0')} />\n <Stat label=\"Quota\" value={formatQuota(output.quota)} />\n {output.startDate && <Stat label=\"Start\" value={output.startDate} />}\n {output.endDate && <Stat label=\"End\" value={output.endDate} />}\n </Group>\n </Box>\n );\n};\n\nconst Stat: React.FC<{ label: string; value: string; mono?: boolean; badge?: boolean; stateValue?: CollectionStateEnum }> = ({ label, value, mono, badge, stateValue }) => {\n const badgeColor = stateValue === CollectionStateEnum.OPEN ? 'green' : stateValue === CollectionStateEnum.PAUSED ? 'yellow' : 'red';\n return (\n <Stack gap={2} style={{ minWidth: 0 }}>\n <Text size=\"xs\" c=\"dimmed\">\n {label}\n </Text>\n {badge ? (\n <Badge color={badgeColor} variant=\"light\">\n {value}\n </Badge>\n ) : (\n <Text size=\"sm\" fw={600} style={mono ? { wordBreak: 'break-all', fontFamily: 'var(--mantine-font-family-monospace)' } : undefined}>\n {value}\n </Text>\n )}\n </Stack>\n );\n};\n\nexport default CollectionLifecycleFlowDetail;\n","import type { CollectionLifecycleRuntimeInputs, CollectionOperation } from './types';\n\nexport const ACTION_INPUT_REQUIRED_ERROR_CODE = 'ACTION_INPUT_REQUIRED';\n\nconst COLLECTION_MANAGE_OPERATIONS = new Set<CollectionOperation>(['refresh', 'updateState', 'updateDates', 'updateQuota', 'updatePayments', 'updateIntents']);\n\nexport interface CollectionLifecycleRuntimeError {\n message: string;\n at: number;\n code?: string;\n data?: {\n actionType: 'qi/collection.lifecycle';\n field: 'collectionId';\n operation: Exclude<CollectionOperation, 'create'>;\n };\n}\n\n/**\n * Preserve the safe, action-specific context a diagnostic oracle needs after\n * a failed collection run. Runtime inputs can contain sensitive values for\n * other actions, so the durable error records only the operation and missing\n * field rather than copying the complete attempted input object into Yjs.\n */\nexport function collectionLifecycleRuntimeError(\n error: unknown,\n runtimeInputs: Pick<CollectionLifecycleRuntimeInputs, 'operation' | 'collectionId'>,\n at = Date.now()\n): CollectionLifecycleRuntimeError {\n const message = error instanceof Error ? error.message : String(error || 'Collection lifecycle action failed');\n const operation = runtimeInputs.operation;\n const collectionId = String(runtimeInputs.collectionId || '').trim();\n const isMissingCollectionId = operation !== 'create' && COLLECTION_MANAGE_OPERATIONS.has(operation) && collectionId.length === 0 && message.includes('collectionId is required');\n\n if (!isMissingCollectionId) return { message, at };\n\n return {\n message,\n code: ACTION_INPUT_REQUIRED_ERROR_CODE,\n at,\n data: {\n actionType: 'qi/collection.lifecycle',\n field: 'collectionId',\n operation,\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,SAAS,aAAa,WAAW,SAAS,QAAQ,gBAAgB;AACzE,SAAS,OAAO,KAAK,QAAQ,OAAO,QAAQ,SAAS,kBAAkB,OAAO,YAAY;AAE1F,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB,WAAW,mBAAmB;;;ACHjD,IAAM,mCAAmC;AAEhD,IAAM,+BAA+B,oBAAI,IAAyB,CAAC,WAAW,eAAe,eAAe,eAAe,kBAAkB,eAAe,CAAC;AAmBtJ,SAAS,gCACd,OACA,eACA,KAAK,KAAK,IAAI,GACmB;AACjC,QAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,SAAS,oCAAoC;AAC7G,QAAM,YAAY,c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