@ixo/editor 7.15.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.
Files changed (316) hide show
  1. package/dist/{BidConfig-SOEBBSKS.js → BidConfig-GP6SUQDP.js} +10 -10
  2. package/dist/{BidFlowDetail-AF6IMOFV.js → BidFlowDetail-5IV4F57M.js} +143 -30
  3. package/dist/BidFlowDetail-5IV4F57M.js.map +1 -0
  4. package/dist/{CalendarEventCreateConfig-CYSROJCS.js → CalendarEventCreateConfig-4MLTZ5LN.js} +11 -11
  5. package/dist/{CalendarEventCreateFlowDetail-FVSI73WL.js → CalendarEventCreateFlowDetail-YXZZYXEV.js} +12 -12
  6. package/dist/{CalendarEventListConfig-GAEEP2Q5.js → CalendarEventListConfig-KNWS4QAV.js} +11 -11
  7. package/dist/{CalendarEventListFlowDetail-BMCJ3KQQ.js → CalendarEventListFlowDetail-TNLEQISF.js} +5 -5
  8. package/dist/{CalendarEventUpdateConfig-CHC3JTGD.js → CalendarEventUpdateConfig-ULBUH6XB.js} +11 -11
  9. package/dist/{CalendarEventUpdateFlowDetail-UN4X6BG7.js → CalendarEventUpdateFlowDetail-2JGXJNXF.js} +12 -12
  10. package/dist/{ClaimConfig-ALXQE5X4.js → ClaimConfig-NA5OKL2E.js} +10 -10
  11. package/dist/{ClaimFlowDetail-YT6IHFZM.js → ClaimFlowDetail-3QAA2WQN.js} +153 -24
  12. package/dist/ClaimFlowDetail-3QAA2WQN.js.map +1 -0
  13. package/dist/{CollectionLifecycleConfig-KQTVOC32.js → CollectionLifecycleConfig-7FEGRU2T.js} +4 -4
  14. package/dist/{CollectionLifecycleFlowDetail-4NYB45DK.js → CollectionLifecycleFlowDetail-MZ57UM2D.js} +26 -16
  15. package/dist/CollectionLifecycleFlowDetail-MZ57UM2D.js.map +1 -0
  16. package/dist/{CollectionUsersConfig-67B3CZJ7.js → CollectionUsersConfig-EZPWZBVU.js} +10 -10
  17. package/dist/{CollectionUsersFlowDetail-M5HV3RWG.js → CollectionUsersFlowDetail-P2JHJEDX.js} +17 -17
  18. package/dist/{CredentialStoreConfig-M5XLG47Z.js → CredentialStoreConfig-NHGY66QF.js} +8 -8
  19. package/dist/{CredentialStoreFlowDetail-WMMOWAKF.js → CredentialStoreFlowDetail-E4ZA7SVE.js} +7 -7
  20. package/dist/{DesignPodFlowDetail-VZTW2AWF.js → DesignPodFlowDetail-TVE7QL5F.js} +5 -5
  21. package/dist/{DomainCardPreviewFlowDetail-3KTY5RLY.js → DomainCardPreviewFlowDetail-AD6R7T4V.js} +7 -7
  22. package/dist/{DomainIndexerLookupFlowDetail-DCD65QCZ.js → DomainIndexerLookupFlowDetail-IPKK755F.js} +5 -5
  23. package/dist/{DomainSignFlowDetail-YWNC34FO.js → DomainSignFlowDetail-GJDUQ4SK.js} +8 -8
  24. package/dist/{DomainSingleSelectionConfig-MAUD3VYU.js → DomainSingleSelectionConfig-OQMKNWKB.js} +4 -4
  25. package/dist/{DomainSingleSelectionFlowDetail-NBS2MMJX.js → DomainSingleSelectionFlowDetail-D5PEEZYE.js} +5 -5
  26. package/dist/{EmailSendConfig-6EV7VD7L.js → EmailSendConfig-5P4PO2DP.js} +10 -10
  27. package/dist/{EntityCreateOracleFlowDetail-WD6XIWQ2.js → EntityCreateOracleFlowDetail-IQLILC7A.js} +7 -7
  28. package/dist/{EntitySingleSelectionFlowDetail-KMVR3LLL.js → EntitySingleSelectionFlowDetail-73VBDDKV.js} +5 -5
  29. package/dist/{EntityTransferFlowDetail-AEADLD3I.js → EntityTransferFlowDetail-COBLNSTI.js} +7 -7
  30. package/dist/{EvalEngineConfig-RMBJG7YY.js → EvalEngineConfig-4YSTWRVH.js} +13 -13
  31. package/dist/{EvalEngineFlowDetail-ETGE2BJO.js → EvalEngineFlowDetail-X5R4TYGB.js} +9 -9
  32. package/dist/{EvaluateBidConfig-IQSPMZHS.js → EvaluateBidConfig-GKL7SYIS.js} +10 -10
  33. package/dist/{EvaluateBidFlowDetail-PHWISTA3.js → EvaluateBidFlowDetail-QEUA6HYS.js} +15 -15
  34. package/dist/{EvaluateClaimConfig-3RGAVDZ6.js → EvaluateClaimConfig-ANGCA37A.js} +10 -10
  35. package/dist/{EvaluateClaimFlowDetail-S73ROLVK.js → EvaluateClaimFlowDetail-SC7BDU6G.js} +15 -15
  36. package/dist/{FormSubmitFlowDetail-GAQL2MJ5.js → FormSubmitFlowDetail-ABJIIT5G.js} +7 -7
  37. package/dist/{GovernanceAuthzExecFlowDetail-TQJXCCAG.js → GovernanceAuthzExecFlowDetail-SSXMCONH.js} +8 -8
  38. package/dist/{GovernanceAuthzGrantFlowDetail-GUWGLLHX.js → GovernanceAuthzGrantFlowDetail-OWP4PTST.js} +9 -9
  39. package/dist/{GovernanceAuthzRevokeFlowDetail-S5ODI3AG.js → GovernanceAuthzRevokeFlowDetail-IF2MAJLL.js} +9 -9
  40. package/dist/{GovernanceChainVoteFlowDetail-RQGR2JFP.js → GovernanceChainVoteFlowDetail-UBICGJSY.js} +8 -8
  41. package/dist/{GovernanceConfigFlowDetail-UHXOY3HS.js → GovernanceConfigFlowDetail-7FKPUYIO.js} +5 -5
  42. package/dist/{GovernanceContractExecuteFlowDetail-AAT2OUN6.js → GovernanceContractExecuteFlowDetail-4N45IKK7.js} +9 -9
  43. package/dist/{GovernanceContractInstantiateFlowDetail-MCUNMJ43.js → GovernanceContractInstantiateFlowDetail-MSAJTVIR.js} +9 -9
  44. package/dist/{GovernanceContractManageCw20FlowDetail-LDJL73OC.js → GovernanceContractManageCw20FlowDetail-O6Z2A47N.js} +8 -8
  45. package/dist/{GovernanceContractMigrateFlowDetail-YEOAELCK.js → GovernanceContractMigrateFlowDetail-FUYS2253.js} +9 -9
  46. package/dist/{GovernanceContractUpdateAdminFlowDetail-JUXAY76J.js → GovernanceContractUpdateAdminFlowDetail-J4Z2TI2Y.js} +8 -8
  47. package/dist/{GovernanceCustomMessageFlowDetail-H5HZBVL2.js → GovernanceCustomMessageFlowDetail-2WCHVHWW.js} +9 -9
  48. package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-QA6ZGBOM.js → GovernanceDaoAcceptToMarketplaceFlowDetail-VQE7VJE5.js} +9 -9
  49. package/dist/{GovernanceDaoAdminExecFlowDetail-ILJSAV2T.js → GovernanceDaoAdminExecFlowDetail-D2KSC7KX.js} +10 -10
  50. package/dist/{GovernanceDaoCreateEntityFlowDetail-275TUZCE.js → GovernanceDaoCreateEntityFlowDetail-FQKIMJ25.js} +9 -9
  51. package/dist/{GovernanceDaoJoinFlowDetail-QKKQGTNI.js → GovernanceDaoJoinFlowDetail-BIKEPPHW.js} +9 -9
  52. package/dist/{GovernanceDaoManageStorageFlowDetail-IFXTOWAJ.js → GovernanceDaoManageStorageFlowDetail-LPIF6E7F.js} +8 -8
  53. package/dist/{GovernanceDaoManageSubDaosFlowDetail-R772UMIS.js → GovernanceDaoManageSubDaosFlowDetail-EP2NJTKN.js} +9 -9
  54. package/dist/{GovernanceDaoUpdateInfoFlowDetail-RN47R5VS.js → GovernanceDaoUpdateInfoFlowDetail-DSCFK5FM.js} +8 -8
  55. package/dist/{GovernanceMemberProposalConfig-N6B6RXO7.js → GovernanceMemberProposalConfig-MVYMGVN7.js} +5 -5
  56. package/dist/{GovernanceMemberProposalFlowDetail-QGSK7VRV.js → GovernanceMemberProposalFlowDetail-Z6POQJXA.js} +9 -9
  57. package/dist/{GovernanceNftBurnFlowDetail-UQJD73UH.js → GovernanceNftBurnFlowDetail-UWXPVNSG.js} +8 -8
  58. package/dist/{GovernanceNftManageCollectionsFlowDetail-ZB6L4KV6.js → GovernanceNftManageCollectionsFlowDetail-MW2VWVC2.js} +8 -8
  59. package/dist/{GovernanceNftTransferFlowDetail-MMI3VAWF.js → GovernanceNftTransferFlowDetail-DBJQREB2.js} +9 -9
  60. package/dist/{GovernanceSettingsProposalConfig-WUHWPRDZ.js → GovernanceSettingsProposalConfig-7PIFFP47.js} +5 -5
  61. package/dist/{GovernanceSettingsProposalFlowDetail-OPMU6RLE.js → GovernanceSettingsProposalFlowDetail-3ID5U4PF.js} +8 -8
  62. package/dist/{GovernanceStakingStakeFlowDetail-L5W4XAUK.js → GovernanceStakingStakeFlowDetail-CNJWW4XN.js} +8 -8
  63. package/dist/{GovernanceStakingStakeToGroupFlowDetail-VS7CQMAL.js → GovernanceStakingStakeToGroupFlowDetail-ZRUICQ3D.js} +8 -8
  64. package/dist/{GovernanceSubmissionConfigProposalFlowDetail-DLIBHSIM.js → GovernanceSubmissionConfigProposalFlowDetail-UNTKYICX.js} +8 -8
  65. package/dist/{GovernanceTransactionMintFlowDetail-B7UDPTDK.js → GovernanceTransactionMintFlowDetail-7WMMK4MZ.js} +9 -9
  66. package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-BJYPNB4Q.js → GovernanceTransactionPerformTokenSwapFlowDetail-SRMMDAJ7.js} +8 -8
  67. package/dist/{GovernanceTransactionSendFundsConfig-JIY26APJ.js → GovernanceTransactionSendFundsConfig-BHZTNS4Z.js} +5 -5
  68. package/dist/{GovernanceTransactionSendFundsFlowDetail-5JIF4Q36.js → GovernanceTransactionSendFundsFlowDetail-PGM2EDOD.js} +9 -9
  69. package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-3LJEV3ZW.js → GovernanceTransactionSendGroupTokenFlowDetail-6KDJ63HM.js} +9 -9
  70. package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-PJTTOZAS.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-VM3AFFAD.js} +8 -8
  71. package/dist/{GovernanceValidatorActionsFlowDetail-Q6MSOIVM.js → GovernanceValidatorActionsFlowDetail-TZ3VQ3EA.js} +8 -8
  72. package/dist/{HarvestConfig-WJSUGPDX.js → HarvestConfig-DM3V52S7.js} +9 -9
  73. package/dist/{HarvestFlowDetail-3KYBEQYJ.js → HarvestFlowDetail-DSLEE22S.js} +7 -7
  74. package/dist/{HttpRequestConfig-WVZ5UVUH.js → HttpRequestConfig-QJI62HRG.js} +8 -8
  75. package/dist/{HttpRequestFlowDetail-I4IKWJLH.js → HttpRequestFlowDetail-7KL6E2AJ.js} +5 -5
  76. package/dist/{IdentityCreateFlowDetail-WPIM4WYR.js → IdentityCreateFlowDetail-Y6IN6TXN.js} +13 -13
  77. package/dist/{IidCreateFlowDetail-K3GH6MUW.js → IidCreateFlowDetail-GZYUXPBZ.js} +13 -13
  78. package/dist/{KycVerifyConfig-GPVDALNG.js → KycVerifyConfig-VCZCPMHG.js} +8 -8
  79. package/dist/{KycVerifyFlowDetail-3AAZDQNI.js → KycVerifyFlowDetail-GHTMTDF7.js} +13 -13
  80. package/dist/{ListDomainFlowsFlowDetail-5GW7L6M7.js → ListDomainFlowsFlowDetail-IKKCGK6H.js} +5 -5
  81. package/dist/{LoadBatchesFlowDetail-5FMXEL7G.js → LoadBatchesFlowDetail-CQUCDXS7.js} +7 -7
  82. package/dist/{MatrixDmConfig-Q5DI6JTL.js → MatrixDmConfig-SAWMGCJY.js} +4 -4
  83. package/dist/{MatrixRegisterFlowDetail-BG2ABZUJ.js → MatrixRegisterFlowDetail-JFS6LNVD.js} +7 -7
  84. package/dist/{MemberMultiSelectFlowDetail-CNJHGZMN.js → MemberMultiSelectFlowDetail-42V4NEDY.js} +5 -5
  85. package/dist/{OracleConfig-NYT2WEMS.js → OracleConfig-OSLSWVRA.js} +8 -8
  86. package/dist/{OracleConfigureOracleFlowDetail-23MYM57H.js → OracleConfigureOracleFlowDetail-NEPBW73E.js} +13 -13
  87. package/dist/{OracleContractFlowDetail-XWRVGANN.js → OracleContractFlowDetail-VGX62V2T.js} +7 -7
  88. package/dist/{OracleDeployFlowDetail-YFLWLL3Y.js → OracleDeployFlowDetail-OAS3ITPT.js} +7 -7
  89. package/dist/{OracleDeploySetupFlowDetail-66JGJYBZ.js → OracleDeploySetupFlowDetail-5VKCOPB4.js} +7 -7
  90. package/dist/{OracleDeployStartFlowDetail-GDYEBYS7.js → OracleDeployStartFlowDetail-WFXV4SWB.js} +7 -7
  91. package/dist/{OracleFlowDetail-ID2YN64X.js → OracleFlowDetail-UU3XJ7QT.js} +7 -7
  92. package/dist/{OraclePromptFlowDetail-KEFFIEAV.js → OraclePromptFlowDetail-OVWSYTGH.js} +7 -7
  93. package/dist/{OracleStoreConfigFlowDetail-JBMYMNTR.js → OracleStoreConfigFlowDetail-CY4SKQMO.js} +7 -7
  94. package/dist/{OracleStoreSecretsAndConfigFlowDetail-USJJMY2N.js → OracleStoreSecretsAndConfigFlowDetail-OZOG2CEP.js} +13 -13
  95. package/dist/{OracleStoreSecretsFlowDetail-HBNITQVJ.js → OracleStoreSecretsFlowDetail-LD6EJUVW.js} +13 -13
  96. package/dist/{ProposalCreateConfig-OYRNWSQM.js → ProposalCreateConfig-B3H3Y34N.js} +10 -10
  97. package/dist/{ProposalCreateFlowDetail-FAMXF3FJ.js → ProposalCreateFlowDetail-GRTQRWUT.js} +14 -14
  98. package/dist/{ProposalVoteConfig-WBACHAPS.js → ProposalVoteConfig-4HNKH3MK.js} +10 -10
  99. package/dist/{ProposalVoteFlowDetail-2G52BCX3.js → ProposalVoteFlowDetail-FFJN3O6P.js} +8 -8
  100. package/dist/{ProtocolSelectFlowDetail-TRS5XIWB.js → ProtocolSelectFlowDetail-CDBH7BYF.js} +4 -4
  101. package/dist/{RetireConfig-NFSO6JFD.js → RetireConfig-3FCYGEUG.js} +9 -9
  102. package/dist/{RetireFlowDetail-WTRYU6ZH.js → RetireFlowDetail-5TR3WYKF.js} +7 -7
  103. package/dist/{SandboxProvisionFlowDetail-MN3JIBRQ.js → SandboxProvisionFlowDetail-NVHFUDRV.js} +7 -7
  104. package/dist/{WalletFundConfig-S4WN3VCS.js → WalletFundConfig-R4FAESYH.js} +5 -5
  105. package/dist/{WalletFundFlowDetail-AJDLNRBB.js → WalletFundFlowDetail-52LJDXBZ.js} +8 -8
  106. package/dist/{WalletGenerateAndFundFlowDetail-IOC76LP3.js → WalletGenerateAndFundFlowDetail-PTQLEDUE.js} +5 -5
  107. package/dist/{WalletGenerateFlowDetail-7MT64UD4.js → WalletGenerateFlowDetail-GAAEO5OB.js} +5 -5
  108. package/dist/{XeroContactCreateConfig-HJ6CNR5D.js → XeroContactCreateConfig-3K7GR4PQ.js} +11 -11
  109. package/dist/{XeroContactCreateFlowDetail-5KL4KF4O.js → XeroContactCreateFlowDetail-CBNHE23D.js} +12 -12
  110. package/dist/{XeroInvoiceCreateConfig-ZVYODGTW.js → XeroInvoiceCreateConfig-BPOC6DP4.js} +11 -11
  111. package/dist/{XeroInvoiceCreateFlowDetail-OEOXIRAD.js → XeroInvoiceCreateFlowDetail-5ZJISTQP.js} +14 -14
  112. package/dist/{XeroInvoiceListConfig-6O43OJ3S.js → XeroInvoiceListConfig-5GHQS4X2.js} +11 -11
  113. package/dist/{XeroInvoiceListFlowDetail-OVVFJBH4.js → XeroInvoiceListFlowDetail-A45D47DJ.js} +5 -5
  114. package/dist/{XeroPaymentCreateConfig-Y74OGQYZ.js → XeroPaymentCreateConfig-N34OOVF3.js} +8 -8
  115. package/dist/{XeroPaymentCreateFlowDetail-DUXQCMBU.js → XeroPaymentCreateFlowDetail-GQU62UKC.js} +13 -13
  116. package/dist/{chunk-SVFQK7TY.js → chunk-3ZO4VLSK.js} +159 -35
  117. package/dist/chunk-3ZO4VLSK.js.map +1 -0
  118. package/dist/{chunk-55DFG6EH.js → chunk-43D3NWOA.js} +3 -3
  119. package/dist/{chunk-SBPQEYAW.js → chunk-4Y66NZYT.js} +1 -1
  120. package/dist/chunk-4Y66NZYT.js.map +1 -0
  121. package/dist/{chunk-M3EJH34Z.js → chunk-7TNGZ73M.js} +7 -3
  122. package/dist/chunk-7TNGZ73M.js.map +1 -0
  123. package/dist/{chunk-SVCJW7A5.js → chunk-7TT4RM2M.js} +2 -2
  124. package/dist/{chunk-6QMKNZV2.js → chunk-ADFZLOPH.js} +30 -10
  125. package/dist/{chunk-6QMKNZV2.js.map → chunk-ADFZLOPH.js.map} +1 -1
  126. package/dist/{chunk-NF5NLKGM.js → chunk-AHPUF6IS.js} +2 -2
  127. package/dist/{chunk-KB3KTVO4.js → chunk-AOLCNPGV.js} +2 -2
  128. package/dist/{chunk-3KLHYTQ5.js → chunk-AWAQL6ZO.js} +2 -2
  129. package/dist/{chunk-DZGUAQIL.js → chunk-BE4KNIIO.js} +2 -2
  130. package/dist/{chunk-GQXLZR7X.js → chunk-CYSIKH2M.js} +5 -5
  131. package/dist/{chunk-PCXJHDOC.js → chunk-DTI7CLYI.js} +22 -21
  132. package/dist/chunk-DTI7CLYI.js.map +1 -0
  133. package/dist/{chunk-HGOTOYFJ.js → chunk-DV3SAEKZ.js} +2 -2
  134. package/dist/{chunk-WO4WYAC4.js → chunk-EVHWLO2C.js} +2 -2
  135. package/dist/{chunk-U73FEKW2.js → chunk-FORJT34Q.js} +2 -2
  136. package/dist/{chunk-RBMJMFLQ.js → chunk-GRVWI465.js} +2 -2
  137. package/dist/{chunk-T2WRUATR.js → chunk-GUGO63DD.js} +2 -2
  138. package/dist/{chunk-I3PB2HDL.js → chunk-HNZQKYXU.js} +2 -2
  139. package/dist/{chunk-ZEWC6VWO.js → chunk-IZRTWKW3.js} +2 -2
  140. package/dist/{chunk-CTEIZZG3.js → chunk-JCZHNO6K.js} +2 -2
  141. package/dist/{chunk-CJKGXEEM.js → chunk-K2LBL7FF.js} +1544 -1404
  142. package/dist/chunk-K2LBL7FF.js.map +1 -0
  143. package/dist/{chunk-JWY3T4I6.js → chunk-KKFBQ64O.js} +2 -2
  144. package/dist/{chunk-IIJZCRXG.js → chunk-LD5FYXB5.js} +2 -2
  145. package/dist/{chunk-HQDUHIGT.js → chunk-MH2PPQSO.js} +5 -5
  146. package/dist/{chunk-SPXJUAWN.js → chunk-NPFETBLF.js} +2 -2
  147. package/dist/{chunk-ZHESO7VB.js → chunk-NUQ4QOVJ.js} +2 -2
  148. package/dist/{chunk-YTFI32EX.js → chunk-OG56C7DD.js} +2 -2
  149. package/dist/{chunk-CSSCRBZ4.js → chunk-OV4KVTZI.js} +2 -2
  150. package/dist/{chunk-FLKIT7NW.js → chunk-T57N7ZN5.js} +2 -2
  151. package/dist/{chunk-5ODWEBI4.js → chunk-WAM3FJJL.js} +3 -3
  152. package/dist/{chunk-QNBYEEUC.js → chunk-WM3A4CI6.js} +3 -3
  153. package/dist/{chunk-3JJNW2W5.js → chunk-WU6CRA5K.js} +2 -2
  154. package/dist/{chunk-ITBVRJHV.js → chunk-XLUP6K4Q.js} +4 -4
  155. package/dist/{chunk-DROORJ2V.js → chunk-YJZBVHZG.js} +4 -3
  156. package/dist/chunk-YJZBVHZG.js.map +1 -0
  157. package/dist/{chunk-5RMWJERQ.js → chunk-Z2CUKACX.js} +5 -5
  158. package/dist/{connections-BDhGRet3.d.ts → connections-D0wDsBew.d.ts} +12 -1
  159. package/dist/core/index.cjs +24 -4
  160. package/dist/core/index.cjs.map +1 -1
  161. package/dist/core/index.d.ts +4 -4
  162. package/dist/core/index.js +10 -10
  163. package/dist/{graphql-client-B8EW8cJK.d.ts → graphql-client-CCfakDEp.d.ts} +1 -1
  164. package/dist/index.d.ts +3 -3
  165. package/dist/index.js +22 -22
  166. package/dist/mantine/index.d.ts +116 -7
  167. package/dist/mantine/index.js +41 -23
  168. package/dist/mantine/index.js.map +1 -1
  169. package/dist/{types-D6uhk89M.d.ts → types-DN9nWVxp.d.ts} +31 -1
  170. package/package.json +1 -1
  171. package/dist/BidFlowDetail-AF6IMOFV.js.map +0 -1
  172. package/dist/ClaimFlowDetail-YT6IHFZM.js.map +0 -1
  173. package/dist/CollectionLifecycleFlowDetail-4NYB45DK.js.map +0 -1
  174. package/dist/chunk-CJKGXEEM.js.map +0 -1
  175. package/dist/chunk-DROORJ2V.js.map +0 -1
  176. package/dist/chunk-M3EJH34Z.js.map +0 -1
  177. package/dist/chunk-PCXJHDOC.js.map +0 -1
  178. package/dist/chunk-SBPQEYAW.js.map +0 -1
  179. package/dist/chunk-SVFQK7TY.js.map +0 -1
  180. /package/dist/{BidConfig-SOEBBSKS.js.map → BidConfig-GP6SUQDP.js.map} +0 -0
  181. /package/dist/{CalendarEventCreateConfig-CYSROJCS.js.map → CalendarEventCreateConfig-4MLTZ5LN.js.map} +0 -0
  182. /package/dist/{CalendarEventCreateFlowDetail-FVSI73WL.js.map → CalendarEventCreateFlowDetail-YXZZYXEV.js.map} +0 -0
  183. /package/dist/{CalendarEventListConfig-GAEEP2Q5.js.map → CalendarEventListConfig-KNWS4QAV.js.map} +0 -0
  184. /package/dist/{CalendarEventListFlowDetail-BMCJ3KQQ.js.map → CalendarEventListFlowDetail-TNLEQISF.js.map} +0 -0
  185. /package/dist/{CalendarEventUpdateConfig-CHC3JTGD.js.map → CalendarEventUpdateConfig-ULBUH6XB.js.map} +0 -0
  186. /package/dist/{CalendarEventUpdateFlowDetail-UN4X6BG7.js.map → CalendarEventUpdateFlowDetail-2JGXJNXF.js.map} +0 -0
  187. /package/dist/{ClaimConfig-ALXQE5X4.js.map → ClaimConfig-NA5OKL2E.js.map} +0 -0
  188. /package/dist/{CollectionLifecycleConfig-KQTVOC32.js.map → CollectionLifecycleConfig-7FEGRU2T.js.map} +0 -0
  189. /package/dist/{CollectionUsersConfig-67B3CZJ7.js.map → CollectionUsersConfig-EZPWZBVU.js.map} +0 -0
  190. /package/dist/{CollectionUsersFlowDetail-M5HV3RWG.js.map → CollectionUsersFlowDetail-P2JHJEDX.js.map} +0 -0
  191. /package/dist/{CredentialStoreConfig-M5XLG47Z.js.map → CredentialStoreConfig-NHGY66QF.js.map} +0 -0
  192. /package/dist/{CredentialStoreFlowDetail-WMMOWAKF.js.map → CredentialStoreFlowDetail-E4ZA7SVE.js.map} +0 -0
  193. /package/dist/{DesignPodFlowDetail-VZTW2AWF.js.map → DesignPodFlowDetail-TVE7QL5F.js.map} +0 -0
  194. /package/dist/{DomainCardPreviewFlowDetail-3KTY5RLY.js.map → DomainCardPreviewFlowDetail-AD6R7T4V.js.map} +0 -0
  195. /package/dist/{DomainIndexerLookupFlowDetail-DCD65QCZ.js.map → DomainIndexerLookupFlowDetail-IPKK755F.js.map} +0 -0
  196. /package/dist/{DomainSignFlowDetail-YWNC34FO.js.map → DomainSignFlowDetail-GJDUQ4SK.js.map} +0 -0
  197. /package/dist/{DomainSingleSelectionConfig-MAUD3VYU.js.map → DomainSingleSelectionConfig-OQMKNWKB.js.map} +0 -0
  198. /package/dist/{DomainSingleSelectionFlowDetail-NBS2MMJX.js.map → DomainSingleSelectionFlowDetail-D5PEEZYE.js.map} +0 -0
  199. /package/dist/{EmailSendConfig-6EV7VD7L.js.map → EmailSendConfig-5P4PO2DP.js.map} +0 -0
  200. /package/dist/{EntityCreateOracleFlowDetail-WD6XIWQ2.js.map → EntityCreateOracleFlowDetail-IQLILC7A.js.map} +0 -0
  201. /package/dist/{EntitySingleSelectionFlowDetail-KMVR3LLL.js.map → EntitySingleSelectionFlowDetail-73VBDDKV.js.map} +0 -0
  202. /package/dist/{EntityTransferFlowDetail-AEADLD3I.js.map → EntityTransferFlowDetail-COBLNSTI.js.map} +0 -0
  203. /package/dist/{EvalEngineConfig-RMBJG7YY.js.map → EvalEngineConfig-4YSTWRVH.js.map} +0 -0
  204. /package/dist/{EvalEngineFlowDetail-ETGE2BJO.js.map → EvalEngineFlowDetail-X5R4TYGB.js.map} +0 -0
  205. /package/dist/{EvaluateBidConfig-IQSPMZHS.js.map → EvaluateBidConfig-GKL7SYIS.js.map} +0 -0
  206. /package/dist/{EvaluateBidFlowDetail-PHWISTA3.js.map → EvaluateBidFlowDetail-QEUA6HYS.js.map} +0 -0
  207. /package/dist/{EvaluateClaimConfig-3RGAVDZ6.js.map → EvaluateClaimConfig-ANGCA37A.js.map} +0 -0
  208. /package/dist/{EvaluateClaimFlowDetail-S73ROLVK.js.map → EvaluateClaimFlowDetail-SC7BDU6G.js.map} +0 -0
  209. /package/dist/{FormSubmitFlowDetail-GAQL2MJ5.js.map → FormSubmitFlowDetail-ABJIIT5G.js.map} +0 -0
  210. /package/dist/{GovernanceAuthzExecFlowDetail-TQJXCCAG.js.map → GovernanceAuthzExecFlowDetail-SSXMCONH.js.map} +0 -0
  211. /package/dist/{GovernanceAuthzGrantFlowDetail-GUWGLLHX.js.map → GovernanceAuthzGrantFlowDetail-OWP4PTST.js.map} +0 -0
  212. /package/dist/{GovernanceAuthzRevokeFlowDetail-S5ODI3AG.js.map → GovernanceAuthzRevokeFlowDetail-IF2MAJLL.js.map} +0 -0
  213. /package/dist/{GovernanceChainVoteFlowDetail-RQGR2JFP.js.map → GovernanceChainVoteFlowDetail-UBICGJSY.js.map} +0 -0
  214. /package/dist/{GovernanceConfigFlowDetail-UHXOY3HS.js.map → GovernanceConfigFlowDetail-7FKPUYIO.js.map} +0 -0
  215. /package/dist/{GovernanceContractExecuteFlowDetail-AAT2OUN6.js.map → GovernanceContractExecuteFlowDetail-4N45IKK7.js.map} +0 -0
  216. /package/dist/{GovernanceContractInstantiateFlowDetail-MCUNMJ43.js.map → GovernanceContractInstantiateFlowDetail-MSAJTVIR.js.map} +0 -0
  217. /package/dist/{GovernanceContractManageCw20FlowDetail-LDJL73OC.js.map → GovernanceContractManageCw20FlowDetail-O6Z2A47N.js.map} +0 -0
  218. /package/dist/{GovernanceContractMigrateFlowDetail-YEOAELCK.js.map → GovernanceContractMigrateFlowDetail-FUYS2253.js.map} +0 -0
  219. /package/dist/{GovernanceContractUpdateAdminFlowDetail-JUXAY76J.js.map → GovernanceContractUpdateAdminFlowDetail-J4Z2TI2Y.js.map} +0 -0
  220. /package/dist/{GovernanceCustomMessageFlowDetail-H5HZBVL2.js.map → GovernanceCustomMessageFlowDetail-2WCHVHWW.js.map} +0 -0
  221. /package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-QA6ZGBOM.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-VQE7VJE5.js.map} +0 -0
  222. /package/dist/{GovernanceDaoAdminExecFlowDetail-ILJSAV2T.js.map → GovernanceDaoAdminExecFlowDetail-D2KSC7KX.js.map} +0 -0
  223. /package/dist/{GovernanceDaoCreateEntityFlowDetail-275TUZCE.js.map → GovernanceDaoCreateEntityFlowDetail-FQKIMJ25.js.map} +0 -0
  224. /package/dist/{GovernanceDaoJoinFlowDetail-QKKQGTNI.js.map → GovernanceDaoJoinFlowDetail-BIKEPPHW.js.map} +0 -0
  225. /package/dist/{GovernanceDaoManageStorageFlowDetail-IFXTOWAJ.js.map → GovernanceDaoManageStorageFlowDetail-LPIF6E7F.js.map} +0 -0
  226. /package/dist/{GovernanceDaoManageSubDaosFlowDetail-R772UMIS.js.map → GovernanceDaoManageSubDaosFlowDetail-EP2NJTKN.js.map} +0 -0
  227. /package/dist/{GovernanceDaoUpdateInfoFlowDetail-RN47R5VS.js.map → GovernanceDaoUpdateInfoFlowDetail-DSCFK5FM.js.map} +0 -0
  228. /package/dist/{GovernanceMemberProposalConfig-N6B6RXO7.js.map → GovernanceMemberProposalConfig-MVYMGVN7.js.map} +0 -0
  229. /package/dist/{GovernanceMemberProposalFlowDetail-QGSK7VRV.js.map → GovernanceMemberProposalFlowDetail-Z6POQJXA.js.map} +0 -0
  230. /package/dist/{GovernanceNftBurnFlowDetail-UQJD73UH.js.map → GovernanceNftBurnFlowDetail-UWXPVNSG.js.map} +0 -0
  231. /package/dist/{GovernanceNftManageCollectionsFlowDetail-ZB6L4KV6.js.map → GovernanceNftManageCollectionsFlowDetail-MW2VWVC2.js.map} +0 -0
  232. /package/dist/{GovernanceNftTransferFlowDetail-MMI3VAWF.js.map → GovernanceNftTransferFlowDetail-DBJQREB2.js.map} +0 -0
  233. /package/dist/{GovernanceSettingsProposalConfig-WUHWPRDZ.js.map → GovernanceSettingsProposalConfig-7PIFFP47.js.map} +0 -0
  234. /package/dist/{GovernanceSettingsProposalFlowDetail-OPMU6RLE.js.map → GovernanceSettingsProposalFlowDetail-3ID5U4PF.js.map} +0 -0
  235. /package/dist/{GovernanceStakingStakeFlowDetail-L5W4XAUK.js.map → GovernanceStakingStakeFlowDetail-CNJWW4XN.js.map} +0 -0
  236. /package/dist/{GovernanceStakingStakeToGroupFlowDetail-VS7CQMAL.js.map → GovernanceStakingStakeToGroupFlowDetail-ZRUICQ3D.js.map} +0 -0
  237. /package/dist/{GovernanceSubmissionConfigProposalFlowDetail-DLIBHSIM.js.map → GovernanceSubmissionConfigProposalFlowDetail-UNTKYICX.js.map} +0 -0
  238. /package/dist/{GovernanceTransactionMintFlowDetail-B7UDPTDK.js.map → GovernanceTransactionMintFlowDetail-7WMMK4MZ.js.map} +0 -0
  239. /package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-BJYPNB4Q.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-SRMMDAJ7.js.map} +0 -0
  240. /package/dist/{GovernanceTransactionSendFundsConfig-JIY26APJ.js.map → GovernanceTransactionSendFundsConfig-BHZTNS4Z.js.map} +0 -0
  241. /package/dist/{GovernanceTransactionSendFundsFlowDetail-5JIF4Q36.js.map → GovernanceTransactionSendFundsFlowDetail-PGM2EDOD.js.map} +0 -0
  242. /package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-3LJEV3ZW.js.map → GovernanceTransactionSendGroupTokenFlowDetail-6KDJ63HM.js.map} +0 -0
  243. /package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-PJTTOZAS.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-VM3AFFAD.js.map} +0 -0
  244. /package/dist/{GovernanceValidatorActionsFlowDetail-Q6MSOIVM.js.map → GovernanceValidatorActionsFlowDetail-TZ3VQ3EA.js.map} +0 -0
  245. /package/dist/{HarvestConfig-WJSUGPDX.js.map → HarvestConfig-DM3V52S7.js.map} +0 -0
  246. /package/dist/{HarvestFlowDetail-3KYBEQYJ.js.map → HarvestFlowDetail-DSLEE22S.js.map} +0 -0
  247. /package/dist/{HttpRequestConfig-WVZ5UVUH.js.map → HttpRequestConfig-QJI62HRG.js.map} +0 -0
  248. /package/dist/{HttpRequestFlowDetail-I4IKWJLH.js.map → HttpRequestFlowDetail-7KL6E2AJ.js.map} +0 -0
  249. /package/dist/{IdentityCreateFlowDetail-WPIM4WYR.js.map → IdentityCreateFlowDetail-Y6IN6TXN.js.map} +0 -0
  250. /package/dist/{IidCreateFlowDetail-K3GH6MUW.js.map → IidCreateFlowDetail-GZYUXPBZ.js.map} +0 -0
  251. /package/dist/{KycVerifyConfig-GPVDALNG.js.map → KycVerifyConfig-VCZCPMHG.js.map} +0 -0
  252. /package/dist/{KycVerifyFlowDetail-3AAZDQNI.js.map → KycVerifyFlowDetail-GHTMTDF7.js.map} +0 -0
  253. /package/dist/{ListDomainFlowsFlowDetail-5GW7L6M7.js.map → ListDomainFlowsFlowDetail-IKKCGK6H.js.map} +0 -0
  254. /package/dist/{LoadBatchesFlowDetail-5FMXEL7G.js.map → LoadBatchesFlowDetail-CQUCDXS7.js.map} +0 -0
  255. /package/dist/{MatrixDmConfig-Q5DI6JTL.js.map → MatrixDmConfig-SAWMGCJY.js.map} +0 -0
  256. /package/dist/{MatrixRegisterFlowDetail-BG2ABZUJ.js.map → MatrixRegisterFlowDetail-JFS6LNVD.js.map} +0 -0
  257. /package/dist/{MemberMultiSelectFlowDetail-CNJHGZMN.js.map → MemberMultiSelectFlowDetail-42V4NEDY.js.map} +0 -0
  258. /package/dist/{OracleConfig-NYT2WEMS.js.map → OracleConfig-OSLSWVRA.js.map} +0 -0
  259. /package/dist/{OracleConfigureOracleFlowDetail-23MYM57H.js.map → OracleConfigureOracleFlowDetail-NEPBW73E.js.map} +0 -0
  260. /package/dist/{OracleContractFlowDetail-XWRVGANN.js.map → OracleContractFlowDetail-VGX62V2T.js.map} +0 -0
  261. /package/dist/{OracleDeployFlowDetail-YFLWLL3Y.js.map → OracleDeployFlowDetail-OAS3ITPT.js.map} +0 -0
  262. /package/dist/{OracleDeploySetupFlowDetail-66JGJYBZ.js.map → OracleDeploySetupFlowDetail-5VKCOPB4.js.map} +0 -0
  263. /package/dist/{OracleDeployStartFlowDetail-GDYEBYS7.js.map → OracleDeployStartFlowDetail-WFXV4SWB.js.map} +0 -0
  264. /package/dist/{OracleFlowDetail-ID2YN64X.js.map → OracleFlowDetail-UU3XJ7QT.js.map} +0 -0
  265. /package/dist/{OraclePromptFlowDetail-KEFFIEAV.js.map → OraclePromptFlowDetail-OVWSYTGH.js.map} +0 -0
  266. /package/dist/{OracleStoreConfigFlowDetail-JBMYMNTR.js.map → OracleStoreConfigFlowDetail-CY4SKQMO.js.map} +0 -0
  267. /package/dist/{OracleStoreSecretsAndConfigFlowDetail-USJJMY2N.js.map → OracleStoreSecretsAndConfigFlowDetail-OZOG2CEP.js.map} +0 -0
  268. /package/dist/{OracleStoreSecretsFlowDetail-HBNITQVJ.js.map → OracleStoreSecretsFlowDetail-LD6EJUVW.js.map} +0 -0
  269. /package/dist/{ProposalCreateConfig-OYRNWSQM.js.map → ProposalCreateConfig-B3H3Y34N.js.map} +0 -0
  270. /package/dist/{ProposalCreateFlowDetail-FAMXF3FJ.js.map → ProposalCreateFlowDetail-GRTQRWUT.js.map} +0 -0
  271. /package/dist/{ProposalVoteConfig-WBACHAPS.js.map → ProposalVoteConfig-4HNKH3MK.js.map} +0 -0
  272. /package/dist/{ProposalVoteFlowDetail-2G52BCX3.js.map → ProposalVoteFlowDetail-FFJN3O6P.js.map} +0 -0
  273. /package/dist/{ProtocolSelectFlowDetail-TRS5XIWB.js.map → ProtocolSelectFlowDetail-CDBH7BYF.js.map} +0 -0
  274. /package/dist/{RetireConfig-NFSO6JFD.js.map → RetireConfig-3FCYGEUG.js.map} +0 -0
  275. /package/dist/{RetireFlowDetail-WTRYU6ZH.js.map → RetireFlowDetail-5TR3WYKF.js.map} +0 -0
  276. /package/dist/{SandboxProvisionFlowDetail-MN3JIBRQ.js.map → SandboxProvisionFlowDetail-NVHFUDRV.js.map} +0 -0
  277. /package/dist/{WalletFundConfig-S4WN3VCS.js.map → WalletFundConfig-R4FAESYH.js.map} +0 -0
  278. /package/dist/{WalletFundFlowDetail-AJDLNRBB.js.map → WalletFundFlowDetail-52LJDXBZ.js.map} +0 -0
  279. /package/dist/{WalletGenerateAndFundFlowDetail-IOC76LP3.js.map → WalletGenerateAndFundFlowDetail-PTQLEDUE.js.map} +0 -0
  280. /package/dist/{WalletGenerateFlowDetail-7MT64UD4.js.map → WalletGenerateFlowDetail-GAAEO5OB.js.map} +0 -0
  281. /package/dist/{XeroContactCreateConfig-HJ6CNR5D.js.map → XeroContactCreateConfig-3K7GR4PQ.js.map} +0 -0
  282. /package/dist/{XeroContactCreateFlowDetail-5KL4KF4O.js.map → XeroContactCreateFlowDetail-CBNHE23D.js.map} +0 -0
  283. /package/dist/{XeroInvoiceCreateConfig-ZVYODGTW.js.map → XeroInvoiceCreateConfig-BPOC6DP4.js.map} +0 -0
  284. /package/dist/{XeroInvoiceCreateFlowDetail-OEOXIRAD.js.map → XeroInvoiceCreateFlowDetail-5ZJISTQP.js.map} +0 -0
  285. /package/dist/{XeroInvoiceListConfig-6O43OJ3S.js.map → XeroInvoiceListConfig-5GHQS4X2.js.map} +0 -0
  286. /package/dist/{XeroInvoiceListFlowDetail-OVVFJBH4.js.map → XeroInvoiceListFlowDetail-A45D47DJ.js.map} +0 -0
  287. /package/dist/{XeroPaymentCreateConfig-Y74OGQYZ.js.map → XeroPaymentCreateConfig-N34OOVF3.js.map} +0 -0
  288. /package/dist/{XeroPaymentCreateFlowDetail-DUXQCMBU.js.map → XeroPaymentCreateFlowDetail-GQU62UKC.js.map} +0 -0
  289. /package/dist/{chunk-55DFG6EH.js.map → chunk-43D3NWOA.js.map} +0 -0
  290. /package/dist/{chunk-SVCJW7A5.js.map → chunk-7TT4RM2M.js.map} +0 -0
  291. /package/dist/{chunk-NF5NLKGM.js.map → chunk-AHPUF6IS.js.map} +0 -0
  292. /package/dist/{chunk-KB3KTVO4.js.map → chunk-AOLCNPGV.js.map} +0 -0
  293. /package/dist/{chunk-3KLHYTQ5.js.map → chunk-AWAQL6ZO.js.map} +0 -0
  294. /package/dist/{chunk-DZGUAQIL.js.map → chunk-BE4KNIIO.js.map} +0 -0
  295. /package/dist/{chunk-GQXLZR7X.js.map → chunk-CYSIKH2M.js.map} +0 -0
  296. /package/dist/{chunk-HGOTOYFJ.js.map → chunk-DV3SAEKZ.js.map} +0 -0
  297. /package/dist/{chunk-WO4WYAC4.js.map → chunk-EVHWLO2C.js.map} +0 -0
  298. /package/dist/{chunk-U73FEKW2.js.map → chunk-FORJT34Q.js.map} +0 -0
  299. /package/dist/{chunk-RBMJMFLQ.js.map → chunk-GRVWI465.js.map} +0 -0
  300. /package/dist/{chunk-T2WRUATR.js.map → chunk-GUGO63DD.js.map} +0 -0
  301. /package/dist/{chunk-I3PB2HDL.js.map → chunk-HNZQKYXU.js.map} +0 -0
  302. /package/dist/{chunk-ZEWC6VWO.js.map → chunk-IZRTWKW3.js.map} +0 -0
  303. /package/dist/{chunk-CTEIZZG3.js.map → chunk-JCZHNO6K.js.map} +0 -0
  304. /package/dist/{chunk-JWY3T4I6.js.map → chunk-KKFBQ64O.js.map} +0 -0
  305. /package/dist/{chunk-IIJZCRXG.js.map → chunk-LD5FYXB5.js.map} +0 -0
  306. /package/dist/{chunk-HQDUHIGT.js.map → chunk-MH2PPQSO.js.map} +0 -0
  307. /package/dist/{chunk-SPXJUAWN.js.map → chunk-NPFETBLF.js.map} +0 -0
  308. /package/dist/{chunk-ZHESO7VB.js.map → chunk-NUQ4QOVJ.js.map} +0 -0
  309. /package/dist/{chunk-YTFI32EX.js.map → chunk-OG56C7DD.js.map} +0 -0
  310. /package/dist/{chunk-CSSCRBZ4.js.map → chunk-OV4KVTZI.js.map} +0 -0
  311. /package/dist/{chunk-FLKIT7NW.js.map → chunk-T57N7ZN5.js.map} +0 -0
  312. /package/dist/{chunk-5ODWEBI4.js.map → chunk-WAM3FJJL.js.map} +0 -0
  313. /package/dist/{chunk-QNBYEEUC.js.map → chunk-WM3A4CI6.js.map} +0 -0
  314. /package/dist/{chunk-3JJNW2W5.js.map → chunk-WU6CRA5K.js.map} +0 -0
  315. /package/dist/{chunk-ITBVRJHV.js.map → chunk-XLUP6K4Q.js.map} +0 -0
  316. /package/dist/{chunk-5RMWJERQ.js.map → chunk-Z2CUKACX.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/mantine/components/DebugButton.tsx","../../src/mantine/flow/FlowNodePanel.tsx","../../src/mantine/flow/FlowNodeConfigPanel.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { IconBraces, IconShieldPlus, IconTools } from '@tabler/icons-react';\nimport type { IxoEditorType } from '../../core/types';\nimport type { BlocknoteHandlers } from '../context/BlocknoteContext';\nimport { DevUcanGrantButton } from './DevUcanGrantButton';\nimport { icon } from './ReusablePanel';\nimport { DM_NOTIFICATIONS_MAP_KEY } from '../../core/lib/flowEngine/dmNotificationState';\nimport { RUNS_MAP_KEY, RUNS_TERMINAL_MAP_KEY } from '../../core/lib/flowEngine/runs';\n\nconst ACCENT = '#00ff88';\nconst SURFACE = '#1a1a2e';\n\n/**\n * Dev-tools launcher: a single round button pinned to the bottom-right (the Next.js\n * dev indicator owns the bottom-left) that expands into the individual tools, so the\n * dev overlay costs one small dot instead of a row of bars across the flow canvas.\n */\nexport function DebugButton({ editor, handlers }: { editor: IxoEditorType; handlers?: BlocknoteHandlers }) {\n const [menuOpen, setMenuOpen] = useState(false);\n const [ucanOpen, setUcanOpen] = useState(false);\n const [hovered, setHovered] = useState<string | null>(null);\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!menuOpen) return;\n\n const onPointerDown = (event: MouseEvent) => {\n if (!containerRef.current?.contains(event.target as Node)) setMenuOpen(false);\n };\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') setMenuOpen(false);\n };\n\n document.addEventListener('mousedown', onPointerDown);\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('mousedown', onPointerDown);\n document.removeEventListener('keydown', onKeyDown);\n };\n }, [menuOpen]);\n\n const yMapToObject = (map: any) => {\n if (!map) return null;\n const obj: Record<string, any> = {};\n map.forEach((value: any, key: string) => {\n // Recursively unwrap nested Y.Maps so their contents are visible in JSON\n if (value && typeof value.forEach === 'function' && typeof value.get === 'function' && !Array.isArray(value)) {\n obj[key] = yMapToObject(value);\n } else if (value && typeof value.toArray === 'function') {\n obj[key] = value.toArray();\n } else {\n obj[key] = value;\n }\n });\n return Object.keys(obj).length === 0 ? '(empty)' : obj;\n };\n\n const parseJsonProp = (raw: unknown) => {\n if (typeof raw !== 'string' || !raw) return raw;\n try {\n return JSON.parse(raw);\n } catch {\n return raw;\n }\n };\n\n const handleClick = () => {\n (window as any).__editor = editor;\n const yDoc = (editor as any)._yDoc || (editor as any)._yRuntime?.doc;\n const readShared = (key: string) => yDoc?.share?.get?.(key);\n console.log('Editor exposed as window.__editor. _yDoc?', !!yDoc);\n const dump: Record<string, any> = {};\n\n // 1. BlockNote blocks — with parsed trigger / inputs / assignment so we can\n // see exactly what the listener is subscribing to.\n dump.blocks = editor.document.map((block: any) => ({\n id: block.id,\n type: block.type,\n actionType: block?.props?.actionType,\n triggerRaw: block?.props?.trigger,\n trigger: parseJsonProp(block?.props?.trigger),\n inputs: parseJsonProp(block?.props?.inputs),\n assignment: parseJsonProp(block?.props?.assignment),\n triggerMode: block?.props?.triggerMode,\n props: block.props,\n content: block.content,\n children: block.children,\n }));\n\n // 2. Runtime state\n // a) runs: the run-scoped action state (`runId → { meta, actions }`).\n // `yMapToObject` unwraps the nested containers.\n // b) runsTerminal: write-once closed/cancelled latch per run (Phase B).\n // c) runtime: the legacy flat map. Storage v1 mirrors run-scoped writes;\n // storage v2 deliberately leaves this map behind.\n dump.runs = yMapToObject(editor._yRuns ?? readShared(RUNS_MAP_KEY));\n dump.runsTerminal = yMapToObject(editor._yRunsTerminal ?? readShared(RUNS_TERMINAL_MAP_KEY));\n dump.runtime = yMapToObject(editor._yRuntime);\n dump.xeroConnection = yMapToObject((editor as any)._yXeroConnection);\n dump.xeroWorkItems = yMapToObject((editor as any)._yXeroWorkItems);\n\n // 3. Delegations\n dump.delegations = yMapToObject(editor._yDelegations);\n\n // 4. Invocations\n dump.invocations = yMapToObject(editor._yInvocations);\n\n // 5. Flow metadata\n dump.flowMetadata = editor.getFlowMetadata?.() || null;\n\n // 6. Flow array\n dump.flowArray = editor.getFlow?.() || null;\n\n // 7. Entities Y.Map (Personal Agent results)\n dump.entities = yMapToObject(readShared('entities'));\n\n // 8. Trigger/event state — the full chain for debugging block.event.all\n // a) auditTrail: where run records (source emissions) are written\n // b) pendingInvocations: what the Invoke button reads from\n // c) barrierState: partial barrier completion for block.event.all listeners\n // d) dmNotificationState: DM notification dedup (block + pending invocation)\n dump.auditTrail = yMapToObject(readShared('auditTrail'));\n dump.pendingInvocations = yMapToObject(readShared('pendingInvocations'));\n dump.barrierState = yMapToObject(readShared('barrierState'));\n dump.dmNotificationState = yMapToObject(readShared(DM_NOTIFICATIONS_MAP_KEY));\n\n const json = JSON.stringify(dump, null, 2);\n console.log('Editor Debug Dump:\\n' + json);\n };\n\n const tools = [\n {\n id: 'ucans',\n label: 'Grant UCANs',\n title: 'Dev: grant Flow Agent and block action UCANs to room members',\n leftSection: icon(IconShieldPlus, 14, ACCENT),\n onClick: () => setUcanOpen(true),\n },\n {\n id: 'ydoc',\n label: 'Debug Y.Doc',\n title: 'Debug: Log all blocks + runtime state to console',\n leftSection: icon(IconBraces, 14, ACCENT),\n onClick: handleClick,\n },\n ];\n\n return (\n <>\n <DevUcanGrantButton editor={editor} handlers={handlers} opened={ucanOpen} onOpenedChange={setUcanOpen} />\n\n <div\n ref={containerRef}\n style={{\n position: 'fixed',\n bottom: 16,\n right: 16,\n zIndex: 9999,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-end',\n gap: 8,\n fontFamily: 'monospace',\n }}\n >\n {menuOpen && (\n <div\n role=\"menu\"\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n padding: 4,\n minWidth: 168,\n background: SURFACE,\n border: `1px solid ${ACCENT}`,\n borderRadius: 8,\n boxShadow: '0 8px 24px rgba(0, 0, 0, 0.45)',\n }}\n >\n {tools.map((tool) => (\n <button\n key={tool.id}\n role=\"menuitem\"\n title={tool.title}\n onClick={() => {\n tool.onClick();\n setMenuOpen(false);\n }}\n onMouseEnter={() => setHovered(tool.id)}\n onMouseLeave={() => setHovered((current) => (current === tool.id ? null : current))}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n width: '100%',\n padding: '7px 10px',\n background: hovered === tool.id ? 'rgba(0, 255, 136, 0.12)' : 'transparent',\n color: ACCENT,\n border: 'none',\n borderRadius: 5,\n fontSize: 12,\n fontFamily: 'inherit',\n textAlign: 'left',\n cursor: 'pointer',\n }}\n >\n {tool.leftSection}\n {tool.label}\n </button>\n ))}\n </div>\n )}\n\n <button\n onClick={() => setMenuOpen((current) => !current)}\n onMouseEnter={() => setHovered('launcher')}\n onMouseLeave={() => setHovered((current) => (current === 'launcher' ? null : current))}\n aria-label=\"Dev tools\"\n aria-haspopup=\"menu\"\n aria-expanded={menuOpen}\n title=\"Dev tools\"\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 36,\n height: 36,\n padding: 0,\n background: SURFACE,\n color: ACCENT,\n border: `1px solid ${ACCENT}`,\n borderRadius: '50%',\n cursor: 'pointer',\n opacity: menuOpen || hovered === 'launcher' ? 1 : 0.55,\n transition: 'opacity 120ms ease',\n }}\n >\n {icon(IconTools, 18, ACCENT)}\n </button>\n </div>\n </>\n );\n}\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\nimport { RunSessionProvider } from './runSessionContext';\nimport type { RunEventAppender } from '@/core/lib/flowEngine/runLifecycle';\nimport type { DesignPodRuntimeAuthorityV1 } from '@/core/lib/designPod/contracts';\n\n// Panel-based blocks — these export a dedicated \"detail\" panel component that is\n// normally registered via usePanel. We render that panel content directly.\nimport { ActionFlowPanel } from '@/mantine/blocks/action/flow/FlowView';\nimport { FormPanel } from '@/mantine/blocks/form/flow/FormPanel';\nimport { FlowConfig as ProposalFlowConfig } from '@/mantine/blocks/proposal/flow/FlowConfig';\nimport { DomainCreatorSurveyPanel } from '@/mantine/blocks/domainCreator/flow/DomainCreatorSurveyPanel';\nimport { SignPanel } from '@/mantine/blocks/domainCreatorSign/flow/SignPanel';\nimport { GovernanceGroupPanel } from '@/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel';\n\n// Inline-detail blocks — the FlowView itself IS the \"do-the-step\" detail UI\n// (no separate panel; they don't use usePanel for their primary content).\nimport { ClaimFlowView } from '@/mantine/blocks/claim/flow/FlowView';\nimport { EvaluatorFlowView } from '@/mantine/blocks/evaluator/flow/FlowView';\nimport { NotifyFlowView } from '@/mantine/blocks/notify/flow/FlowView';\nimport { CheckboxFlowView } from '@/mantine/blocks/checkbox/flow/FlowView';\nimport { SecretsFlowView } from '@/mantine/blocks/secrets/flow/SecretsFlowView';\nimport { SkillsFlowView } from '@/mantine/blocks/skills/flow/SkillsFlowView';\n\n// email / apiRequest keep their detail UI inside a private (non-exported)\n// PanelContent function, so we dispatch to the full FlowView card instead.\nimport { EmailFlowView } from '@/mantine/blocks/email/flow/FlowView';\nimport { ApiRequestFlowView } from '@/mantine/blocks/apiRequest/flow/FlowView';\n\nexport interface FlowNodePanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n isDisabled?: {\n isDisabled: 'disable';\n message?: string;\n };\n /** Explicit session whose runtime state this panel reads and writes. */\n sessionRunId?: string;\n runEventLog?: RunEventAppender;\n designPodAuthority?: DesignPodRuntimeAuthorityV1;\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's \"do-the-step\" / detail UI. Lets a host app render the panel for any\n * selected step in its own right column without relying on the per-block\n * usePanel/registeredPanels indirection.\n *\n * NOTE: every rendered detail component reads from BlocknoteContext\n * (useBlocknoteHandlers / useBlocknoteContext throw if the provider is\n * missing). Keep <FlowNodePanel> wrapped in the app's BlocknoteProvider /\n * EditorBlocknoteProvider.\n */\nexport function FlowNodePanel(props: FlowNodePanelProps) {\n // Embedded: the host app supplies the panel header, so BaseRightPanelLayout\n // suppresses its own (no duplicate title / close).\n return (\n <RunSessionProvider sessionRunId={props.sessionRunId} runEventLog={props.runEventLog || props.editor?._runEventLog} designPodAuthority={props.designPodAuthority}>\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodePanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n </RunSessionProvider>\n );\n}\n\nfunction FlowNodePanelContent({ editor, block, isDisabled }: FlowNodePanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionFlowPanel editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'form':\n return <FormPanel editor={editor} block={block} />;\n\n case 'proposal':\n return <ProposalFlowConfig editor={editor} block={block} />;\n\n case 'domainCreator':\n return <DomainCreatorSurveyPanel editor={editor} block={block} />;\n\n case 'domainCreatorSign':\n return <SignPanel editor={editor} block={block} />;\n\n case 'governanceGroup':\n return <GovernanceGroupPanel editor={editor} block={block} />;\n\n case 'claim':\n return <ClaimFlowView editor={editor} block={block} />;\n\n case 'evaluator':\n return <EvaluatorFlowView editor={editor} block={block} />;\n\n case 'notify':\n return <NotifyFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'checkbox':\n return <CheckboxFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'secrets':\n return <SecretsFlowView editor={editor} block={block} />;\n\n case 'skills':\n return <SkillsFlowView editor={editor} block={block} />;\n\n // email / apiRequest: detail UI is a private PanelContent fn; render the\n // full FlowView card (its own onClick opens the registered panel).\n case 'email':\n return <EmailFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'apiRequest':\n return <ApiRequestFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n // enumChecklist has no flow-mode panel (renders EnumChecklistBlock in all\n // modes). Fallback to null / \"open in document\".\n case 'enumChecklist':\n default:\n return null;\n }\n}\n\nexport default FlowNodePanel;\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\n\n// Per-block TEMPLATE config panels — the authoring counterpart to FlowNodePanel.\n// Each exposes the block's rich configuration (General + the shared\n// Authorization / Assignment / Commitment / TTL / Evaluation tabs) on the same\n// BaseRightPanelLayout the runtime panels use.\nimport { TemplateConfig as ActionConfig } from '@/mantine/blocks/action/template/TemplateConfig';\nimport { TemplateConfig as ClaimConfig } from '@/mantine/blocks/claim/template/TemplateConfig';\nimport { TemplateConfig as FormConfig } from '@/mantine/blocks/form/template/TemplateConfig';\nimport { TemplateConfig as CheckboxConfig } from '@/mantine/blocks/checkbox/template/TemplateConfig';\nimport { TemplateConfig as EvaluatorConfig } from '@/mantine/blocks/evaluator/template/TemplateConfig';\nimport { TemplateConfig as NotifyConfig } from '@/mantine/blocks/notify/template/TemplateConfig';\nimport { TemplateConfig as EmailConfig } from '@/mantine/blocks/email/template/TemplateConfig';\nimport { TemplateConfig as ApiRequestConfig } from '@/mantine/blocks/apiRequest/template/TemplateConfig';\nimport { TemplateConfig as ProposalConfig } from '@/mantine/blocks/proposal/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorConfig } from '@/mantine/blocks/domainCreator/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorSignConfig } from '@/mantine/blocks/domainCreatorSign/template/TemplateConfig';\nimport { TemplateConfig as GovernanceGroupConfig } from '@/mantine/blocks/governanceGroup/template/TemplateConfig';\n\n// secrets / skills have a template VIEW rather than a tabbed config.\nimport { SecretsTemplateView } from '@/mantine/blocks/secrets/template/SecretsTemplateView';\nimport { SkillsTemplateView } from '@/mantine/blocks/skills/template/SkillsTemplateView';\n\nexport interface FlowNodeConfigPanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's TEMPLATE configuration panel — the authoring counterpart to\n * `FlowNodePanel` (which renders the runtime \"do-the-step\" UI). Lets a host app\n * render the rich config (General + Authorization/Assignment/Commitment/TTL/…)\n * for any selected step in its own right column.\n *\n * Since `addFlowNode` and the registry route every capability through the\n * generic `action` block, `action → ActionConfig` is the primary case; the\n * dedicated block types are covered for documents that use them directly.\n *\n * Wrapped in `FlowPanelEmbeddedContext` so each config's `BaseRightPanelLayout`\n * suppresses its own header/close (the host supplies those).\n */\nexport function FlowNodeConfigPanel(props: FlowNodeConfigPanelProps) {\n return (\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodeConfigPanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n );\n}\n\nfunction FlowNodeConfigPanelContent({ editor, block }: FlowNodeConfigPanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionConfig editor={editor} block={block} />;\n case 'claim':\n return <ClaimConfig editor={editor} block={block} />;\n case 'form':\n return <FormConfig editor={editor} block={block} />;\n case 'checkbox':\n return <CheckboxConfig editor={editor} block={block} />;\n case 'evaluator':\n return <EvaluatorConfig editor={editor} block={block} />;\n case 'notify':\n return <NotifyConfig editor={editor} block={block} />;\n case 'email':\n return <EmailConfig editor={editor} block={block} />;\n case 'apiRequest':\n return <ApiRequestConfig editor={editor} block={block} />;\n case 'proposal':\n return <ProposalConfig editor={editor} block={block} />;\n case 'domainCreator':\n return <DomainCreatorConfig editor={editor} block={block} />;\n case 'domainCreatorSign':\n return <DomainCreatorSignConfig editor={editor} block={block} />;\n case 'governanceGroup':\n return <GovernanceGroupConfig editor={editor} block={block} />;\n case 'secrets':\n return <SecretsTemplateView editor={editor} block={block} />;\n case 'skills':\n return <SkillsTemplateView editor={editor} block={block} />;\n default:\n return null;\n }\n}\n\nexport default FlowNodeConfigPanel;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,iBAAA,EAAoB,QAAgB,OAAc;AAAA,IAC5D,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,kBAAA,EAAwB,QAAgB,OAAc;AAAA,IAChE,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,kBAAA,EAAsB,QAAgB,OAAc;AAAA,IAC9D,KAAK;AACH,aAAO,gBAAAD,OAAA,cAAC,uBAAoB,QAAgB,OAAc;AAAA,IAC5D,KAAK;AACH,aAAO,gBAAAA,OAAA,cAAC,sBAAmB,QAAgB,OAAc;AAAA,IAC3D;AACE,aAAO;AAAA,EACX;AACF;","names":["React","React","React","React","TemplateConfig"]}
1
+ {"version":3,"sources":["../../src/mantine/components/DebugButton.tsx","../../src/mantine/flow/FlowNodePanel.tsx","../../src/mantine/flow/FlowNodeConfigPanel.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { IconBraces, IconShieldPlus, IconTools } from '@tabler/icons-react';\nimport type { IxoEditorType } from '../../core/types';\nimport type { BlocknoteHandlers } from '../context/BlocknoteContext';\nimport { DevUcanGrantButton } from './DevUcanGrantButton';\nimport { icon } from './ReusablePanel';\nimport { DM_NOTIFICATIONS_MAP_KEY } from '../../core/lib/flowEngine/dmNotificationState';\nimport { RUNS_MAP_KEY, RUNS_TERMINAL_MAP_KEY } from '../../core/lib/flowEngine/runs';\n\nconst ACCENT = '#00ff88';\nconst SURFACE = '#1a1a2e';\n\n/**\n * Dev-tools launcher: a single round button pinned to the bottom-right (the Next.js\n * dev indicator owns the bottom-left) that expands into the individual tools, so the\n * dev overlay costs one small dot instead of a row of bars across the flow canvas.\n */\nexport function DebugButton({ editor, handlers }: { editor: IxoEditorType; handlers?: BlocknoteHandlers }) {\n const [menuOpen, setMenuOpen] = useState(false);\n const [ucanOpen, setUcanOpen] = useState(false);\n const [hovered, setHovered] = useState<string | null>(null);\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!menuOpen) return;\n\n const onPointerDown = (event: MouseEvent) => {\n if (!containerRef.current?.contains(event.target as Node)) setMenuOpen(false);\n };\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') setMenuOpen(false);\n };\n\n document.addEventListener('mousedown', onPointerDown);\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('mousedown', onPointerDown);\n document.removeEventListener('keydown', onKeyDown);\n };\n }, [menuOpen]);\n\n const yMapToObject = (map: any) => {\n if (!map) return null;\n const obj: Record<string, any> = {};\n map.forEach((value: any, key: string) => {\n // Recursively unwrap nested Y.Maps so their contents are visible in JSON\n if (value && typeof value.forEach === 'function' && typeof value.get === 'function' && !Array.isArray(value)) {\n obj[key] = yMapToObject(value);\n } else if (value && typeof value.toArray === 'function') {\n obj[key] = value.toArray();\n } else {\n obj[key] = value;\n }\n });\n return Object.keys(obj).length === 0 ? '(empty)' : obj;\n };\n\n const parseJsonProp = (raw: unknown) => {\n if (typeof raw !== 'string' || !raw) return raw;\n try {\n return JSON.parse(raw);\n } catch {\n return raw;\n }\n };\n\n const handleClick = () => {\n (window as any).__editor = editor;\n const yDoc = (editor as any)._yDoc || (editor as any)._yRuntime?.doc;\n const readShared = (key: string) => yDoc?.share?.get?.(key);\n console.log('Editor exposed as window.__editor. _yDoc?', !!yDoc);\n const dump: Record<string, any> = {};\n\n // 1. BlockNote blocks — with parsed trigger / inputs / assignment so we can\n // see exactly what the listener is subscribing to.\n dump.blocks = editor.document.map((block: any) => ({\n id: block.id,\n type: block.type,\n actionType: block?.props?.actionType,\n triggerRaw: block?.props?.trigger,\n trigger: parseJsonProp(block?.props?.trigger),\n inputs: parseJsonProp(block?.props?.inputs),\n assignment: parseJsonProp(block?.props?.assignment),\n triggerMode: block?.props?.triggerMode,\n props: block.props,\n content: block.content,\n children: block.children,\n }));\n\n // 2. Runtime state\n // a) runs: the run-scoped action state (`runId → { meta, actions }`).\n // `yMapToObject` unwraps the nested containers.\n // b) runsTerminal: write-once closed/cancelled latch per run (Phase B).\n // c) runtime: the legacy flat map. Storage v1 mirrors run-scoped writes;\n // storage v2 deliberately leaves this map behind.\n dump.runs = yMapToObject(editor._yRuns ?? readShared(RUNS_MAP_KEY));\n dump.runsTerminal = yMapToObject(editor._yRunsTerminal ?? readShared(RUNS_TERMINAL_MAP_KEY));\n dump.runtime = yMapToObject(editor._yRuntime);\n dump.xeroConnection = yMapToObject((editor as any)._yXeroConnection);\n dump.xeroWorkItems = yMapToObject((editor as any)._yXeroWorkItems);\n\n // 3. Delegations\n dump.delegations = yMapToObject(editor._yDelegations);\n\n // 4. Invocations\n dump.invocations = yMapToObject(editor._yInvocations);\n\n // 5. Flow metadata\n dump.flowMetadata = editor.getFlowMetadata?.() || null;\n\n // 6. Flow array\n dump.flowArray = editor.getFlow?.() || null;\n\n // 7. Entities Y.Map (Personal Agent results)\n dump.entities = yMapToObject(readShared('entities'));\n\n // 8. Trigger/event state — the full chain for debugging block.event.all\n // a) auditTrail: where run records (source emissions) are written\n // b) pendingInvocations: what the Invoke button reads from\n // c) barrierState: partial barrier completion for block.event.all listeners\n // d) dmNotificationState: DM notification dedup (block + pending invocation)\n dump.auditTrail = yMapToObject(readShared('auditTrail'));\n dump.pendingInvocations = yMapToObject(readShared('pendingInvocations'));\n dump.barrierState = yMapToObject(readShared('barrierState'));\n dump.dmNotificationState = yMapToObject(readShared(DM_NOTIFICATIONS_MAP_KEY));\n\n const json = JSON.stringify(dump, null, 2);\n console.log('Editor Debug Dump:\\n' + json);\n };\n\n const tools = [\n {\n id: 'ucans',\n label: 'Grant UCANs',\n title: 'Dev: grant Flow Agent and block action UCANs to room members',\n leftSection: icon(IconShieldPlus, 14, ACCENT),\n onClick: () => setUcanOpen(true),\n },\n {\n id: 'ydoc',\n label: 'Debug Y.Doc',\n title: 'Debug: Log all blocks + runtime state to console',\n leftSection: icon(IconBraces, 14, ACCENT),\n onClick: handleClick,\n },\n ];\n\n return (\n <>\n <DevUcanGrantButton editor={editor} handlers={handlers} opened={ucanOpen} onOpenedChange={setUcanOpen} />\n\n <div\n ref={containerRef}\n style={{\n position: 'fixed',\n bottom: 16,\n right: 16,\n zIndex: 9999,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-end',\n gap: 8,\n fontFamily: 'monospace',\n }}\n >\n {menuOpen && (\n <div\n role=\"menu\"\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n padding: 4,\n minWidth: 168,\n background: SURFACE,\n border: `1px solid ${ACCENT}`,\n borderRadius: 8,\n boxShadow: '0 8px 24px rgba(0, 0, 0, 0.45)',\n }}\n >\n {tools.map((tool) => (\n <button\n key={tool.id}\n role=\"menuitem\"\n title={tool.title}\n onClick={() => {\n tool.onClick();\n setMenuOpen(false);\n }}\n onMouseEnter={() => setHovered(tool.id)}\n onMouseLeave={() => setHovered((current) => (current === tool.id ? null : current))}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n width: '100%',\n padding: '7px 10px',\n background: hovered === tool.id ? 'rgba(0, 255, 136, 0.12)' : 'transparent',\n color: ACCENT,\n border: 'none',\n borderRadius: 5,\n fontSize: 12,\n fontFamily: 'inherit',\n textAlign: 'left',\n cursor: 'pointer',\n }}\n >\n {tool.leftSection}\n {tool.label}\n </button>\n ))}\n </div>\n )}\n\n <button\n onClick={() => setMenuOpen((current) => !current)}\n onMouseEnter={() => setHovered('launcher')}\n onMouseLeave={() => setHovered((current) => (current === 'launcher' ? null : current))}\n aria-label=\"Dev tools\"\n aria-haspopup=\"menu\"\n aria-expanded={menuOpen}\n title=\"Dev tools\"\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 36,\n height: 36,\n padding: 0,\n background: SURFACE,\n color: ACCENT,\n border: `1px solid ${ACCENT}`,\n borderRadius: '50%',\n cursor: 'pointer',\n opacity: menuOpen || hovered === 'launcher' ? 1 : 0.55,\n transition: 'opacity 120ms ease',\n }}\n >\n {icon(IconTools, 18, ACCENT)}\n </button>\n </div>\n </>\n );\n}\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\nimport { RunSessionProvider } from './runSessionContext';\nimport type { RunEventAppender } from '@/core/lib/flowEngine/runLifecycle';\nimport type { DesignPodRuntimeAuthorityV1 } from '@/core/lib/designPod/contracts';\n\n// Panel-based blocks — these export a dedicated \"detail\" panel component that is\n// normally registered via usePanel. We render that panel content directly.\nimport { ActionFlowPanel } from '@/mantine/blocks/action/flow/FlowView';\nimport { FormPanel } from '@/mantine/blocks/form/flow/FormPanel';\nimport { FlowConfig as ProposalFlowConfig } from '@/mantine/blocks/proposal/flow/FlowConfig';\nimport { DomainCreatorSurveyPanel } from '@/mantine/blocks/domainCreator/flow/DomainCreatorSurveyPanel';\nimport { SignPanel } from '@/mantine/blocks/domainCreatorSign/flow/SignPanel';\nimport { GovernanceGroupPanel } from '@/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel';\n\n// Inline-detail blocks — the FlowView itself IS the \"do-the-step\" detail UI\n// (no separate panel; they don't use usePanel for their primary content).\nimport { ClaimFlowView } from '@/mantine/blocks/claim/flow/FlowView';\nimport { EvaluatorFlowView } from '@/mantine/blocks/evaluator/flow/FlowView';\nimport { NotifyFlowView } from '@/mantine/blocks/notify/flow/FlowView';\nimport { CheckboxFlowView } from '@/mantine/blocks/checkbox/flow/FlowView';\nimport { SecretsFlowView } from '@/mantine/blocks/secrets/flow/SecretsFlowView';\nimport { SkillsFlowView } from '@/mantine/blocks/skills/flow/SkillsFlowView';\n\n// email / apiRequest keep their detail UI inside a private (non-exported)\n// PanelContent function, so we dispatch to the full FlowView card instead.\nimport { EmailFlowView } from '@/mantine/blocks/email/flow/FlowView';\nimport { ApiRequestFlowView } from '@/mantine/blocks/apiRequest/flow/FlowView';\n\nexport interface FlowNodePanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n isDisabled?: {\n isDisabled: 'disable';\n message?: string;\n };\n /** Explicit session whose runtime state this panel reads and writes. */\n sessionRunId?: string;\n runEventLog?: RunEventAppender;\n designPodAuthority?: DesignPodRuntimeAuthorityV1;\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's \"do-the-step\" / detail UI. Lets a host app render the panel for any\n * selected step in its own right column without relying on the per-block\n * usePanel/registeredPanels indirection.\n *\n * NOTE: every rendered detail component reads from BlocknoteContext\n * (useBlocknoteHandlers / useBlocknoteContext throw if the provider is\n * missing). Keep <FlowNodePanel> wrapped in the app's BlocknoteProvider /\n * EditorBlocknoteProvider.\n */\nexport function FlowNodePanel(props: FlowNodePanelProps) {\n // Embedded: the host app supplies the panel header, so BaseRightPanelLayout\n // suppresses its own (no duplicate title / close).\n return (\n <RunSessionProvider sessionRunId={props.sessionRunId} runEventLog={props.runEventLog || props.editor?._runEventLog} designPodAuthority={props.designPodAuthority}>\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodePanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n </RunSessionProvider>\n );\n}\n\nfunction FlowNodePanelContent({ editor, block, isDisabled }: FlowNodePanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionFlowPanel editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'form':\n return <FormPanel editor={editor} block={block} />;\n\n case 'proposal':\n return <ProposalFlowConfig editor={editor} block={block} />;\n\n case 'domainCreator':\n return <DomainCreatorSurveyPanel editor={editor} block={block} />;\n\n case 'domainCreatorSign':\n return <SignPanel editor={editor} block={block} />;\n\n case 'governanceGroup':\n return <GovernanceGroupPanel editor={editor} block={block} />;\n\n case 'claim':\n return <ClaimFlowView editor={editor} block={block} />;\n\n case 'evaluator':\n return <EvaluatorFlowView editor={editor} block={block} />;\n\n case 'notify':\n return <NotifyFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'checkbox':\n return <CheckboxFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'secrets':\n return <SecretsFlowView editor={editor} block={block} />;\n\n case 'skills':\n return <SkillsFlowView editor={editor} block={block} />;\n\n // email / apiRequest: detail UI is a private PanelContent fn; render the\n // full FlowView card (its own onClick opens the registered panel).\n case 'email':\n return <EmailFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'apiRequest':\n return <ApiRequestFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n // enumChecklist has no flow-mode panel (renders EnumChecklistBlock in all\n // modes). Fallback to null / \"open in document\".\n case 'enumChecklist':\n default:\n return null;\n }\n}\n\nexport default FlowNodePanel;\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\n\n// Per-block TEMPLATE config panels — the authoring counterpart to FlowNodePanel.\n// Each exposes the block's rich configuration (General + the shared\n// Authorization / Assignment / Commitment / TTL / Evaluation tabs) on the same\n// BaseRightPanelLayout the runtime panels use.\nimport { TemplateConfig as ActionConfig } from '@/mantine/blocks/action/template/TemplateConfig';\nimport { TemplateConfig as ClaimConfig } from '@/mantine/blocks/claim/template/TemplateConfig';\nimport { TemplateConfig as FormConfig } from '@/mantine/blocks/form/template/TemplateConfig';\nimport { TemplateConfig as CheckboxConfig } from '@/mantine/blocks/checkbox/template/TemplateConfig';\nimport { TemplateConfig as EvaluatorConfig } from '@/mantine/blocks/evaluator/template/TemplateConfig';\nimport { TemplateConfig as NotifyConfig } from '@/mantine/blocks/notify/template/TemplateConfig';\nimport { TemplateConfig as EmailConfig } from '@/mantine/blocks/email/template/TemplateConfig';\nimport { TemplateConfig as ApiRequestConfig } from '@/mantine/blocks/apiRequest/template/TemplateConfig';\nimport { TemplateConfig as ProposalConfig } from '@/mantine/blocks/proposal/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorConfig } from '@/mantine/blocks/domainCreator/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorSignConfig } from '@/mantine/blocks/domainCreatorSign/template/TemplateConfig';\nimport { TemplateConfig as GovernanceGroupConfig } from '@/mantine/blocks/governanceGroup/template/TemplateConfig';\n\n// secrets / skills have a template VIEW rather than a tabbed config.\nimport { SecretsTemplateView } from '@/mantine/blocks/secrets/template/SecretsTemplateView';\nimport { SkillsTemplateView } from '@/mantine/blocks/skills/template/SkillsTemplateView';\n\nexport interface FlowNodeConfigPanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's TEMPLATE configuration panel — the authoring counterpart to\n * `FlowNodePanel` (which renders the runtime \"do-the-step\" UI). Lets a host app\n * render the rich config (General + Authorization/Assignment/Commitment/TTL/…)\n * for any selected step in its own right column.\n *\n * Since `addFlowNode` and the registry route every capability through the\n * generic `action` block, `action → ActionConfig` is the primary case; the\n * dedicated block types are covered for documents that use them directly.\n *\n * Wrapped in `FlowPanelEmbeddedContext` so each config's `BaseRightPanelLayout`\n * suppresses its own header/close (the host supplies those).\n */\nexport function FlowNodeConfigPanel(props: FlowNodeConfigPanelProps) {\n return (\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodeConfigPanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n );\n}\n\nfunction FlowNodeConfigPanelContent({ editor, block }: FlowNodeConfigPanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionConfig editor={editor} block={block} />;\n case 'claim':\n return <ClaimConfig editor={editor} block={block} />;\n case 'form':\n return <FormConfig editor={editor} block={block} />;\n case 'checkbox':\n return <CheckboxConfig editor={editor} block={block} />;\n case 'evaluator':\n return <EvaluatorConfig editor={editor} block={block} />;\n case 'notify':\n return <NotifyConfig editor={editor} block={block} />;\n case 'email':\n return <EmailConfig editor={editor} block={block} />;\n case 'apiRequest':\n return <ApiRequestConfig editor={editor} block={block} />;\n case 'proposal':\n return <ProposalConfig editor={editor} block={block} />;\n case 'domainCreator':\n return <DomainCreatorConfig editor={editor} block={block} />;\n case 'domainCreatorSign':\n return <DomainCreatorSignConfig editor={editor} block={block} />;\n case 'governanceGroup':\n return <GovernanceGroupConfig editor={editor} block={block} />;\n case 'secrets':\n return <SecretsTemplateView editor={editor} block={block} />;\n case 'skills':\n return <SkillsTemplateView editor={editor} block={block} />;\n default:\n return null;\n }\n}\n\nexport default FlowNodeConfigPanel;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,WAAW,QAAQ,gBAAgB;AACnD,SAAS,YAAY,gBAAgB,iBAAiB;AAQtD,IAAM,SAAS;AACf,IAAM,UAAU;AAOT,SAAS,YAAY,EAAE,QAAQ,SAAS,GAA4D;AACzG,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAwB,IAAI;AAC1D,QAAM,eAAe,OAA8B,IAAI;AAEvD,YAAU,MAAM;AACd,QAAI,CAAC,SAAU;AAEf,UAAM,gBAAgB,CAAC,UAAsB;AAC3C,UAAI,CAAC,aAAa,SAAS,SAAS,MAAM,MAAc,EAAG,aAAY,KAAK;AAAA,IAC9E;AACA,UAAM,YAAY,CAAC,UAAyB;AAC1C,UAAI,MAAM,QAAQ,SAAU,aAAY,KAAK;AAAA,IAC/C;AAEA,aAAS,iBAAiB,aAAa,aAAa;AACpD,aAAS,iBAAiB,WAAW,SAAS;AAC9C,WAAO,MAAM;AACX,eAAS,oBAAoB,aAAa,aAAa;AACvD,eAAS,oBAAoB,WAAW,SAAS;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,eAAe,CAAC,QAAa;AACjC,QAAI,CAAC,IAAK,QAAO;AACjB,UAAM,MAA2B,CAAC;AAClC,QAAI,QAAQ,CAA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aAAO,gBAAAD,OAAA,cAACC,iBAAA,EAAa,QAAgB,OAAc;AAAA,IACrD,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,iBAAA,EAAY,QAAgB,OAAc;AAAA,IACpD,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,iBAAA,EAAiB,QAAgB,OAAc;AAAA,IACzD,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,iBAAA,EAAe,QAAgB,OAAc;AAAA,IACvD,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,iBAAA,EAAoB,QAAgB,OAAc;AAAA,IAC5D,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,kBAAA,EAAwB,QAAgB,OAAc;AAAA,IAChE,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,kBAAA,EAAsB,QAAgB,OAAc;AAAA,IAC9D,KAAK;AACH,aAAO,gBAAAD,OAAA,cAAC,uBAAoB,QAAgB,OAAc;AAAA,IAC5D,KAAK;AACH,aAAO,gBAAAA,OAAA,cAAC,sBAAmB,QAAgB,OAAc;AAAA,IAC3D;AACE,aAAO;AAAA,EACX;AACF;","names":["React","React","React","React","TemplateConfig"]}
@@ -3259,6 +3259,25 @@ interface BlocknoteHandlers {
3259
3259
  getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
3260
3260
  getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
3261
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>;
3262
3281
  /**
3263
3282
  * The Personal Agent (chat) oracle's DID for the active network. This is the
3264
3283
  * ENTITY DID (display, lookup, routing). Use `getOracleAuthDid` instead when
@@ -8650,6 +8669,17 @@ interface ActionHandlers {
8650
8669
  getOnlyClaimCollections?: (deedDid: string) => Promise<any[]>;
8651
8670
  getDeedSurveyTemplate?: (...args: any[]) => any;
8652
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>;
8653
8683
  requestPin?: (...args: any[]) => any;
8654
8684
  signCredential?: (...args: any[]) => any;
8655
8685
  publicFileUpload?: (...args: any[]) => any;
@@ -10796,4 +10826,4 @@ interface ActionResult {
10796
10826
  };
10797
10827
  }
10798
10828
 
10799
- 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 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 };
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.15.0",
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",
@@ -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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e;AAAA,MAC/F,MAAM;AAAA,QACJ,EAAE,OAAO,iBAAiB,OAAO,EAAE,yCAAyC,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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