@ixo/editor 6.36.0 → 7.1.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 (328) hide show
  1. package/dist/{BidConfig-3NEUNXN3.js → BidConfig-ZH625SNZ.js} +12 -13
  2. package/dist/{BidConfig-3NEUNXN3.js.map → BidConfig-ZH625SNZ.js.map} +1 -1
  3. package/dist/{BidFlowDetail-NJJOKPMS.js → BidFlowDetail-SZMKY75S.js} +18 -19
  4. package/dist/{BidFlowDetail-NJJOKPMS.js.map → BidFlowDetail-SZMKY75S.js.map} +1 -1
  5. package/dist/{CalendarEventCreateConfig-AR5VZCNA.js → CalendarEventCreateConfig-F7EYC4VL.js} +13 -14
  6. package/dist/{CalendarEventCreateConfig-AR5VZCNA.js.map → CalendarEventCreateConfig-F7EYC4VL.js.map} +1 -1
  7. package/dist/{CalendarEventCreateFlowDetail-NTLCWABI.js → CalendarEventCreateFlowDetail-JMYDUZRK.js} +14 -15
  8. package/dist/{CalendarEventCreateFlowDetail-NTLCWABI.js.map → CalendarEventCreateFlowDetail-JMYDUZRK.js.map} +1 -1
  9. package/dist/{CalendarEventListConfig-BLET3XIM.js → CalendarEventListConfig-RRIV7IZG.js} +13 -14
  10. package/dist/{CalendarEventListConfig-BLET3XIM.js.map → CalendarEventListConfig-RRIV7IZG.js.map} +1 -1
  11. package/dist/{CalendarEventListFlowDetail-IRF3TICA.js → CalendarEventListFlowDetail-6LN4I3SI.js} +7 -5
  12. package/dist/{CalendarEventListFlowDetail-IRF3TICA.js.map → CalendarEventListFlowDetail-6LN4I3SI.js.map} +1 -1
  13. package/dist/{CalendarEventUpdateConfig-VPNLMHO3.js → CalendarEventUpdateConfig-SARWZZG4.js} +13 -14
  14. package/dist/{CalendarEventUpdateConfig-VPNLMHO3.js.map → CalendarEventUpdateConfig-SARWZZG4.js.map} +1 -1
  15. package/dist/{CalendarEventUpdateFlowDetail-NQFXP7QM.js → CalendarEventUpdateFlowDetail-KZ2FG76Z.js} +14 -15
  16. package/dist/{CalendarEventUpdateFlowDetail-NQFXP7QM.js.map → CalendarEventUpdateFlowDetail-KZ2FG76Z.js.map} +1 -1
  17. package/dist/{ClaimConfig-AJERKKQX.js → ClaimConfig-PMRVROQ7.js} +12 -13
  18. package/dist/{ClaimConfig-AJERKKQX.js.map → ClaimConfig-PMRVROQ7.js.map} +1 -1
  19. package/dist/{ClaimFlowDetail-4AX4E5EO.js → ClaimFlowDetail-3364FIDU.js} +18 -19
  20. package/dist/{ClaimFlowDetail-4AX4E5EO.js.map → ClaimFlowDetail-3364FIDU.js.map} +1 -1
  21. package/dist/{CollectionLifecycleConfig-VLDN3YDI.js → CollectionLifecycleConfig-YPTZZJ3S.js} +6 -4
  22. package/dist/{CollectionLifecycleConfig-VLDN3YDI.js.map → CollectionLifecycleConfig-YPTZZJ3S.js.map} +1 -1
  23. package/dist/{CollectionLifecycleFlowDetail-UIEUQTK2.js → CollectionLifecycleFlowDetail-OD7OZH6W.js} +17 -18
  24. package/dist/{CollectionLifecycleFlowDetail-UIEUQTK2.js.map → CollectionLifecycleFlowDetail-OD7OZH6W.js.map} +1 -1
  25. package/dist/{CollectionUsersConfig-B2GOEJRC.js → CollectionUsersConfig-ETJM2G23.js} +15 -16
  26. package/dist/{CollectionUsersConfig-B2GOEJRC.js.map → CollectionUsersConfig-ETJM2G23.js.map} +1 -1
  27. package/dist/{CollectionUsersFlowDetail-LXH6BL5P.js → CollectionUsersFlowDetail-AMPT7UEV.js} +19 -20
  28. package/dist/{CollectionUsersFlowDetail-LXH6BL5P.js.map → CollectionUsersFlowDetail-AMPT7UEV.js.map} +1 -1
  29. package/dist/{CredentialStoreConfig-V3YSYSIT.js → CredentialStoreConfig-ZQFLCBDT.js} +9 -11
  30. package/dist/{CredentialStoreConfig-V3YSYSIT.js.map → CredentialStoreConfig-ZQFLCBDT.js.map} +1 -1
  31. package/dist/{CredentialStoreFlowDetail-TWZUFVAT.js → CredentialStoreFlowDetail-5LRH7NH5.js} +9 -10
  32. package/dist/{CredentialStoreFlowDetail-TWZUFVAT.js.map → CredentialStoreFlowDetail-5LRH7NH5.js.map} +1 -1
  33. package/dist/{DesignPodFlowDetail-3FIOPZGM.js → DesignPodFlowDetail-ECFMDZZ3.js} +7 -8
  34. package/dist/{DesignPodFlowDetail-3FIOPZGM.js.map → DesignPodFlowDetail-ECFMDZZ3.js.map} +1 -1
  35. package/dist/{DomainCardPreviewFlowDetail-5T6KQYUP.js → DomainCardPreviewFlowDetail-M7FPXS4N.js} +9 -10
  36. package/dist/{DomainCardPreviewFlowDetail-5T6KQYUP.js.map → DomainCardPreviewFlowDetail-M7FPXS4N.js.map} +1 -1
  37. package/dist/{DomainIndexerLookupFlowDetail-RITIJBF5.js → DomainIndexerLookupFlowDetail-L6GSDWLI.js} +7 -5
  38. package/dist/{DomainIndexerLookupFlowDetail-RITIJBF5.js.map → DomainIndexerLookupFlowDetail-L6GSDWLI.js.map} +1 -1
  39. package/dist/{DomainSignFlowDetail-5UDKSTBX.js → DomainSignFlowDetail-5ERYSTPG.js} +10 -11
  40. package/dist/{DomainSignFlowDetail-5UDKSTBX.js.map → DomainSignFlowDetail-5ERYSTPG.js.map} +1 -1
  41. package/dist/{DomainSingleSelectionConfig-Q6I7KLOO.js → DomainSingleSelectionConfig-DTHYPZBO.js} +6 -4
  42. package/dist/{DomainSingleSelectionConfig-Q6I7KLOO.js.map → DomainSingleSelectionConfig-DTHYPZBO.js.map} +1 -1
  43. package/dist/{DomainSingleSelectionFlowDetail-RXYRQMR5.js → DomainSingleSelectionFlowDetail-JKNAC2RY.js} +7 -5
  44. package/dist/{DomainSingleSelectionFlowDetail-RXYRQMR5.js.map → DomainSingleSelectionFlowDetail-JKNAC2RY.js.map} +1 -1
  45. package/dist/{EmailSendConfig-OVPVZNXQ.js → EmailSendConfig-O3XDS5IE.js} +12 -13
  46. package/dist/{EmailSendConfig-OVPVZNXQ.js.map → EmailSendConfig-O3XDS5IE.js.map} +1 -1
  47. package/dist/{EntityCreateOracleFlowDetail-IVB42PED.js → EntityCreateOracleFlowDetail-6XJ4UEL5.js} +9 -10
  48. package/dist/{EntityCreateOracleFlowDetail-IVB42PED.js.map → EntityCreateOracleFlowDetail-6XJ4UEL5.js.map} +1 -1
  49. package/dist/{EntitySingleSelectionFlowDetail-PIKQ4ZHV.js → EntitySingleSelectionFlowDetail-5BDIVHQV.js} +7 -5
  50. package/dist/{EntitySingleSelectionFlowDetail-PIKQ4ZHV.js.map → EntitySingleSelectionFlowDetail-5BDIVHQV.js.map} +1 -1
  51. package/dist/{EntityTransferFlowDetail-73NTV5BJ.js → EntityTransferFlowDetail-DY2UZ5VA.js} +9 -10
  52. package/dist/{EntityTransferFlowDetail-73NTV5BJ.js.map → EntityTransferFlowDetail-DY2UZ5VA.js.map} +1 -1
  53. package/dist/{EvalEngineConfig-BTCVWQ2D.js → EvalEngineConfig-5ZBXA3Q6.js} +17 -18
  54. package/dist/{EvalEngineConfig-BTCVWQ2D.js.map → EvalEngineConfig-5ZBXA3Q6.js.map} +1 -1
  55. package/dist/{EvalEngineFlowDetail-JTD2226A.js → EvalEngineFlowDetail-YL3FFONH.js} +11 -10
  56. package/dist/{EvalEngineFlowDetail-JTD2226A.js.map → EvalEngineFlowDetail-YL3FFONH.js.map} +1 -1
  57. package/dist/{EvaluateBidConfig-7VDC3NXD.js → EvaluateBidConfig-ZU7QUFXL.js} +12 -13
  58. package/dist/{EvaluateBidConfig-7VDC3NXD.js.map → EvaluateBidConfig-ZU7QUFXL.js.map} +1 -1
  59. package/dist/{EvaluateBidFlowDetail-6VDGVP3L.js → EvaluateBidFlowDetail-IATWBOE5.js} +17 -18
  60. package/dist/{EvaluateBidFlowDetail-6VDGVP3L.js.map → EvaluateBidFlowDetail-IATWBOE5.js.map} +1 -1
  61. package/dist/{EvaluateClaimConfig-6CQHIXJV.js → EvaluateClaimConfig-HEYNWGSN.js} +12 -13
  62. package/dist/{EvaluateClaimConfig-6CQHIXJV.js.map → EvaluateClaimConfig-HEYNWGSN.js.map} +1 -1
  63. package/dist/{EvaluateClaimFlowDetail-JBYINXH2.js → EvaluateClaimFlowDetail-TOX53BGP.js} +18 -19
  64. package/dist/{EvaluateClaimFlowDetail-JBYINXH2.js.map → EvaluateClaimFlowDetail-TOX53BGP.js.map} +1 -1
  65. package/dist/{FormSubmitFlowDetail-3KNCCNFI.js → FormSubmitFlowDetail-CVSUWEAW.js} +9 -10
  66. package/dist/{FormSubmitFlowDetail-3KNCCNFI.js.map → FormSubmitFlowDetail-CVSUWEAW.js.map} +1 -1
  67. package/dist/{GovernanceAuthzExecFlowDetail-WJJWWFQP.js → GovernanceAuthzExecFlowDetail-GWKPT7QW.js} +10 -11
  68. package/dist/{GovernanceAuthzExecFlowDetail-WJJWWFQP.js.map → GovernanceAuthzExecFlowDetail-GWKPT7QW.js.map} +1 -1
  69. package/dist/{GovernanceAuthzGrantFlowDetail-MTGEOXWC.js → GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js} +11 -12
  70. package/dist/{GovernanceAuthzGrantFlowDetail-MTGEOXWC.js.map → GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js.map} +1 -1
  71. package/dist/{GovernanceAuthzRevokeFlowDetail-DG23KMXM.js → GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js} +11 -12
  72. package/dist/{GovernanceAuthzRevokeFlowDetail-DG23KMXM.js.map → GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js.map} +1 -1
  73. package/dist/{GovernanceChainVoteFlowDetail-OKZKMLKC.js → GovernanceChainVoteFlowDetail-BO3DJNDF.js} +10 -11
  74. package/dist/{GovernanceChainVoteFlowDetail-OKZKMLKC.js.map → GovernanceChainVoteFlowDetail-BO3DJNDF.js.map} +1 -1
  75. package/dist/{GovernanceConfigFlowDetail-H7OB765D.js → GovernanceConfigFlowDetail-FZB4R54G.js} +7 -5
  76. package/dist/{GovernanceConfigFlowDetail-H7OB765D.js.map → GovernanceConfigFlowDetail-FZB4R54G.js.map} +1 -1
  77. package/dist/{GovernanceContractExecuteFlowDetail-DNCHU5WZ.js → GovernanceContractExecuteFlowDetail-JHIXCNXS.js} +11 -12
  78. package/dist/{GovernanceContractExecuteFlowDetail-DNCHU5WZ.js.map → GovernanceContractExecuteFlowDetail-JHIXCNXS.js.map} +1 -1
  79. package/dist/{GovernanceContractInstantiateFlowDetail-AILJZJGC.js → GovernanceContractInstantiateFlowDetail-XWSI2HXG.js} +11 -12
  80. package/dist/{GovernanceContractInstantiateFlowDetail-AILJZJGC.js.map → GovernanceContractInstantiateFlowDetail-XWSI2HXG.js.map} +1 -1
  81. package/dist/{GovernanceContractManageCw20FlowDetail-YUZU7NB3.js → GovernanceContractManageCw20FlowDetail-5QI3FBNT.js} +10 -11
  82. package/dist/{GovernanceContractManageCw20FlowDetail-YUZU7NB3.js.map → GovernanceContractManageCw20FlowDetail-5QI3FBNT.js.map} +1 -1
  83. package/dist/{GovernanceContractMigrateFlowDetail-IKM6JYCI.js → GovernanceContractMigrateFlowDetail-W2DEBKKU.js} +11 -12
  84. package/dist/{GovernanceContractMigrateFlowDetail-IKM6JYCI.js.map → GovernanceContractMigrateFlowDetail-W2DEBKKU.js.map} +1 -1
  85. package/dist/{GovernanceContractUpdateAdminFlowDetail-76WJU356.js → GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js} +10 -11
  86. package/dist/{GovernanceContractUpdateAdminFlowDetail-76WJU356.js.map → GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js.map} +1 -1
  87. package/dist/{GovernanceCustomMessageFlowDetail-I2BLIIHM.js → GovernanceCustomMessageFlowDetail-NNTHVM5D.js} +11 -12
  88. package/dist/{GovernanceCustomMessageFlowDetail-I2BLIIHM.js.map → GovernanceCustomMessageFlowDetail-NNTHVM5D.js.map} +1 -1
  89. package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-A2BO5RMM.js → GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js} +11 -12
  90. package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-A2BO5RMM.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js.map} +1 -1
  91. package/dist/{GovernanceDaoAdminExecFlowDetail-PUQSONHN.js → GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js} +12 -13
  92. package/dist/{GovernanceDaoAdminExecFlowDetail-PUQSONHN.js.map → GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js.map} +1 -1
  93. package/dist/{GovernanceDaoCreateEntityFlowDetail-6PKHZQHG.js → GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js} +11 -12
  94. package/dist/{GovernanceDaoCreateEntityFlowDetail-6PKHZQHG.js.map → GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js.map} +1 -1
  95. package/dist/{GovernanceDaoJoinFlowDetail-LCRPX4CQ.js → GovernanceDaoJoinFlowDetail-GJWWQPD2.js} +11 -12
  96. package/dist/{GovernanceDaoJoinFlowDetail-LCRPX4CQ.js.map → GovernanceDaoJoinFlowDetail-GJWWQPD2.js.map} +1 -1
  97. package/dist/{GovernanceDaoManageStorageFlowDetail-G7MRHMZZ.js → GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js} +10 -11
  98. package/dist/{GovernanceDaoManageStorageFlowDetail-G7MRHMZZ.js.map → GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js.map} +1 -1
  99. package/dist/{GovernanceDaoManageSubDaosFlowDetail-3JOXJUC2.js → GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js} +11 -12
  100. package/dist/{GovernanceDaoManageSubDaosFlowDetail-3JOXJUC2.js.map → GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js.map} +1 -1
  101. package/dist/{GovernanceDaoUpdateInfoFlowDetail-RQIFMUOD.js → GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js} +10 -11
  102. package/dist/{GovernanceDaoUpdateInfoFlowDetail-RQIFMUOD.js.map → GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js.map} +1 -1
  103. package/dist/{GovernanceMemberProposalConfig-P4LVM7CK.js → GovernanceMemberProposalConfig-LW6KNHVY.js} +7 -5
  104. package/dist/{GovernanceMemberProposalConfig-P4LVM7CK.js.map → GovernanceMemberProposalConfig-LW6KNHVY.js.map} +1 -1
  105. package/dist/{GovernanceMemberProposalFlowDetail-BVHFB54O.js → GovernanceMemberProposalFlowDetail-JNO3RPDW.js} +11 -12
  106. package/dist/{GovernanceMemberProposalFlowDetail-BVHFB54O.js.map → GovernanceMemberProposalFlowDetail-JNO3RPDW.js.map} +1 -1
  107. package/dist/{GovernanceNftBurnFlowDetail-BXZCQ3NX.js → GovernanceNftBurnFlowDetail-MG3S2DZB.js} +10 -11
  108. package/dist/{GovernanceNftBurnFlowDetail-BXZCQ3NX.js.map → GovernanceNftBurnFlowDetail-MG3S2DZB.js.map} +1 -1
  109. package/dist/{GovernanceNftManageCollectionsFlowDetail-UNX5EONL.js → GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js} +10 -11
  110. package/dist/{GovernanceNftManageCollectionsFlowDetail-UNX5EONL.js.map → GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js.map} +1 -1
  111. package/dist/{GovernanceNftTransferFlowDetail-N4HJVV2Y.js → GovernanceNftTransferFlowDetail-27CRQVTA.js} +11 -12
  112. package/dist/{GovernanceNftTransferFlowDetail-N4HJVV2Y.js.map → GovernanceNftTransferFlowDetail-27CRQVTA.js.map} +1 -1
  113. package/dist/{GovernanceSettingsProposalConfig-SQD7EFEJ.js → GovernanceSettingsProposalConfig-WBOTSKNF.js} +7 -5
  114. package/dist/{GovernanceSettingsProposalConfig-SQD7EFEJ.js.map → GovernanceSettingsProposalConfig-WBOTSKNF.js.map} +1 -1
  115. package/dist/{GovernanceSettingsProposalFlowDetail-O3EMALFD.js → GovernanceSettingsProposalFlowDetail-W2KXBQM2.js} +10 -11
  116. package/dist/{GovernanceSettingsProposalFlowDetail-O3EMALFD.js.map → GovernanceSettingsProposalFlowDetail-W2KXBQM2.js.map} +1 -1
  117. package/dist/{GovernanceStakingStakeFlowDetail-DBAC24FE.js → GovernanceStakingStakeFlowDetail-Z7MCDZDV.js} +10 -11
  118. package/dist/{GovernanceStakingStakeFlowDetail-DBAC24FE.js.map → GovernanceStakingStakeFlowDetail-Z7MCDZDV.js.map} +1 -1
  119. package/dist/{GovernanceStakingStakeToGroupFlowDetail-VQZA4XTB.js → GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js} +10 -11
  120. package/dist/{GovernanceStakingStakeToGroupFlowDetail-VQZA4XTB.js.map → GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js.map} +1 -1
  121. package/dist/{GovernanceSubmissionConfigProposalFlowDetail-FSJEBTH5.js → GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js} +10 -11
  122. package/dist/{GovernanceSubmissionConfigProposalFlowDetail-FSJEBTH5.js.map → GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js.map} +1 -1
  123. package/dist/{GovernanceTransactionMintFlowDetail-K6T4SWYJ.js → GovernanceTransactionMintFlowDetail-K6PPDCH6.js} +11 -12
  124. package/dist/{GovernanceTransactionMintFlowDetail-K6T4SWYJ.js.map → GovernanceTransactionMintFlowDetail-K6PPDCH6.js.map} +1 -1
  125. package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-NHU7M4TT.js → GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js} +10 -11
  126. package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-NHU7M4TT.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js.map} +1 -1
  127. package/dist/{GovernanceTransactionSendFundsConfig-N3LS6ZVU.js → GovernanceTransactionSendFundsConfig-JRROE44J.js} +7 -5
  128. package/dist/{GovernanceTransactionSendFundsConfig-N3LS6ZVU.js.map → GovernanceTransactionSendFundsConfig-JRROE44J.js.map} +1 -1
  129. package/dist/{GovernanceTransactionSendFundsFlowDetail-HQKL7LNN.js → GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js} +11 -12
  130. package/dist/{GovernanceTransactionSendFundsFlowDetail-HQKL7LNN.js.map → GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js.map} +1 -1
  131. package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-ZLAJN5NB.js → GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js} +11 -12
  132. package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-ZLAJN5NB.js.map → GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js.map} +1 -1
  133. package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-K6NUYFPJ.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js} +10 -11
  134. package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-K6NUYFPJ.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js.map} +1 -1
  135. package/dist/{GovernanceValidatorActionsFlowDetail-6TALBJ3L.js → GovernanceValidatorActionsFlowDetail-3YSPIIVG.js} +10 -11
  136. package/dist/{GovernanceValidatorActionsFlowDetail-6TALBJ3L.js.map → GovernanceValidatorActionsFlowDetail-3YSPIIVG.js.map} +1 -1
  137. package/dist/{HarvestConfig-72UJXJ2I.js → HarvestConfig-FXZYEZRA.js} +10 -12
  138. package/dist/{HarvestConfig-72UJXJ2I.js.map → HarvestConfig-FXZYEZRA.js.map} +1 -1
  139. package/dist/{HarvestFlowDetail-G6XES3W6.js → HarvestFlowDetail-Y2AJWJKR.js} +9 -10
  140. package/dist/{HarvestFlowDetail-G6XES3W6.js.map → HarvestFlowDetail-Y2AJWJKR.js.map} +1 -1
  141. package/dist/{HttpRequestConfig-PZAX5VZO.js → HttpRequestConfig-A3UIM3K2.js} +9 -11
  142. package/dist/{HttpRequestConfig-PZAX5VZO.js.map → HttpRequestConfig-A3UIM3K2.js.map} +1 -1
  143. package/dist/{HttpRequestFlowDetail-H3IWKJYT.js → HttpRequestFlowDetail-VWD64O3P.js} +7 -5
  144. package/dist/{HttpRequestFlowDetail-H3IWKJYT.js.map → HttpRequestFlowDetail-VWD64O3P.js.map} +1 -1
  145. package/dist/{IdentityCreateFlowDetail-YRUTCMXG.js → IdentityCreateFlowDetail-DXUI6S4I.js} +17 -18
  146. package/dist/{IdentityCreateFlowDetail-YRUTCMXG.js.map → IdentityCreateFlowDetail-DXUI6S4I.js.map} +1 -1
  147. package/dist/{IidCreateFlowDetail-FJKDBRVD.js → IidCreateFlowDetail-INISHT4R.js} +17 -18
  148. package/dist/{IidCreateFlowDetail-FJKDBRVD.js.map → IidCreateFlowDetail-INISHT4R.js.map} +1 -1
  149. package/dist/{KycVerifyConfig-7YN6E4QF.js → KycVerifyConfig-KSECQD2D.js} +9 -11
  150. package/dist/{KycVerifyConfig-7YN6E4QF.js.map → KycVerifyConfig-KSECQD2D.js.map} +1 -1
  151. package/dist/{KycVerifyFlowDetail-HNBUINHC.js → KycVerifyFlowDetail-ZLDIZ4HC.js} +16 -17
  152. package/dist/{KycVerifyFlowDetail-HNBUINHC.js.map → KycVerifyFlowDetail-ZLDIZ4HC.js.map} +1 -1
  153. package/dist/{ListDomainFlowsFlowDetail-Z2JE5XLW.js → ListDomainFlowsFlowDetail-PJQCAY3I.js} +7 -5
  154. package/dist/{ListDomainFlowsFlowDetail-Z2JE5XLW.js.map → ListDomainFlowsFlowDetail-PJQCAY3I.js.map} +1 -1
  155. package/dist/{LoadBatchesFlowDetail-MHRJDFBU.js → LoadBatchesFlowDetail-TL4TQDZ5.js} +9 -10
  156. package/dist/{LoadBatchesFlowDetail-MHRJDFBU.js.map → LoadBatchesFlowDetail-TL4TQDZ5.js.map} +1 -1
  157. package/dist/{MatrixDmConfig-MFC6DXMH.js → MatrixDmConfig-DRY27FAM.js} +6 -4
  158. package/dist/{MatrixDmConfig-MFC6DXMH.js.map → MatrixDmConfig-DRY27FAM.js.map} +1 -1
  159. package/dist/{MatrixRegisterFlowDetail-FJ2FVOWE.js → MatrixRegisterFlowDetail-RXHGTTQF.js} +9 -10
  160. package/dist/{MatrixRegisterFlowDetail-FJ2FVOWE.js.map → MatrixRegisterFlowDetail-RXHGTTQF.js.map} +1 -1
  161. package/dist/{MemberMultiSelectFlowDetail-GM45G5EA.js → MemberMultiSelectFlowDetail-N64ZK7GE.js} +7 -5
  162. package/dist/{MemberMultiSelectFlowDetail-GM45G5EA.js.map → MemberMultiSelectFlowDetail-N64ZK7GE.js.map} +1 -1
  163. package/dist/{OracleConfig-RW55I2YD.js → OracleConfig-KUPPRFL2.js} +9 -11
  164. package/dist/{OracleConfig-RW55I2YD.js.map → OracleConfig-KUPPRFL2.js.map} +1 -1
  165. package/dist/{OracleConfigureOracleFlowDetail-Y34ZSUNM.js → OracleConfigureOracleFlowDetail-L7GRKOSV.js} +17 -18
  166. package/dist/{OracleConfigureOracleFlowDetail-Y34ZSUNM.js.map → OracleConfigureOracleFlowDetail-L7GRKOSV.js.map} +1 -1
  167. package/dist/{OracleContractFlowDetail-YPS3STPP.js → OracleContractFlowDetail-D2XZYWVG.js} +9 -10
  168. package/dist/{OracleContractFlowDetail-YPS3STPP.js.map → OracleContractFlowDetail-D2XZYWVG.js.map} +1 -1
  169. package/dist/{OracleDeployFlowDetail-OF5DDC4Y.js → OracleDeployFlowDetail-TCFIJYP7.js} +9 -10
  170. package/dist/{OracleDeployFlowDetail-OF5DDC4Y.js.map → OracleDeployFlowDetail-TCFIJYP7.js.map} +1 -1
  171. package/dist/{OracleDeploySetupFlowDetail-BJ2KFO7M.js → OracleDeploySetupFlowDetail-KMGBPIND.js} +9 -10
  172. package/dist/{OracleDeploySetupFlowDetail-BJ2KFO7M.js.map → OracleDeploySetupFlowDetail-KMGBPIND.js.map} +1 -1
  173. package/dist/{OracleDeployStartFlowDetail-OLMKT4FX.js → OracleDeployStartFlowDetail-DTK5PLC5.js} +9 -10
  174. package/dist/{OracleDeployStartFlowDetail-OLMKT4FX.js.map → OracleDeployStartFlowDetail-DTK5PLC5.js.map} +1 -1
  175. package/dist/{OracleFlowDetail-RXRNN7LG.js → OracleFlowDetail-FEPE3YYU.js} +9 -10
  176. package/dist/{OracleFlowDetail-RXRNN7LG.js.map → OracleFlowDetail-FEPE3YYU.js.map} +1 -1
  177. package/dist/{OraclePromptFlowDetail-ST7EC3H7.js → OraclePromptFlowDetail-2B55RVOO.js} +9 -10
  178. package/dist/{OraclePromptFlowDetail-ST7EC3H7.js.map → OraclePromptFlowDetail-2B55RVOO.js.map} +1 -1
  179. package/dist/{OracleStoreConfigFlowDetail-LQK5UF4I.js → OracleStoreConfigFlowDetail-Q6PTB2TR.js} +9 -10
  180. package/dist/{OracleStoreConfigFlowDetail-LQK5UF4I.js.map → OracleStoreConfigFlowDetail-Q6PTB2TR.js.map} +1 -1
  181. package/dist/{OracleStoreSecretsAndConfigFlowDetail-ZKJZNK2U.js → OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js} +17 -18
  182. package/dist/{OracleStoreSecretsAndConfigFlowDetail-ZKJZNK2U.js.map → OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js.map} +1 -1
  183. package/dist/{OracleStoreSecretsFlowDetail-Q67XEZYS.js → OracleStoreSecretsFlowDetail-DHNXG3CZ.js} +17 -18
  184. package/dist/{OracleStoreSecretsFlowDetail-Q67XEZYS.js.map → OracleStoreSecretsFlowDetail-DHNXG3CZ.js.map} +1 -1
  185. package/dist/{ProposalCreateConfig-PJ4AQULI.js → ProposalCreateConfig-W3XNV7SH.js} +12 -13
  186. package/dist/{ProposalCreateConfig-PJ4AQULI.js.map → ProposalCreateConfig-W3XNV7SH.js.map} +1 -1
  187. package/dist/{ProposalCreateFlowDetail-M3XGZI66.js → ProposalCreateFlowDetail-2ZNJZMSY.js} +19 -20
  188. package/dist/{ProposalCreateFlowDetail-M3XGZI66.js.map → ProposalCreateFlowDetail-2ZNJZMSY.js.map} +1 -1
  189. package/dist/{ProposalVoteConfig-LYPYZDHK.js → ProposalVoteConfig-DDEF76CL.js} +12 -13
  190. package/dist/{ProposalVoteConfig-LYPYZDHK.js.map → ProposalVoteConfig-DDEF76CL.js.map} +1 -1
  191. package/dist/{ProposalVoteFlowDetail-JZ2KISZX.js → ProposalVoteFlowDetail-6BOYU4XJ.js} +10 -11
  192. package/dist/{ProposalVoteFlowDetail-JZ2KISZX.js.map → ProposalVoteFlowDetail-6BOYU4XJ.js.map} +1 -1
  193. package/dist/{ProtocolSelectFlowDetail-GNQD3G7Y.js → ProtocolSelectFlowDetail-IKYJQZAO.js} +6 -4
  194. package/dist/{ProtocolSelectFlowDetail-GNQD3G7Y.js.map → ProtocolSelectFlowDetail-IKYJQZAO.js.map} +1 -1
  195. package/dist/{RetireConfig-EICGSI7K.js → RetireConfig-PQPUZHIW.js} +10 -12
  196. package/dist/{RetireConfig-EICGSI7K.js.map → RetireConfig-PQPUZHIW.js.map} +1 -1
  197. package/dist/{RetireFlowDetail-7OSWHOZ2.js → RetireFlowDetail-SP5GBJSA.js} +9 -10
  198. package/dist/{RetireFlowDetail-7OSWHOZ2.js.map → RetireFlowDetail-SP5GBJSA.js.map} +1 -1
  199. package/dist/{SandboxProvisionFlowDetail-ORDCFVAQ.js → SandboxProvisionFlowDetail-CQ7XZWNA.js} +9 -10
  200. package/dist/{SandboxProvisionFlowDetail-ORDCFVAQ.js.map → SandboxProvisionFlowDetail-CQ7XZWNA.js.map} +1 -1
  201. package/dist/{WalletFundConfig-UYEI6LIU.js → WalletFundConfig-T5S6B2HH.js} +7 -5
  202. package/dist/{WalletFundConfig-UYEI6LIU.js.map → WalletFundConfig-T5S6B2HH.js.map} +1 -1
  203. package/dist/{WalletFundFlowDetail-UI63COIK.js → WalletFundFlowDetail-WLQLJS34.js} +10 -11
  204. package/dist/{WalletFundFlowDetail-UI63COIK.js.map → WalletFundFlowDetail-WLQLJS34.js.map} +1 -1
  205. package/dist/{WalletGenerateAndFundFlowDetail-KUYU35BS.js → WalletGenerateAndFundFlowDetail-7LEBWWEA.js} +7 -5
  206. package/dist/{WalletGenerateAndFundFlowDetail-KUYU35BS.js.map → WalletGenerateAndFundFlowDetail-7LEBWWEA.js.map} +1 -1
  207. package/dist/{WalletGenerateFlowDetail-Y5JBQO7R.js → WalletGenerateFlowDetail-CBAVDW7Z.js} +7 -5
  208. package/dist/{WalletGenerateFlowDetail-Y5JBQO7R.js.map → WalletGenerateFlowDetail-CBAVDW7Z.js.map} +1 -1
  209. package/dist/{XeroContactCreateConfig-6LS7JANF.js → XeroContactCreateConfig-TKJKZAC4.js} +13 -14
  210. package/dist/{XeroContactCreateConfig-6LS7JANF.js.map → XeroContactCreateConfig-TKJKZAC4.js.map} +1 -1
  211. package/dist/{XeroContactCreateFlowDetail-6YHUS6TT.js → XeroContactCreateFlowDetail-O3ZITUCC.js} +14 -15
  212. package/dist/{XeroContactCreateFlowDetail-6YHUS6TT.js.map → XeroContactCreateFlowDetail-O3ZITUCC.js.map} +1 -1
  213. package/dist/{XeroInvoiceCreateConfig-YF456J5Y.js → XeroInvoiceCreateConfig-LAMB7Q3J.js} +16 -17
  214. package/dist/{XeroInvoiceCreateConfig-YF456J5Y.js.map → XeroInvoiceCreateConfig-LAMB7Q3J.js.map} +1 -1
  215. package/dist/{XeroInvoiceCreateFlowDetail-3EKFNDIL.js → XeroInvoiceCreateFlowDetail-KIYWUT2B.js} +16 -17
  216. package/dist/{XeroInvoiceCreateFlowDetail-3EKFNDIL.js.map → XeroInvoiceCreateFlowDetail-KIYWUT2B.js.map} +1 -1
  217. package/dist/{XeroInvoiceListConfig-RYMS37GK.js → XeroInvoiceListConfig-PUUQP4UP.js} +13 -14
  218. package/dist/{XeroInvoiceListConfig-RYMS37GK.js.map → XeroInvoiceListConfig-PUUQP4UP.js.map} +1 -1
  219. package/dist/{XeroInvoiceListFlowDetail-TOE7BTXJ.js → XeroInvoiceListFlowDetail-YPU6MFSX.js} +7 -5
  220. package/dist/{XeroInvoiceListFlowDetail-TOE7BTXJ.js.map → XeroInvoiceListFlowDetail-YPU6MFSX.js.map} +1 -1
  221. package/dist/{XeroPaymentCreateConfig-KLIV5FAB.js → XeroPaymentCreateConfig-XNMSDVG3.js} +9 -11
  222. package/dist/{XeroPaymentCreateConfig-KLIV5FAB.js.map → XeroPaymentCreateConfig-XNMSDVG3.js.map} +1 -1
  223. package/dist/{XeroPaymentCreateFlowDetail-YFOGJCHR.js → XeroPaymentCreateFlowDetail-CB55SP6X.js} +15 -16
  224. package/dist/{XeroPaymentCreateFlowDetail-YFOGJCHR.js.map → XeroPaymentCreateFlowDetail-CB55SP6X.js.map} +1 -1
  225. package/dist/chunk-2KOJBMG5.js +1296 -0
  226. package/dist/chunk-2KOJBMG5.js.map +1 -0
  227. package/dist/{chunk-7VFCZZMP.js → chunk-3WLWIA7D.js} +68 -7
  228. package/dist/chunk-3WLWIA7D.js.map +1 -0
  229. package/dist/{chunk-G2RJXFHV.js → chunk-6JOBSAZF.js} +2 -2
  230. package/dist/{chunk-JIDTNKKL.js → chunk-7TVYQNOR.js} +57 -6
  231. package/dist/chunk-7TVYQNOR.js.map +1 -0
  232. package/dist/{chunk-A7IARZTV.js → chunk-A7L3NJK6.js} +2 -2
  233. package/dist/{chunk-NBPKDSLX.js → chunk-BAQA4AZN.js} +36 -5
  234. package/dist/chunk-BAQA4AZN.js.map +1 -0
  235. package/dist/{chunk-MQCDMHRZ.js → chunk-C376YPPE.js} +3 -3
  236. package/dist/{chunk-4PONO4US.js → chunk-CMG6TZKH.js} +3 -3
  237. package/dist/{chunk-MFUNBOLH.js → chunk-DMXZIAAW.js} +3 -3
  238. package/dist/{chunk-E6N2G3BQ.js → chunk-DVZU2FI6.js} +13 -13
  239. package/dist/chunk-DVZU2FI6.js.map +1 -0
  240. package/dist/{chunk-KYLJS66J.js → chunk-EH7EYO4N.js} +4 -4
  241. package/dist/{chunk-S4QEIR3K.js → chunk-FJ36VM6S.js} +2 -2
  242. package/dist/{chunk-Y4EEDWYE.js → chunk-IMN2PXVU.js} +8 -6
  243. package/dist/{chunk-Y4EEDWYE.js.map → chunk-IMN2PXVU.js.map} +1 -1
  244. package/dist/{chunk-5HJZYZBH.js → chunk-J6AWMFEF.js} +2 -2
  245. package/dist/{chunk-T5POEJGB.js → chunk-JDNOVB6L.js} +2 -2
  246. package/dist/{chunk-NIXT2SBH.js → chunk-JK6RAKE3.js} +2 -2
  247. package/dist/{chunk-F2SBFVIX.js → chunk-JSE2MTU7.js} +241 -218
  248. package/dist/chunk-JSE2MTU7.js.map +1 -0
  249. package/dist/{chunk-PYNDJDWZ.js → chunk-JWC4VVY7.js} +3 -5
  250. package/dist/{chunk-PYNDJDWZ.js.map → chunk-JWC4VVY7.js.map} +1 -1
  251. package/dist/{chunk-JANA35XL.js → chunk-L7WHIPGC.js} +2 -2
  252. package/dist/{chunk-K7NQ6NB5.js → chunk-LSWKBCB3.js} +5 -5
  253. package/dist/{chunk-NJAII6CO.js → chunk-M3GHFF5N.js} +2 -2
  254. package/dist/{chunk-VVFKJQW2.js → chunk-MQAJXYIS.js} +2 -2
  255. package/dist/{chunk-QZYCJ2GZ.js → chunk-MY22PTP4.js} +2 -2
  256. package/dist/{chunk-JVROGQ7Q.js → chunk-QSUE3ZFB.js} +2 -2
  257. package/dist/{chunk-IIIZZ4E4.js → chunk-QW7LA67J.js} +304 -213
  258. package/dist/chunk-QW7LA67J.js.map +1 -0
  259. package/dist/{chunk-FFYZXA75.js → chunk-RETGBEFM.js} +2 -2
  260. package/dist/{chunk-6433FBH2.js → chunk-RQS3KQLQ.js} +2 -2
  261. package/dist/{chunk-LECVAJYY.js → chunk-RV7QJFSE.js} +2 -2
  262. package/dist/{chunk-EMTMYB2N.js → chunk-S2ETTOE5.js} +2 -2
  263. package/dist/{chunk-L4XGJV5O.js → chunk-SRSVMD6E.js} +2 -2
  264. package/dist/{chunk-P7OBLJAG.js → chunk-SUUULPJP.js} +13 -11
  265. package/dist/chunk-SUUULPJP.js.map +1 -0
  266. package/dist/chunk-THG6RXFR.js +68 -0
  267. package/dist/chunk-THG6RXFR.js.map +1 -0
  268. package/dist/{chunk-RRYBAE6E.js → chunk-UTLM6U75.js} +6 -66
  269. package/dist/chunk-UTLM6U75.js.map +1 -0
  270. package/dist/{chunk-UHH7KCNX.js → chunk-VDEWPLOB.js} +700 -646
  271. package/dist/chunk-VDEWPLOB.js.map +1 -0
  272. package/dist/{chunk-ZZK5IHK2.js → chunk-X23SZR5N.js} +2 -2
  273. package/dist/{chunk-ZZ7FDJKJ.js → chunk-YMGLWNV5.js} +2 -2
  274. package/dist/{chunk-6RJIR3DT.js → chunk-ZIT2N7CI.js} +2 -2
  275. package/dist/{connections-CAuWls3b.d.ts → connections-tcxJgB1K.d.ts} +20 -23
  276. package/dist/core/index.cjs +1495 -414
  277. package/dist/core/index.cjs.map +1 -1
  278. package/dist/core/index.d.ts +276 -24
  279. package/dist/core/index.js +366 -85
  280. package/dist/core/index.js.map +1 -1
  281. package/dist/flow-vnext/index.js +6 -4
  282. package/dist/{graphql-client-CU0Iog8N.d.ts → graphql-client-VK7-KGDc.d.ts} +1 -1
  283. package/dist/index.d.ts +3 -3
  284. package/dist/index.js +28 -28
  285. package/dist/mantine/index.d.ts +4 -4
  286. package/dist/mantine/index.js +30 -32
  287. package/dist/mantine/index.js.map +1 -1
  288. package/dist/{types-DgKNZJ-B.d.ts → types-CYtPUWc7.d.ts} +886 -402
  289. package/package.json +3 -2
  290. package/dist/chunk-7VFCZZMP.js.map +0 -1
  291. package/dist/chunk-7W7UUUIE.js +0 -609
  292. package/dist/chunk-7W7UUUIE.js.map +0 -1
  293. package/dist/chunk-E6N2G3BQ.js.map +0 -1
  294. package/dist/chunk-F2SBFVIX.js.map +0 -1
  295. package/dist/chunk-HT6L7A5M.js +0 -12
  296. package/dist/chunk-HT6L7A5M.js.map +0 -1
  297. package/dist/chunk-IIIZZ4E4.js.map +0 -1
  298. package/dist/chunk-JIDTNKKL.js.map +0 -1
  299. package/dist/chunk-NBPKDSLX.js.map +0 -1
  300. package/dist/chunk-P7OBLJAG.js.map +0 -1
  301. package/dist/chunk-RRYBAE6E.js.map +0 -1
  302. package/dist/chunk-TS2LNBF2.js +0 -68
  303. package/dist/chunk-TS2LNBF2.js.map +0 -1
  304. package/dist/chunk-UHH7KCNX.js.map +0 -1
  305. /package/dist/{chunk-G2RJXFHV.js.map → chunk-6JOBSAZF.js.map} +0 -0
  306. /package/dist/{chunk-A7IARZTV.js.map → chunk-A7L3NJK6.js.map} +0 -0
  307. /package/dist/{chunk-MQCDMHRZ.js.map → chunk-C376YPPE.js.map} +0 -0
  308. /package/dist/{chunk-4PONO4US.js.map → chunk-CMG6TZKH.js.map} +0 -0
  309. /package/dist/{chunk-MFUNBOLH.js.map → chunk-DMXZIAAW.js.map} +0 -0
  310. /package/dist/{chunk-KYLJS66J.js.map → chunk-EH7EYO4N.js.map} +0 -0
  311. /package/dist/{chunk-S4QEIR3K.js.map → chunk-FJ36VM6S.js.map} +0 -0
  312. /package/dist/{chunk-5HJZYZBH.js.map → chunk-J6AWMFEF.js.map} +0 -0
  313. /package/dist/{chunk-T5POEJGB.js.map → chunk-JDNOVB6L.js.map} +0 -0
  314. /package/dist/{chunk-NIXT2SBH.js.map → chunk-JK6RAKE3.js.map} +0 -0
  315. /package/dist/{chunk-JANA35XL.js.map → chunk-L7WHIPGC.js.map} +0 -0
  316. /package/dist/{chunk-K7NQ6NB5.js.map → chunk-LSWKBCB3.js.map} +0 -0
  317. /package/dist/{chunk-NJAII6CO.js.map → chunk-M3GHFF5N.js.map} +0 -0
  318. /package/dist/{chunk-VVFKJQW2.js.map → chunk-MQAJXYIS.js.map} +0 -0
  319. /package/dist/{chunk-QZYCJ2GZ.js.map → chunk-MY22PTP4.js.map} +0 -0
  320. /package/dist/{chunk-JVROGQ7Q.js.map → chunk-QSUE3ZFB.js.map} +0 -0
  321. /package/dist/{chunk-FFYZXA75.js.map → chunk-RETGBEFM.js.map} +0 -0
  322. /package/dist/{chunk-6433FBH2.js.map → chunk-RQS3KQLQ.js.map} +0 -0
  323. /package/dist/{chunk-LECVAJYY.js.map → chunk-RV7QJFSE.js.map} +0 -0
  324. /package/dist/{chunk-EMTMYB2N.js.map → chunk-S2ETTOE5.js.map} +0 -0
  325. /package/dist/{chunk-L4XGJV5O.js.map → chunk-SRSVMD6E.js.map} +0 -0
  326. /package/dist/{chunk-ZZK5IHK2.js.map → chunk-X23SZR5N.js.map} +0 -0
  327. /package/dist/{chunk-ZZ7FDJKJ.js.map → chunk-YMGLWNV5.js.map} +0 -0
  328. /package/dist/{chunk-6RJIR3DT.js.map → chunk-ZIT2N7CI.js.map} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useXeroOracleActivity
3
- } from "./chunk-ZZ7FDJKJ.js";
3
+ } from "./chunk-YMGLWNV5.js";
4
4
  import {
5
5
  ActionDiffView,
6
6
  SlideToSign,
7
7
  useActionDiff
8
- } from "./chunk-MFUNBOLH.js";
8
+ } from "./chunk-DMXZIAAW.js";
9
9
  import {
10
10
  BaseAlert,
11
11
  BaseMultiSelect
12
12
  } from "./chunk-7ZLW7H37.js";
13
13
  import {
14
14
  useSharedProposal
15
- } from "./chunk-T5POEJGB.js";
15
+ } from "./chunk-JDNOVB6L.js";
16
16
  import {
17
17
  ActionsCard,
18
18
  ActionsPanel,
@@ -27,7 +27,7 @@ import {
27
27
  buildBlockLabel,
28
28
  getFlowRoomContext,
29
29
  useRegisterOpenSurvey
30
- } from "./chunk-A7IARZTV.js";
30
+ } from "./chunk-A7L3NJK6.js";
31
31
  import {
32
32
  getSurveyThemeForScheme,
33
33
  palette,
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-76YX5R4L.js";
56
56
  import {
57
57
  ProposalOverviewCard
58
- } from "./chunk-ZZK5IHK2.js";
58
+ } from "./chunk-X23SZR5N.js";
59
59
  import {
60
60
  BasePrimaryButton
61
61
  } from "./chunk-K74XQ4Q5.js";
@@ -69,10 +69,10 @@ import {
69
69
  getPropertyByName,
70
70
  parseResponseSchema,
71
71
  validateResponseAgainstSchema
72
- } from "./chunk-4PONO4US.js";
72
+ } from "./chunk-CMG6TZKH.js";
73
73
  import {
74
74
  DaoGroupField
75
- } from "./chunk-JANA35XL.js";
75
+ } from "./chunk-L7WHIPGC.js";
76
76
  import {
77
77
  BaseSelect
78
78
  } from "./chunk-4NAFQF6V.js";
@@ -83,7 +83,7 @@ import {
83
83
  useRunRuntimeReader,
84
84
  useRunSessionId,
85
85
  useRunSessionPreview
86
- } from "./chunk-FFYZXA75.js";
86
+ } from "./chunk-RETGBEFM.js";
87
87
  import {
88
88
  EntityAvatar_default
89
89
  } from "./chunk-BKLSSLPZ.js";
@@ -91,12 +91,14 @@ import {
91
91
  BaseAvatar
92
92
  } from "./chunk-XVA7QRVH.js";
93
93
  import {
94
+ createUcanRunLifecycleAuthorizer,
94
95
  getActiveEditor,
95
96
  getSharedFlowDocument,
96
97
  requiredCapabilityForCommand,
97
98
  setActiveEditor,
98
- syncFlowNodePropsFromProjection
99
- } from "./chunk-7VFCZZMP.js";
99
+ syncFlowNodePropsFromProjection,
100
+ writeFlowIdentity
101
+ } from "./chunk-3WLWIA7D.js";
100
102
  import {
101
103
  LATEST_VERSION,
102
104
  buildActionRunInputs,
@@ -110,7 +112,6 @@ import {
110
112
  deriveBlockPhase,
111
113
  evaluateBlockConditions,
112
114
  executeActionBlock,
113
- getVersionPolicy,
114
115
  isActionTypeDone,
115
116
  isAuthorized,
116
117
  isRuntimeRef,
@@ -121,7 +122,7 @@ import {
121
122
  startRun,
122
123
  validateBlockConfig,
123
124
  writeRunRecordAndReconcile
124
- } from "./chunk-F2SBFVIX.js";
125
+ } from "./chunk-JSE2MTU7.js";
125
126
  import {
126
127
  EVAL_ENGINE_ACTION_TYPE,
127
128
  GMAIL_SEND_SCHEMA,
@@ -145,7 +146,7 @@ import {
145
146
  renderNumber,
146
147
  retryPendingRunTimelineEvents,
147
148
  serializeDelegatedToolInputs
148
- } from "./chunk-E6N2G3BQ.js";
149
+ } from "./chunk-DVZU2FI6.js";
149
150
  import {
150
151
  buildDomainCardLinkedResource,
151
152
  buildGovernanceGroupLinkedEntities,
@@ -154,48 +155,20 @@ import {
154
155
  parseLinkedEntities,
155
156
  tempDomainCreatorSurvey,
156
157
  transformSurveyToCredentialSubject
157
- } from "./chunk-PYNDJDWZ.js";
158
+ } from "./chunk-JWC4VVY7.js";
158
159
  import {
160
+ bindFlowOwnerFromRoom,
159
161
  verifyDesignPodPublishedRun
160
- } from "./chunk-JIDTNKKL.js";
162
+ } from "./chunk-7TVYQNOR.js";
161
163
  import {
162
164
  resolveReferences
163
- } from "./chunk-JVROGQ7Q.js";
164
- import {
165
- LEGACY_RUNTIME_MAP_KEY,
166
- RUNS_MAP_KEY,
167
- RUNS_TERMINAL_MAP_KEY,
168
- STEP_COMPLETED_EVENT_NAME,
169
- assertRunActionExecutionAllowed,
170
- collectPhantomLegacyRun,
171
- createRunRuntimeReader,
172
- createRunScopedRuntimeManager,
173
- getAction,
174
- getActionPresentation,
175
- getAllActions,
176
- getAllCanMappings,
177
- getDMNotificationState,
178
- getEventsForBlock,
179
- getPendingDMNotificationState,
180
- readActionState,
181
- resolveActionType,
182
- resolveActiveRunId,
183
- resolveRunIdForExecution,
184
- resolveRunIdForRead,
185
- setDMNotificationRecord,
186
- setPendingDMNotificationRecord,
187
- shouldNotify,
188
- shouldNotifyPending,
189
- subscribeToActionState,
190
- usesLegacyRuntimeCompatibility,
191
- writeActionState
192
- } from "./chunk-IIIZZ4E4.js";
165
+ } from "./chunk-QSUE3ZFB.js";
193
166
  import {
194
167
  BaseTextArea
195
168
  } from "./chunk-ZDNW6VQG.js";
196
169
  import {
197
170
  DismissibleAlert
198
- } from "./chunk-5HJZYZBH.js";
171
+ } from "./chunk-J6AWMFEF.js";
199
172
  import {
200
173
  actionAlertStyles
201
174
  } from "./chunk-6GKJR52N.js";
@@ -217,14 +190,43 @@ import {
217
190
  useBlocknoteHandlers,
218
191
  useHookedActions,
219
192
  useTranslate
220
- } from "./chunk-NBPKDSLX.js";
193
+ } from "./chunk-BAQA4AZN.js";
221
194
  import {
222
- createUcanDelegationStore
223
- } from "./chunk-7W7UUUIE.js";
195
+ AUTHORITY_RECHECK_MS,
196
+ createUcanDelegationStore,
197
+ lifecycleRequestProof
198
+ } from "./chunk-2KOJBMG5.js";
224
199
  import {
200
+ LEGACY_RUNTIME_MAP_KEY,
201
+ RUNS_MAP_KEY,
202
+ RUNS_TERMINAL_MAP_KEY,
203
+ STEP_COMPLETED_EVENT_NAME,
204
+ assertRunActionExecutionAllowed,
205
+ collectPhantomLegacyRun,
206
+ createRunRuntimeReader,
207
+ createRunScopedRuntimeManager,
208
+ getAction,
209
+ getActionPresentation,
210
+ getAllActions,
211
+ getAllCanMappings,
212
+ getDMNotificationState,
213
+ getEventsForBlock,
214
+ getPendingDMNotificationState,
225
215
  matrixUserIdToDid,
226
- sendDirectMessage
227
- } from "./chunk-TS2LNBF2.js";
216
+ readActionState,
217
+ resolveActionType,
218
+ resolveActiveRunId,
219
+ resolveRunIdForExecution,
220
+ resolveRunIdForRead,
221
+ sendDirectMessage,
222
+ setDMNotificationRecord,
223
+ setPendingDMNotificationRecord,
224
+ shouldNotify,
225
+ shouldNotifyPending,
226
+ subscribeToActionState,
227
+ usesLegacyRuntimeCompatibility,
228
+ writeActionState
229
+ } from "./chunk-QW7LA67J.js";
228
230
 
229
231
  // src/mantine/hooks/usePanel.ts
230
232
  import { useCallback, useMemo, useEffect, useRef } from "react";
@@ -385,6 +387,7 @@ import { IconShieldPlus as IconShieldPlus2, IconShieldCheck, IconTrash, IconUser
385
387
  import React, { useState as useState2, useCallback as useCallback3 } from "react";
386
388
  import { Stack, Text, TextInput, Button, Group, Radio, Checkbox, Alert, Paper, Loader, Badge, ActionIcon, Divider, NumberInput, Title } from "@mantine/core";
387
389
  import { IconSearch, IconUser, IconRobot, IconX, IconShieldPlus, IconArrowLeft } from "@tabler/icons-react";
390
+ var MAX_GRANT_DAYS = 30;
388
391
  var GrantPermissionPanel = ({
389
392
  onBack,
390
393
  flowUri,
@@ -408,9 +411,7 @@ var GrantPermissionPanel = ({
408
411
  const [selectedBlocks, setSelectedBlocks] = useState2([]);
409
412
  const [customCan, setCustomCan] = useState2("");
410
413
  const [customWith, setCustomWith] = useState2("");
411
- const [expirationEnabled, setExpirationEnabled] = useState2(false);
412
- const [expirationDays, setExpirationDays] = useState2(30);
413
- const [canDelegate, setCanDelegate] = useState2(false);
414
+ const [expirationDays, setExpirationDays] = useState2(MAX_GRANT_DAYS);
414
415
  const [intent, setIntent] = useState2("");
415
416
  const [pin, setPin] = useState2("");
416
417
  const [loading, setLoading] = useState2(false);
@@ -468,15 +469,19 @@ var GrantPermissionPanel = ({
468
469
  setError("Please select at least one block or use full access");
469
470
  return;
470
471
  }
471
- const expiration = expirationEnabled && expirationDays ? Date.now() + Number(expirationDays) * 24 * 60 * 60 * 1e3 : void 0;
472
+ const days = Number(expirationDays);
473
+ if (!Number.isFinite(days) || days < 1 || days > MAX_GRANT_DAYS) {
474
+ setError(`Pick an expiry between 1 and ${MAX_GRANT_DAYS} days.`);
475
+ return;
476
+ }
477
+ const expiration = Date.now() + Math.floor(days) * 24 * 60 * 60 * 1e3;
472
478
  const grant = {
473
479
  audience,
474
480
  audienceDisplayName: recipientType === "manual" ? manualDid : selectedRecipient?.displayName,
475
481
  capabilities,
476
482
  proofs: [],
477
483
  // For flow caps: filled by parent component. For custom caps: empty (user is root).
478
- expiration,
479
- canDelegate
484
+ expiration
480
485
  };
481
486
  setLoading(true);
482
487
  setError(null);
@@ -504,9 +509,7 @@ var GrantPermissionPanel = ({
504
509
  setSelectedBlocks([]);
505
510
  setCustomCan("");
506
511
  setCustomWith("");
507
- setExpirationEnabled(false);
508
- setExpirationDays(30);
509
- setCanDelegate(false);
512
+ setExpirationDays(MAX_GRANT_DAYS);
510
513
  setIntent("");
511
514
  setPin("");
512
515
  setError(null);
@@ -585,15 +588,7 @@ var GrantPermissionPanel = ({
585
588
  value: intent,
586
589
  onChange: (e) => setIntent(e.currentTarget.value)
587
590
  }
588
- ), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, /* @__PURE__ */ React.createElement(Checkbox, { label: "Set expiration", checked: expirationEnabled, onChange: (e) => setExpirationEnabled(e.currentTarget.checked) }), expirationEnabled && /* @__PURE__ */ React.createElement(NumberInput, { label: "Expires in (days)", placeholder: "30", value: expirationDays, onChange: setExpirationDays, min: 1, max: 365 })), /* @__PURE__ */ React.createElement(
589
- Checkbox,
590
- {
591
- label: "Recipient can grant permissions to others",
592
- description: "Allow this recipient to delegate their permissions",
593
- checked: canDelegate,
594
- onChange: (e) => setCanDelegate(e.currentTarget.checked)
595
- }
596
- ), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(TextInput, { label: "Enter your PIN to sign this delegation", type: "password", placeholder: "PIN", value: pin, onChange: (e) => setPin(e.currentTarget.value) }), error && /* @__PURE__ */ React.createElement(Alert, { color: "red" }, error), /* @__PURE__ */ React.createElement(Group, { justify: "flex-end" }, /* @__PURE__ */ React.createElement(Button, { variant: "subtle", onClick: handleBack, disabled: loading }, "Cancel"), /* @__PURE__ */ React.createElement(Button, { onClick: handleGrant, loading }, "Grant Permission")));
591
+ ), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, /* @__PURE__ */ React.createElement(NumberInput, { label: "Expires in (days)", description: "Every grant expires. The flow's owner renews it before it runs out.", placeholder: "30", value: expirationDays, onChange: setExpirationDays, min: 1, max: MAX_GRANT_DAYS, allowDecimal: false })), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(TextInput, { label: "Enter your PIN to sign this delegation", type: "password", placeholder: "PIN", value: pin, onChange: (e) => setPin(e.currentTarget.value) }), error && /* @__PURE__ */ React.createElement(Alert, { color: "red" }, error), /* @__PURE__ */ React.createElement(Group, { justify: "flex-end" }, /* @__PURE__ */ React.createElement(Button, { variant: "subtle", onClick: handleBack, disabled: loading }, "Cancel"), /* @__PURE__ */ React.createElement(Button, { onClick: handleGrant, loading }, "Grant Permission")));
597
592
  };
598
593
 
599
594
  // src/mantine/components/AuthorizationTab.tsx
@@ -613,6 +608,7 @@ function normalizeActorDid(value) {
613
608
  }
614
609
  var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid: entityDidProp = "" }) => {
615
610
  const { handlers } = useBlocknoteContext();
611
+ const t = useTranslate();
616
612
  const flowOwnerDid = useMemo3(() => {
617
613
  return normalizeActorDid(editor.getFlowOwnerDid?.());
618
614
  }, [editor]);
@@ -648,7 +644,7 @@ var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid:
648
644
  }, [editor, creatingRootCapability, revision]);
649
645
  const rootCapabilityIsCar = !!rootCapability?.delegation;
650
646
  const ucanService = useMemo3(() => editor.getUcanService?.() ?? null, [editor]);
651
- const canSign = !!ucanService || !!handlers?.signCapability;
647
+ const canSign = !!ucanService;
652
648
  const createRootCapability = async (pin) => {
653
649
  if (!canSign) {
654
650
  return { success: false, error: "Signing capability not available." };
@@ -674,29 +670,7 @@ var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid:
674
670
  refreshDelegations();
675
671
  return { success: true };
676
672
  }
677
- const rootCapabilities = [{ can: "flow/*", with: fullFlowUri }];
678
- const result = await handlers.signCapability({
679
- issuerDid: flowOwnerDid,
680
- issuerType: "user",
681
- audience: flowOwnerDid,
682
- capabilities: rootCapabilities,
683
- proofs: [],
684
- pin
685
- });
686
- const id = result.id || `cap_${Date.now()}`;
687
- editor.setDelegation?.({
688
- id,
689
- issuer: flowOwnerDid,
690
- audience: flowOwnerDid,
691
- capabilities: rootCapabilities,
692
- proofs: [],
693
- issuedAt: (/* @__PURE__ */ new Date()).toISOString(),
694
- signature: result.signature
695
- });
696
- editor.setRootCapabilityId?.(id);
697
- setCreatingRootCapability(false);
698
- refreshDelegations();
699
- return { success: true };
673
+ return { success: false, error: "Signing is not available in this editor." };
700
674
  } catch (error) {
701
675
  const errorMsg = error instanceof Error ? error.message : "Failed to create root capability";
702
676
  setRootCapabilityError(errorMsg);
@@ -759,33 +733,28 @@ var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid:
759
733
  refreshDelegations();
760
734
  return { success: true };
761
735
  }
762
- const result = await handlers.signCapability({
763
- issuerDid: flowOwnerDid,
764
- issuerType: "user",
765
- audience: grant.audience,
766
- capabilities,
767
- proofs,
768
- expiration: grant.expiration,
769
- pin
770
- });
771
- editor.setDelegation?.({
772
- id: result.id || `cap_${Date.now()}`,
773
- issuer: flowOwnerDid,
774
- audience: grant.audience,
775
- capabilities,
776
- proofs,
777
- expiration: grant.expiration,
778
- issuedAt: (/* @__PURE__ */ new Date()).toISOString(),
779
- signature: result.signature
780
- });
781
- refreshDelegations();
782
- return { success: true };
736
+ return { success: false, error: "Signing is not available in this editor." };
783
737
  } catch (error) {
784
738
  return { success: false, error: error instanceof Error ? error.message : "Failed to grant capability" };
785
739
  }
786
740
  };
741
+ const [revokeError, setRevokeError] = useState3(null);
787
742
  const handleRevokeCapability = async (capabilityId) => {
788
- editor.removeDelegation?.(capabilityId);
743
+ setRevokeError(null);
744
+ try {
745
+ if (ucanService) {
746
+ await ucanService.revokeDelegation(capabilityId);
747
+ } else {
748
+ const token = editor.getDelegation?.(capabilityId)?.delegation;
749
+ if (token) {
750
+ if (!handlers?.revokeDelegation) throw new Error("Revoking is not available here, so the grant was left in place.");
751
+ await handlers.revokeDelegation({ cid: capabilityId, token });
752
+ }
753
+ editor.removeDelegation?.(capabilityId);
754
+ }
755
+ } catch (error) {
756
+ setRevokeError(error instanceof Error ? error.message : "The grant could not be revoked and is still in place.");
757
+ }
789
758
  refreshDelegations();
790
759
  };
791
760
  const searchUsers = async (query) => {
@@ -833,7 +802,7 @@ var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid:
833
802
  )
834
803
  );
835
804
  }
836
- return /* @__PURE__ */ React2.createElement(Stack2, { gap: "md" }, /* @__PURE__ */ React2.createElement(Stack2, { gap: "sm" }, /* @__PURE__ */ React2.createElement(Text2, { fw: 600, size: "sm" }, "Block Authorization"), rootCapabilityIsCar ? /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "green", variant: "light", icon: /* @__PURE__ */ React2.createElement(IconKey, { size: 16 }) }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", fw: 500 }, "Root capability established"), /* @__PURE__ */ React2.createElement(Badge2, { size: "xs", variant: "light" }, "Owner: ", flowOwnerDid?.slice(-12) || "Unknown"))) : /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "orange", variant: "light", icon: /* @__PURE__ */ React2.createElement(IconKey, { size: 16 }) }, /* @__PURE__ */ React2.createElement(Stack2, { gap: 4 }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", fw: 500 }, rootCapability ? "Root capability needs upgrade" : "Root capability not found"), /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, "The flow's root signing authority has not been established. This must be set up before any block can be executed."), isFlowOwner && canSign && /* @__PURE__ */ React2.createElement(
805
+ return /* @__PURE__ */ React2.createElement(Stack2, { gap: "md" }, /* @__PURE__ */ React2.createElement(Stack2, { gap: "sm" }, /* @__PURE__ */ React2.createElement(Text2, { fw: 600, size: "sm" }, "Block Authorization"), rootCapabilityIsCar ? /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "green", variant: "light", icon: /* @__PURE__ */ React2.createElement(IconKey, { size: 16 }) }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", fw: 500 }, t("authorizationTab.root.approved", { defaultValue: "Flow approved" })), /* @__PURE__ */ React2.createElement(Badge2, { size: "xs", variant: "light" }, "Owner: ", flowOwnerDid?.slice(-12) || "Unknown"))) : /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "orange", variant: "light", icon: /* @__PURE__ */ React2.createElement(IconKey, { size: 16 }) }, /* @__PURE__ */ React2.createElement(Stack2, { gap: 4 }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", fw: 500 }, rootCapability ? t("authorizationTab.root.upgradeTitle", { defaultValue: "Security update needed" }) : t("authorizationTab.root.notApprovedTitle", { defaultValue: "Approve the flow first" })), /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, rootCapability ? t("authorizationTab.root.upgradeBody", { defaultValue: "This flow needs a one-time security update before its steps can run." }) : t("authorizationTab.root.body", { defaultValue: "Steps can run, and you can give people access to them, once the flow is approved." })), isFlowOwner && canSign && /* @__PURE__ */ React2.createElement(
837
806
  Button2,
838
807
  {
839
808
  size: "xs",
@@ -842,23 +811,25 @@ var AuthorizationTab = ({ editor, block: initialBlock, flowUri = "", entityDid:
842
811
  loading: creatingRootCapability,
843
812
  onClick: async () => {
844
813
  const pin = await handlers?.requestPin?.({
845
- title: "Create Root Capability",
846
- description: "Enter your PIN to establish signing authority for this flow"
814
+ title: t("authorizationTab.root.pinTitle", { defaultValue: "Approve this flow" }),
815
+ description: t("authorizationTab.root.pinDescription", { defaultValue: "Enter your PIN. You only need to do this once for this flow." })
847
816
  });
848
817
  if (pin) {
849
818
  const result = await createRootCapability(pin);
850
819
  if (!result.success) {
851
- setRootCapabilityError(result.error || "Failed to create root capability");
820
+ setRootCapabilityError(result.error || t("authorizationTab.root.failed", { defaultValue: "The flow couldn't be approved. Try again." }));
852
821
  }
853
822
  }
854
823
  },
855
824
  leftSection: /* @__PURE__ */ React2.createElement(IconKey, { size: 14 })
856
825
  },
857
- rootCapability ? "Upgrade Signing Authority" : "Initialize Signing Authority"
858
- ), rootCapabilityError && /* @__PURE__ */ React2.createElement(Text2, { size: "xs", c: "red" }, rootCapabilityError))), !isFlowOwner && flowOwnerDid && /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "blue", variant: "light" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, "You are not the flow owner. Only the flow owner (", flowOwnerDid.slice(-16), ") can grant capabilities.")), /* @__PURE__ */ React2.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500 }, "Granted Capabilities"), /* @__PURE__ */ React2.createElement(Button2, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ React2.createElement(IconShieldPlus2, { size: 14 }), onClick: () => setViewMode("grant"), disabled: !canSign || !rootCapability || !isFlowOwner }, "Grant Permission")), !canSign && /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "yellow", variant: "light" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, "User signing is not configured. Please set up user signing to grant capabilities.")), blockCapabilities.length === 0 ? /* @__PURE__ */ React2.createElement(Text2, { size: "sm", c: "dimmed" }, "No capabilities granted for this block yet.") : /* @__PURE__ */ React2.createElement(Stack2, { gap: "xs" }, blockCapabilities.map((cap) => {
826
+ rootCapability ? t("authorizationTab.root.upgradeButton", { defaultValue: "Approve update" }) : t("authorizationTab.root.approveButton", { defaultValue: "Approve flow" })
827
+ ), rootCapabilityError && /* @__PURE__ */ React2.createElement(Text2, { size: "xs", c: "red" }, rootCapabilityError))), !isFlowOwner && flowOwnerDid && /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "blue", variant: "light" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, "You are not the flow owner. Only the flow owner (", flowOwnerDid.slice(-16), ") can grant capabilities.")), /* @__PURE__ */ React2.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500 }, "Granted Capabilities"), /* @__PURE__ */ React2.createElement(Button2, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ React2.createElement(IconShieldPlus2, { size: 14 }), onClick: () => setViewMode("grant"), disabled: !canSign || !rootCapability || !isFlowOwner }, "Grant Permission")), !canSign && /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "yellow", variant: "light" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, "User signing is not configured. Please set up user signing to grant capabilities.")), revokeError && /* @__PURE__ */ React2.createElement(DismissibleAlert, { color: "red", variant: "light" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs" }, revokeError)), blockCapabilities.length === 0 ? /* @__PURE__ */ React2.createElement(Text2, { size: "sm", c: "dimmed" }, "No capabilities granted for this block yet.") : /* @__PURE__ */ React2.createElement(Stack2, { gap: "xs" }, blockCapabilities.map((cap) => {
859
828
  const cid = cap.cid ?? cap.id ?? "";
860
829
  const audience = cap.audienceDid ?? cap.audience ?? "";
861
- return /* @__PURE__ */ React2.createElement(Paper2, { key: cid, p: "xs", withBorder: true }, /* @__PURE__ */ React2.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(IconShieldCheck, { size: 16, color: "var(--mantine-color-green-6)" }), /* @__PURE__ */ React2.createElement(Stack2, { gap: 2 }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, audience.includes(":oracle:") ? /* @__PURE__ */ React2.createElement(IconRobot2, { size: 14 }) : /* @__PURE__ */ React2.createElement(IconUser2, { size: 14 }), /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500 }, audience.slice(-16) || "(unknown audience)")), /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", c: "dimmed" }, "Expires: ", formatExpiration(cap.expiration)), /* @__PURE__ */ React2.createElement(Badge2, { size: "xs", variant: "light" }, Array.isArray(cap.capabilities) ? cap.capabilities.map((c) => c.can).join(", ") : "")))), /* @__PURE__ */ React2.createElement(ActionIcon2, { size: "sm", variant: "subtle", color: "red", onClick: () => handleRevokeCapability(cid) }, /* @__PURE__ */ React2.createElement(IconTrash, { size: 14 }))));
830
+ const issuer = normalizeActorDid(cap.issuerDid ?? cap.issuer);
831
+ const canRevoke = !!issuer && issuer === currentUserDid;
832
+ return /* @__PURE__ */ React2.createElement(Paper2, { key: cid, p: "xs", withBorder: true }, /* @__PURE__ */ React2.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(IconShieldCheck, { size: 16, color: "var(--mantine-color-green-6)" }), /* @__PURE__ */ React2.createElement(Stack2, { gap: 2 }, /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, audience.includes(":oracle:") ? /* @__PURE__ */ React2.createElement(IconRobot2, { size: 14 }) : /* @__PURE__ */ React2.createElement(IconUser2, { size: 14 }), /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500 }, audience.slice(-16) || "(unknown audience)")), /* @__PURE__ */ React2.createElement(Group2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "xs", c: "dimmed" }, "Expires: ", formatExpiration(cap.expiration)), /* @__PURE__ */ React2.createElement(Badge2, { size: "xs", variant: "light" }, Array.isArray(cap.capabilities) ? cap.capabilities.map((c) => c.can).join(", ") : "")))), canRevoke && /* @__PURE__ */ React2.createElement(ActionIcon2, { size: "sm", variant: "subtle", color: "red", onClick: () => handleRevokeCapability(cid) }, /* @__PURE__ */ React2.createElement(IconTrash, { size: 14 }))));
862
833
  }))));
863
834
  };
864
835
 
@@ -1115,7 +1086,9 @@ function useNodeRuntime(editor, nodeId, runId) {
1115
1086
  next.output ?? {},
1116
1087
  [{ name: STEP_COMPLETED_EVENT_NAME, payload: {} }],
1117
1088
  next.executedByDid ?? "",
1118
- {},
1089
+ // The step's signed receipt: reconciliation only lets a run record
1090
+ // fire triggers when its receipt verifies.
1091
+ typeof next.lastInvocationCid === "string" && next.lastInvocationCid ? { invocationCid: next.lastInvocationCid } : {},
1119
1092
  activeRunId
1120
1093
  );
1121
1094
  } catch {
@@ -3769,7 +3742,7 @@ var ListTemplateView = ({ editor, block }) => {
3769
3742
  };
3770
3743
 
3771
3744
  // src/mantine/blocks/list/flow/ListFlowView.tsx
3772
- import React79, { useState as useState34, useEffect as useEffect32, useMemo as useMemo40, useCallback as useCallback29, useRef as useRef9 } from "react";
3745
+ import React79, { useState as useState34, useEffect as useEffect32, useMemo as useMemo40, useCallback as useCallback30, useRef as useRef9 } from "react";
3773
3746
  import { Stack as Stack58, Text as Text58, ActionIcon as ActionIcon14, Loader as Loader16, Center as Center7, Flex as Flex26, Title as Title5, Collapse as Collapse2, Tooltip as Tooltip8 } from "@mantine/core";
3774
3747
 
3775
3748
  // src/mantine/blocks/list/linked_resources/ResourcesList.tsx
@@ -4406,7 +4379,7 @@ var ClaimsListPanelContent = ({ collectionId, deedId, claim }) => {
4406
4379
  };
4407
4380
 
4408
4381
  // src/mantine/blocks/list/claims/ClaimsEvaluation.tsx
4409
- import React72, { useCallback as useCallback28, useMemo as useMemo37, useState as useState30 } from "react";
4382
+ import React72, { useCallback as useCallback29, useMemo as useMemo37, useState as useState30 } from "react";
4410
4383
  import { Alert as Alert11, Box as Box23, Button as Button10, Divider as Divider7, Group as Group23, Loader as Loader14, Stack as Stack52, Text as Text51 } from "@mantine/core";
4411
4384
 
4412
4385
  // src/mantine/blocks/evaluator/EvaluatorBlock.tsx
@@ -5701,20 +5674,37 @@ import React64, { useMemo as useMemo32 } from "react";
5701
5674
  import { Stack as Stack46, Text as Text45, Center as Center2, Loader as Loader10, Group as Group19 } from "@mantine/core";
5702
5675
 
5703
5676
  // src/mantine/hooks/useBlockAuthorization.ts
5704
- import { useState as useState21, useEffect as useEffect21, useMemo as useMemo25 } from "react";
5677
+ import { useState as useState21, useEffect as useEffect21, useMemo as useMemo25, useCallback as useCallback21 } from "react";
5678
+ function fromDecision(decision) {
5679
+ return decision.allowed ? { authorized: true, capabilityId: decision.proofCids[0], proofCids: decision.proofCids } : { authorized: false, reason: decision.reason };
5680
+ }
5705
5681
  function useBlockAuthorization({ editor, blockId, actorDid, ucanService, flowUri }) {
5706
- const [result, setResult] = useState21({ authorized: false, reason: "Checking authorization..." });
5707
- const [loading, setLoading] = useState21(true);
5708
- const [checkTrigger, setCheckTrigger] = useState21(0);
5709
5682
  const resolvedFlowUri = useMemo25(() => {
5710
5683
  if (flowUri) return flowUri;
5711
5684
  const metadata = editor.getFlowMetadata?.();
5712
5685
  return metadata?.doc_id ? `ixo:flow:${metadata.doc_id}` : "";
5713
5686
  }, [flowUri, editor]);
5714
- const schemaVersion = useMemo25(() => editor.getFlowMetadata?.()?.schema_version || "0.3", [editor]);
5687
+ const capability = useMemo25(() => ({ can: "flow/block/execute", with: `${resolvedFlowUri}:${blockId}` }), [resolvedFlowUri, blockId]);
5688
+ const authority = ucanService?.authority;
5689
+ const cached = useCallback21(() => {
5690
+ if (!actorDid || !resolvedFlowUri || !authority) return void 0;
5691
+ const decision = authority.peek(actorDid, capability);
5692
+ return decision ? fromDecision(decision) : void 0;
5693
+ }, [actorDid, authority, capability, resolvedFlowUri]);
5694
+ const [result, setResult] = useState21(() => cached() ?? { authorized: false, reason: "Checking authorization..." });
5695
+ const [loading, setLoading] = useState21(() => cached() === void 0);
5696
+ const [checkTrigger, setCheckTrigger] = useState21(0);
5697
+ useEffect21(() => {
5698
+ if (!authority) return;
5699
+ return authority.subscribe(() => setCheckTrigger((prev) => prev + 1));
5700
+ }, [authority]);
5701
+ useEffect21(() => {
5702
+ const interval = setInterval(() => setCheckTrigger((prev) => prev + 1), AUTHORITY_RECHECK_MS);
5703
+ return () => clearInterval(interval);
5704
+ }, []);
5715
5705
  useEffect21(() => {
5706
+ let cancelled = false;
5716
5707
  const checkAuthorization = async () => {
5717
- setLoading(true);
5718
5708
  if (!actorDid) {
5719
5709
  setResult({ authorized: false, reason: "No user DID available" });
5720
5710
  setLoading(false);
@@ -5725,20 +5715,27 @@ function useBlockAuthorization({ editor, blockId, actorDid, ucanService, flowUri
5725
5715
  setLoading(false);
5726
5716
  return;
5727
5717
  }
5718
+ const known = cached();
5719
+ if (known) {
5720
+ setResult(known);
5721
+ setLoading(false);
5722
+ } else {
5723
+ setLoading(true);
5724
+ }
5728
5725
  try {
5729
- const authResult = await isAuthorized(blockId, actorDid, ucanService, resolvedFlowUri, schemaVersion);
5730
- setResult(authResult);
5726
+ const authResult = await isAuthorized(blockId, actorDid, ucanService, resolvedFlowUri);
5727
+ if (!cancelled) setResult(authResult);
5731
5728
  } catch (error) {
5732
- setResult({
5733
- authorized: false,
5734
- reason: error instanceof Error ? error.message : "Authorization check failed"
5735
- });
5729
+ if (!cancelled) setResult({ authorized: false, reason: error instanceof Error ? error.message : "Authorization check failed" });
5736
5730
  } finally {
5737
- setLoading(false);
5731
+ if (!cancelled) setLoading(false);
5738
5732
  }
5739
5733
  };
5740
- checkAuthorization();
5741
- }, [blockId, actorDid, ucanService, resolvedFlowUri, schemaVersion, checkTrigger]);
5734
+ void checkAuthorization();
5735
+ return () => {
5736
+ cancelled = true;
5737
+ };
5738
+ }, [blockId, actorDid, ucanService, resolvedFlowUri, checkTrigger, cached]);
5742
5739
  const recheck = () => setCheckTrigger((prev) => prev + 1);
5743
5740
  return {
5744
5741
  isAuthorized: result.authorized,
@@ -5751,7 +5748,7 @@ function useBlockAuthorization({ editor, blockId, actorDid, ucanService, flowUri
5751
5748
  }
5752
5749
 
5753
5750
  // src/mantine/blocks/components/bid/components/BidsList.tsx
5754
- import React61, { useCallback as useCallback23 } from "react";
5751
+ import React61, { useCallback as useCallback24 } from "react";
5755
5752
  import { Stack as Stack44, Text as Text42, Loader as Loader7, Center, Alert as Alert7 } from "@mantine/core";
5756
5753
  import { IconAlertCircle as IconAlertCircle4 } from "@tabler/icons-react";
5757
5754
 
@@ -5861,14 +5858,14 @@ function useBidView(bid, deedId) {
5861
5858
  }
5862
5859
 
5863
5860
  // src/mantine/blocks/components/bid/hooks/useBidActions.ts
5864
- import { useState as useState23, useCallback as useCallback21, useMemo as useMemo27 } from "react";
5861
+ import { useState as useState23, useCallback as useCallback22, useMemo as useMemo27 } from "react";
5865
5862
  function useBidActions(bid, deedId, adminAddress, execution, onRefresh, executeHookedActions) {
5866
5863
  const handlers = useBlocknoteHandlers();
5867
5864
  const services = useMemo27(() => buildServicesFromHandlers(handlers), [handlers]);
5868
5865
  const { closePanel } = usePanelStore();
5869
5866
  const [loading, setLoading] = useState23(false);
5870
5867
  const [error, setError] = useState23(null);
5871
- const approveBid = useCallback21(
5868
+ const approveBid = useCallback22(
5872
5869
  async (maxAmounts) => {
5873
5870
  try {
5874
5871
  setLoading(true);
@@ -5928,7 +5925,7 @@ function useBidActions(bid, deedId, adminAddress, execution, onRefresh, executeH
5928
5925
  },
5929
5926
  [bid, deedId, adminAddress, handlers, closePanel, onRefresh, execution, executeHookedActions, services]
5930
5927
  );
5931
- const rejectBid = useCallback21(
5928
+ const rejectBid = useCallback22(
5932
5929
  async (reason) => {
5933
5930
  if (!reason.trim()) {
5934
5931
  setError("Please provide a reason for rejection");
@@ -6116,13 +6113,13 @@ var BidItem = ({ editor, block, bid, deedId, adminAddress, onRefresh, execution,
6116
6113
  };
6117
6114
 
6118
6115
  // src/mantine/blocks/components/bid/hooks/useBids.ts
6119
- import { useState as useState26, useEffect as useEffect24, useCallback as useCallback22 } from "react";
6116
+ import { useState as useState26, useEffect as useEffect24, useCallback as useCallback23 } from "react";
6120
6117
  function useBids(collectionId, entityDid) {
6121
6118
  const handlers = useBlocknoteHandlers();
6122
6119
  const [bids, setBids] = useState26([]);
6123
6120
  const [loading, setLoading] = useState26(true);
6124
6121
  const [error, setError] = useState26(null);
6125
- const fetchBids = useCallback22(async () => {
6122
+ const fetchBids = useCallback23(async () => {
6126
6123
  if (!collectionId) {
6127
6124
  setLoading(false);
6128
6125
  return;
@@ -6149,7 +6146,7 @@ function useBids(collectionId, entityDid) {
6149
6146
  var BidsList = ({ editor, block, collectionId, deedId, adminAddress, onRefresh, execution, executeHookedActions }) => {
6150
6147
  const { closePanel } = usePanelStore();
6151
6148
  const { bids, loading, error, refetch } = useBids(collectionId, deedId);
6152
- const handleRefresh = useCallback23(() => {
6149
+ const handleRefresh = useCallback24(() => {
6153
6150
  refetch();
6154
6151
  onRefresh();
6155
6152
  }, [refetch, onRefresh]);
@@ -6192,13 +6189,13 @@ var BidsList = ({ editor, block, collectionId, deedId, adminAddress, onRefresh,
6192
6189
  };
6193
6190
 
6194
6191
  // src/mantine/blocks/components/bid/hooks/useUserBid.ts
6195
- import { useState as useState27, useEffect as useEffect25, useCallback as useCallback24 } from "react";
6192
+ import { useState as useState27, useEffect as useEffect25, useCallback as useCallback25 } from "react";
6196
6193
  function useUserBid(collectionId, userDid, entityDid) {
6197
6194
  const handlers = useBlocknoteHandlers();
6198
6195
  const [userBid, setUserBid] = useState27(null);
6199
6196
  const [loading, setLoading] = useState27(true);
6200
6197
  const [error, setError] = useState27(null);
6201
- const fetchUserBid = useCallback24(async () => {
6198
+ const fetchUserBid = useCallback25(async () => {
6202
6199
  if (!collectionId || !userDid) {
6203
6200
  setLoading(false);
6204
6201
  return;
@@ -6246,12 +6243,12 @@ var BidRoleSelectPanel = ({ editor, block, collectionId, openEA, openSA, userRol
6246
6243
  };
6247
6244
 
6248
6245
  // src/mantine/blocks/components/bid/components/BidSurveyPanel.tsx
6249
- import React63, { useMemo as useMemo31, useEffect as useEffect27, useRef as useRef7, useCallback as useCallback26 } from "react";
6246
+ import React63, { useMemo as useMemo31, useEffect as useEffect27, useRef as useRef7, useCallback as useCallback27 } from "react";
6250
6247
  import { Loader as Loader9, Stack as Stack45, Text as Text44 } from "@mantine/core";
6251
6248
  import { Survey as Survey4 } from "@ixo/surveys";
6252
6249
 
6253
6250
  // src/mantine/blocks/components/bid/hooks/useBidSurvey.ts
6254
- import { useState as useState28, useEffect as useEffect26, useMemo as useMemo30, useCallback as useCallback25 } from "react";
6251
+ import { useState as useState28, useEffect as useEffect26, useMemo as useMemo30, useCallback as useCallback26 } from "react";
6255
6252
  import { SurveyModel as SurveyModel4 } from "@ixo/surveys";
6256
6253
  function useBidSurvey(deedId, collectionId, role, onSubmitComplete, execution, executeHookedActions) {
6257
6254
  const handlers = useBlocknoteHandlers();
@@ -6288,7 +6285,7 @@ function useBidSurvey(deedId, collectionId, role, onSubmitComplete, execution, e
6288
6285
  model.questionsOnPageMode = "singlePage";
6289
6286
  return model;
6290
6287
  }, [surveyJson]);
6291
- const handleSurveyComplete = useCallback25(
6288
+ const handleSurveyComplete = useCallback26(
6292
6289
  async (sender) => {
6293
6290
  const surveyData = sender.data;
6294
6291
  const submissionProps = {
@@ -6392,7 +6389,7 @@ var BidSurveyPanel = ({ editor, block, deedId, collectionId, role, onSubmitCompl
6392
6389
  useEffect27(() => {
6393
6390
  handleSurveyCompleteRef.current = handleSurveyComplete;
6394
6391
  }, [handleSurveyComplete]);
6395
- const stableHandleSurveyComplete = useCallback26((sender) => {
6392
+ const stableHandleSurveyComplete = useCallback27((sender) => {
6396
6393
  handleSurveyCompleteRef.current(sender);
6397
6394
  }, []);
6398
6395
  const surveyContainerStyle = useMemo31(
@@ -6580,7 +6577,7 @@ import React67, { useMemo as useMemo35, useEffect as useEffect29, useRef as useR
6580
6577
  import { Group as Group22, Stack as Stack49, Text as Text48 } from "@mantine/core";
6581
6578
 
6582
6579
  // src/mantine/blocks/evaluator/flow/ClaimsList.tsx
6583
- import React66, { useState as useState29, useEffect as useEffect28, useCallback as useCallback27, useMemo as useMemo34 } from "react";
6580
+ import React66, { useState as useState29, useEffect as useEffect28, useCallback as useCallback28, useMemo as useMemo34 } from "react";
6584
6581
  import {
6585
6582
  Paper as Paper6,
6586
6583
  CloseButton,
@@ -6910,7 +6907,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
6910
6907
  const [activeTab, setActiveTab] = useState29("submission");
6911
6908
  const [selectedDenom, setSelectedDenom] = useState29(USDC_DENOM3);
6912
6909
  const [paymentAmount, setPaymentAmount] = useState29("");
6913
- const buildPaymentCoin = useCallback27(() => {
6910
+ const buildPaymentCoin = useCallback28(() => {
6914
6911
  if (!selectedDenom || paymentAmount === "" || Number(paymentAmount) <= 0) {
6915
6912
  return void 0;
6916
6913
  }
@@ -6919,7 +6916,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
6919
6916
  amount: (Number(paymentAmount) * Math.pow(10, DECIMALS3)).toString()
6920
6917
  };
6921
6918
  }, [selectedDenom, paymentAmount]);
6922
- const fetchClaims = useCallback27(async () => {
6919
+ const fetchClaims = useCallback28(async () => {
6923
6920
  try {
6924
6921
  setLoading(true);
6925
6922
  setError(null);
@@ -6937,7 +6934,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
6937
6934
  useEffect28(() => {
6938
6935
  fetchClaims();
6939
6936
  }, [fetchClaims]);
6940
- const fetchClaimAndSurvey = useCallback27(
6937
+ const fetchClaimAndSurvey = useCallback28(
6941
6938
  async (claim) => {
6942
6939
  try {
6943
6940
  setSurveyLoading(true);
@@ -6984,7 +6981,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
6984
6981
  },
6985
6982
  [collectionId, deedId]
6986
6983
  );
6987
- const handleViewClaim = useCallback27(
6984
+ const handleViewClaim = useCallback28(
6988
6985
  (claim) => {
6989
6986
  setSelectedClaim(claim);
6990
6987
  fetchClaimAndSurvey(claim);
@@ -6992,7 +6989,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
6992
6989
  },
6993
6990
  [fetchClaimAndSurvey]
6994
6991
  );
6995
- const handleBackToList = useCallback27(() => {
6992
+ const handleBackToList = useCallback28(() => {
6996
6993
  setViewMode("list");
6997
6994
  setSelectedClaim(null);
6998
6995
  setClaimData(null);
@@ -7029,7 +7026,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
7029
7026
  }),
7030
7027
  []
7031
7028
  );
7032
- const handleApprove = useCallback27(async () => {
7029
+ const handleApprove = useCallback28(async () => {
7033
7030
  if (!selectedClaim) return;
7034
7031
  try {
7035
7032
  setEvaluating(true);
@@ -7122,7 +7119,7 @@ var ClaimsList = ({ collectionId, collectionName, deedId, adminAddress, onEvalua
7122
7119
  setEvaluating(false);
7123
7120
  }
7124
7121
  }, [selectedClaim, handlers, deedId, collectionId, adminAddress, evaluationResult, handleBackToList, onEvaluationComplete, editor, buildPaymentCoin]);
7125
- const handleReject = useCallback27(async () => {
7122
+ const handleReject = useCallback28(async () => {
7126
7123
  if (!selectedClaim) return;
7127
7124
  try {
7128
7125
  setEvaluating(true);
@@ -7635,7 +7632,7 @@ var ClaimsEvaluation = ({ collectionId, adminAddress, deedId, claim, onRefresh }
7635
7632
  const [evaluating, setEvaluating] = useState30(false);
7636
7633
  const [rubricData] = useState30(null);
7637
7634
  const [evaluationLoading] = useState30(false);
7638
- const buildPaymentCoin = useCallback28(() => {
7635
+ const buildPaymentCoin = useCallback29(() => {
7639
7636
  if (!selectedDenom || paymentAmount === "" || Number(paymentAmount) <= 0) {
7640
7637
  return void 0;
7641
7638
  }
@@ -7644,7 +7641,7 @@ var ClaimsEvaluation = ({ collectionId, adminAddress, deedId, claim, onRefresh }
7644
7641
  amount: (Number(paymentAmount) * Math.pow(10, DECIMALS)).toString()
7645
7642
  };
7646
7643
  }, [selectedDenom, paymentAmount]);
7647
- const handleApprove = useCallback28(async () => {
7644
+ const handleApprove = useCallback29(async () => {
7648
7645
  if (!claim) return;
7649
7646
  try {
7650
7647
  setEvaluating(true);
@@ -7736,7 +7733,7 @@ var ClaimsEvaluation = ({ collectionId, adminAddress, deedId, claim, onRefresh }
7736
7733
  setEvaluating(false);
7737
7734
  }
7738
7735
  }, [claim, handlers, deedId, collectionId, adminAddress, evaluationResult, onRefresh, editor, buildPaymentCoin]);
7739
- const handleReject = useCallback28(async () => {
7736
+ const handleReject = useCallback29(async () => {
7740
7737
  if (!claim) return;
7741
7738
  try {
7742
7739
  setEvaluating(true);
@@ -8589,7 +8586,7 @@ var ListFlowView = ({ block, editor }) => {
8589
8586
  }
8590
8587
  return {};
8591
8588
  }, [block.props.listConfig]);
8592
- const handlePanelClose = useCallback29(() => {
8589
+ const handlePanelClose = useCallback30(() => {
8593
8590
  setSelectedIds(/* @__PURE__ */ new Set());
8594
8591
  }, []);
8595
8592
  const fetchDataRef = useRef9(null);
@@ -8622,13 +8619,13 @@ var ListFlowView = ({ block, editor }) => {
8622
8619
  setSelectedIds(new Set(lastSelected ? [lastSelected] : []));
8623
8620
  }
8624
8621
  }, [isMultiSelect, selectedIds]);
8625
- const isItemChecked = useCallback29(
8622
+ const isItemChecked = useCallback30(
8626
8623
  (id) => {
8627
8624
  return selectedIds.has(id);
8628
8625
  },
8629
8626
  [selectedIds]
8630
8627
  );
8631
- const onItemCheck = useCallback29(
8628
+ const onItemCheck = useCallback30(
8632
8629
  (id, checked) => {
8633
8630
  setSelectedIds((prev) => {
8634
8631
  const nextSelectedIds = new Set(prev);
@@ -8655,7 +8652,7 @@ var ListFlowView = ({ block, editor }) => {
8655
8652
  },
8656
8653
  [isMultiSelect]
8657
8654
  );
8658
- const handleSearchChange = useCallback29(
8655
+ const handleSearchChange = useCallback30(
8659
8656
  (value) => {
8660
8657
  setRuntimeSearchValue(value || null);
8661
8658
  setPage(1);
@@ -8719,7 +8716,7 @@ var ListFlowView = ({ block, editor }) => {
8719
8716
  });
8720
8717
  };
8721
8718
  const daoRoleFilter = listType === "daos" && (listFilterConfig?.key === "isOwner" || listFilterConfig?.key === "isController") ? listFilterConfig.key : void 0;
8722
- const fetchData = useCallback29(async () => {
8719
+ const fetchData = useCallback30(async () => {
8723
8720
  const currentHandlers = handlersRef.current;
8724
8721
  if (!currentHandlers || !listType) return;
8725
8722
  const seq = ++fetchSeqRef.current;
@@ -9081,7 +9078,7 @@ import React92 from "react";
9081
9078
  import React87, { useMemo as useMemo41 } from "react";
9082
9079
 
9083
9080
  // src/mantine/blocks/proposal/template/TemplateConfig.tsx
9084
- import React86, { useCallback as useCallback31 } from "react";
9081
+ import React86, { useCallback as useCallback32 } from "react";
9085
9082
  import { IconSettings as IconSettings6, IconBolt as IconBolt3, IconCheck as IconCheck4, IconShieldCheck as IconShieldCheck6, IconClock as IconClock5 } from "@tabler/icons-react";
9086
9083
 
9087
9084
  // src/mantine/blocks/proposal/template/GeneralTab.tsx
@@ -9200,7 +9197,7 @@ var GeneralTab4 = ({ title, description, coreAddress, onTitleChange, onDescripti
9200
9197
  };
9201
9198
 
9202
9199
  // src/mantine/blocks/proposal/template/ActionsTab.tsx
9203
- import React84, { useCallback as useCallback30, useEffect as useEffect35, useState as useState37 } from "react";
9200
+ import React84, { useCallback as useCallback31, useEffect as useEffect35, useState as useState37 } from "react";
9204
9201
  import { Card as Card5, Stack as Stack61 } from "@mantine/core";
9205
9202
  var ActionsTab2 = ({ actions, onActionsChange }) => {
9206
9203
  const [isEditorVisible, setIsEditorVisible] = useState37(false);
@@ -9220,18 +9217,18 @@ var ActionsTab2 = ({ actions, onActionsChange }) => {
9220
9217
  setIsEditorVisible(true);
9221
9218
  }
9222
9219
  }, [currentActions.length, isEditorVisible]);
9223
- const handleEditAction = useCallback30((index) => {
9220
+ const handleEditAction = useCallback31((index) => {
9224
9221
  setEditingIndex(index);
9225
9222
  setIsEditorVisible(true);
9226
9223
  }, []);
9227
- const handleRemoveAction = useCallback30(
9224
+ const handleRemoveAction = useCallback31(
9228
9225
  (index) => {
9229
9226
  const newActions = currentActions.filter((_, i) => i !== index);
9230
9227
  onActionsChange(newActions);
9231
9228
  },
9232
9229
  [currentActions, onActionsChange]
9233
9230
  );
9234
- const handleSaveAction = useCallback30(
9231
+ const handleSaveAction = useCallback31(
9235
9232
  (action) => {
9236
9233
  let newActions;
9237
9234
  if (editingIndex !== null) {
@@ -9245,7 +9242,7 @@ var ActionsTab2 = ({ actions, onActionsChange }) => {
9245
9242
  },
9246
9243
  [editingIndex, currentActions, onActionsChange]
9247
9244
  );
9248
- const handleCancelEditor = useCallback30(() => {
9245
+ const handleCancelEditor = useCallback31(() => {
9249
9246
  setIsEditorVisible(false);
9250
9247
  setEditingIndex(null);
9251
9248
  }, []);
@@ -9276,7 +9273,7 @@ var VoteTab = ({ voteTitle, voteSubtitle, voteIcon, onVoteTitleChange, onVoteSub
9276
9273
  var TemplateConfig4 = ({ editor, block: blockProp }) => {
9277
9274
  const { closePanel } = usePanelStore();
9278
9275
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
9279
- const updateProp = useCallback31((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
9276
+ const updateProp = useCallback32((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
9280
9277
  const props = block.props;
9281
9278
  const tabs = [
9282
9279
  {
@@ -9414,7 +9411,7 @@ var OnChainProposalCard = ({
9414
9411
  };
9415
9412
 
9416
9413
  // src/mantine/blocks/proposal/flow/FlowConfig.tsx
9417
- import React90, { useCallback as useCallback32, useState as useState41, useEffect as useEffect38 } from "react";
9414
+ import React90, { useCallback as useCallback33, useState as useState41, useEffect as useEffect38 } from "react";
9418
9415
  import { Stack as Stack66, Button as Button13, Text as Text64, Card as Card8, Loader as Loader19, SegmentedControl as SegmentedControl5 } from "@mantine/core";
9419
9416
  import { IconPlus as IconPlus2, IconBolt as IconBolt4, IconCheck as IconCheck5 } from "@tabler/icons-react";
9420
9417
 
@@ -9898,7 +9895,7 @@ var FlowConfig2 = ({ editor, block }) => {
9898
9895
  });
9899
9896
  const isProposalCreated = !!proposalId;
9900
9897
  const voteLogic = useVoteBusinessLogic({ block });
9901
- const updateProp = useCallback32(
9898
+ const updateProp = useCallback33(
9902
9899
  (key, value) => {
9903
9900
  editor.updateBlock(block, {
9904
9901
  props: {
@@ -10034,7 +10031,7 @@ var FlowConfig2 = ({ editor, block }) => {
10034
10031
  disabled: isProposalCreated
10035
10032
  }
10036
10033
  ), errors.general && /* @__PURE__ */ React90.createElement(Text64, { size: "sm", c: "red" }, errors.general), isProposalCreated && /* @__PURE__ */ React90.createElement(Card8, { padding: "md", radius: "md", withBorder: true, style: { borderColor: "var(--mantine-color-green-6)" } }, /* @__PURE__ */ React90.createElement(Text64, { fw: 500, size: "sm", c: "green" }, "Proposal Created Successfully"), /* @__PURE__ */ React90.createElement(Text64, { size: "sm", c: "dimmed" }, "Your proposal has been created and is now open for voting.")), /* @__PURE__ */ React90.createElement(Button13, { fullWidth: true, onClick: handleCreateProposal, disabled: isProposalCreated, loading: isCreating }, isProposalCreated ? "Proposal Created" : "Create Proposal"));
10037
- const handleActionsChange = useCallback32(
10034
+ const handleActionsChange = useCallback33(
10038
10035
  (newActions) => {
10039
10036
  updateProp("actions", JSON.stringify(newActions));
10040
10037
  },
@@ -10181,12 +10178,12 @@ var ProposalBlockSpec = createReactBlockSpec5(
10181
10178
  );
10182
10179
 
10183
10180
  // src/mantine/components/EvaluationTab.tsx
10184
- import React94, { useCallback as useCallback33 } from "react";
10181
+ import React94, { useCallback as useCallback34 } from "react";
10185
10182
  import { Stack as Stack67, TextInput as TextInput3, Text as Text65 } from "@mantine/core";
10186
10183
  var EvaluationTab = ({ editor, block: blockProp }) => {
10187
10184
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
10188
10185
  const linkedClaimCollectionId = block.props.linkedClaimCollectionId || "";
10189
- const updateProps = useCallback33(
10186
+ const updateProps = useCallback34(
10190
10187
  (updates) => {
10191
10188
  editor.updateBlock(readLiveBlock(), { props: { ...updates } });
10192
10189
  },
@@ -10215,7 +10212,7 @@ import React100 from "react";
10215
10212
  import React98, { useMemo as useMemo44 } from "react";
10216
10213
 
10217
10214
  // src/mantine/blocks/apiRequest/template/TemplateConfig.tsx
10218
- import React97, { useCallback as useCallback34, useMemo as useMemo43 } from "react";
10215
+ import React97, { useCallback as useCallback35, useMemo as useMemo43 } from "react";
10219
10216
  import { IconSettings as IconSettings7, IconCode as IconCode2, IconShieldCheck as IconShieldCheck7, IconUser as IconUser7, IconChecklist as IconChecklist5, IconClock as IconClock6 } from "@tabler/icons-react";
10220
10217
 
10221
10218
  // src/mantine/blocks/apiRequest/template/GeneralTab.tsx
@@ -10471,25 +10468,25 @@ var ResponseSchemaTab = ({ schema, onSchemaChange, blockId }) => {
10471
10468
  var TemplateConfig5 = ({ editor, block: blockProp }) => {
10472
10469
  const { closePanel } = usePanelStore();
10473
10470
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
10474
- const updateProp = useCallback34(
10471
+ const updateProp = useCallback35(
10475
10472
  (key, value) => {
10476
10473
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
10477
10474
  },
10478
10475
  [editor, readLiveBlock]
10479
10476
  );
10480
- const handleHeadersChange = useCallback34(
10477
+ const handleHeadersChange = useCallback35(
10481
10478
  (headers) => {
10482
10479
  updateProp("headers", JSON.stringify(headers));
10483
10480
  },
10484
10481
  [updateProp]
10485
10482
  );
10486
- const handleBodyChange = useCallback34(
10483
+ const handleBodyChange = useCallback35(
10487
10484
  (body) => {
10488
10485
  updateProp("body", JSON.stringify(body));
10489
10486
  },
10490
10487
  [updateProp]
10491
10488
  );
10492
- const handleSchemaChange = useCallback34(
10489
+ const handleSchemaChange = useCallback35(
10493
10490
  (schema) => {
10494
10491
  updateProp("responseSchema", JSON.stringify(schema));
10495
10492
  },
@@ -10953,7 +10950,7 @@ import React104 from "react";
10953
10950
  import { createReactBlockSpec as createReactBlockSpec7 } from "@blocknote/react";
10954
10951
 
10955
10952
  // src/mantine/blocks/dynamicList/DynamicListBlock.tsx
10956
- import React103, { useMemo as useMemo47, useState as useState45, useCallback as useCallback35, useEffect as useEffect40, useRef as useRef10 } from "react";
10953
+ import React103, { useMemo as useMemo47, useState as useState45, useCallback as useCallback36, useEffect as useEffect40, useRef as useRef10 } from "react";
10957
10954
  import { Box as Box32, Stack as Stack73, Text as Text71, Paper as Paper10, Group as Group34, Button as Button17, ActionIcon as ActionIcon17, Tooltip as Tooltip10, Code as Code4, Flex as Flex27, Collapse as Collapse5, Title as Title6, Badge as Badge14, TextInput as TextInput4, CloseButton as CloseButton3, Select as Select2, Menu as Menu2 } from "@mantine/core";
10958
10955
  import { useDisclosure as useDisclosure5 } from "@mantine/hooks";
10959
10956
  import {
@@ -11189,7 +11186,7 @@ function DynamicListBlock({ block, editor }) {
11189
11186
  type: col.type || "string"
11190
11187
  }));
11191
11188
  }, [parsedColumns, rawData]);
11192
- const sortData = useCallback35((data, config) => {
11189
+ const sortData = useCallback36((data, config) => {
11193
11190
  if (!config) return data;
11194
11191
  const { key, direction } = config;
11195
11192
  const dir = direction === "asc" ? 1 : -1;
@@ -11223,11 +11220,11 @@ function DynamicListBlock({ block, editor }) {
11223
11220
  setPage(1);
11224
11221
  }
11225
11222
  }, [totalPages, page]);
11226
- const handlePanelClose = useCallback35(() => {
11223
+ const handlePanelClose = useCallback36(() => {
11227
11224
  setSelectedIds(/* @__PURE__ */ new Set());
11228
11225
  setSelectedItem(null);
11229
11226
  }, []);
11230
- const handlePositionChange = useCallback35(
11227
+ const handlePositionChange = useCallback36(
11231
11228
  (columnKey, newPosition) => {
11232
11229
  const targetPosition = newPosition === "none" || !newPosition ? void 0 : newPosition;
11233
11230
  const newColumns = parsedColumns.map((col) => {
@@ -11284,7 +11281,7 @@ function DynamicListBlock({ block, editor }) {
11284
11281
  });
11285
11282
  return grouped;
11286
11283
  }, [parsedColumns]);
11287
- const getRowId = useCallback35(
11284
+ const getRowId = useCallback36(
11288
11285
  (row, index) => {
11289
11286
  if (row.id) return String(row.id);
11290
11287
  if (row.did) return String(row.did);
@@ -11296,15 +11293,15 @@ function DynamicListBlock({ block, editor }) {
11296
11293
  },
11297
11294
  [parsedColumns]
11298
11295
  );
11299
- const findItemById = useCallback35(
11296
+ const findItemById = useCallback36(
11300
11297
  (id) => {
11301
11298
  if (!allData) return null;
11302
11299
  return allData.find((row, index) => getRowId(row, index) === id) || null;
11303
11300
  },
11304
11301
  [allData, getRowId]
11305
11302
  );
11306
- const isItemChecked = useCallback35((id) => selectedIds.has(id), [selectedIds]);
11307
- const onItemCheck = useCallback35(
11303
+ const isItemChecked = useCallback36((id) => selectedIds.has(id), [selectedIds]);
11304
+ const onItemCheck = useCallback36(
11308
11305
  (id, checked) => {
11309
11306
  if (!isMultiSelect) {
11310
11307
  if (checked) {
@@ -11371,7 +11368,7 @@ function DynamicListBlock({ block, editor }) {
11371
11368
  const handleUseSnapshot = () => {
11372
11369
  setUseLiveMode(false);
11373
11370
  };
11374
- const handleSearchToggle = useCallback35(() => {
11371
+ const handleSearchToggle = useCallback36(() => {
11375
11372
  setShowSearch((prev) => {
11376
11373
  const next = !prev;
11377
11374
  if (next) {
@@ -11651,12 +11648,12 @@ var DynamicListBlockSpec = createReactBlockSpec7(
11651
11648
  );
11652
11649
 
11653
11650
  // src/mantine/components/HookedActionsTab/HookedActionsTab.tsx
11654
- import React106, { useCallback as useCallback37, useMemo as useMemo48, useEffect as useEffect42, useState as useState47 } from "react";
11651
+ import React106, { useCallback as useCallback38, useMemo as useMemo48, useEffect as useEffect42, useState as useState47 } from "react";
11655
11652
  import { Stack as Stack75, Text as Text73, Alert as Alert16, Accordion as Accordion4, Group as Group36, Badge as Badge16, Menu as Menu3, Button as Button18 } from "@mantine/core";
11656
11653
  import { IconPlus as IconPlus5, IconMail as IconMail4, IconLink as IconLink3 } from "@tabler/icons-react";
11657
11654
 
11658
11655
  // src/mantine/components/HookedActionsTab/ActionInstanceCard.tsx
11659
- import React105, { useCallback as useCallback36, useState as useState46, useEffect as useEffect41 } from "react";
11656
+ import React105, { useCallback as useCallback37, useState as useState46, useEffect as useEffect41 } from "react";
11660
11657
  import { Card as Card9, Stack as Stack74, Group as Group35, Text as Text72, ActionIcon as ActionIcon18, Switch as Switch4, Badge as Badge15, Divider as Divider11, Loader as Loader21 } from "@mantine/core";
11661
11658
  import { IconTrash as IconTrash4, IconMail as IconMail3, IconLink as IconLink2 } from "@tabler/icons-react";
11662
11659
  var getActionIcon = (type) => {
@@ -11707,7 +11704,7 @@ var ActionInstanceCard = ({ instance, actionType, payloadFields, availableBlocks
11707
11704
  setTemplateVariables([]);
11708
11705
  }
11709
11706
  }, [instance.type, instance.config.templateName, handlers.getEmailTemplate]);
11710
- const handleConfigChange = useCallback36(
11707
+ const handleConfigChange = useCallback37(
11711
11708
  (key, value) => {
11712
11709
  onUpdate({
11713
11710
  config: { ...instance.config, [key]: value }
@@ -11715,7 +11712,7 @@ var ActionInstanceCard = ({ instance, actionType, payloadFields, availableBlocks
11715
11712
  },
11716
11713
  [instance.config, onUpdate]
11717
11714
  );
11718
- const handleVariableMappingChange = useCallback36(
11715
+ const handleVariableMappingChange = useCallback37(
11719
11716
  (variableName, payloadPath) => {
11720
11717
  onUpdate({
11721
11718
  variableMappings: { ...instance.variableMappings, [variableName]: payloadPath }
@@ -11934,13 +11931,13 @@ var HookedActionsTab = ({ editor, block, blockActions, hookedActions, onHookedAc
11934
11931
  title: docBlock.props?.title || docBlock.type
11935
11932
  }));
11936
11933
  }, [editor?.document, block.id]);
11937
- const updateConfig = useCallback37(
11934
+ const updateConfig = useCallback38(
11938
11935
  (newConfig) => {
11939
11936
  onHookedActionsChange(stringifyHookedActionsConfig(newConfig));
11940
11937
  },
11941
11938
  [onHookedActionsChange]
11942
11939
  );
11943
- const handleAddAction = useCallback37(
11940
+ const handleAddAction = useCallback38(
11944
11941
  (actionId, actionType) => {
11945
11942
  const newInstance = createHookedActionInstance(actionType);
11946
11943
  const existingActions = config[actionId] || [];
@@ -11951,7 +11948,7 @@ var HookedActionsTab = ({ editor, block, blockActions, hookedActions, onHookedAc
11951
11948
  },
11952
11949
  [config, updateConfig]
11953
11950
  );
11954
- const handleRemoveAction = useCallback37(
11951
+ const handleRemoveAction = useCallback38(
11955
11952
  (actionId, instanceId) => {
11956
11953
  const existingActions = config[actionId] || [];
11957
11954
  const newActions = existingActions.filter((a) => a.id !== instanceId);
@@ -11962,7 +11959,7 @@ var HookedActionsTab = ({ editor, block, blockActions, hookedActions, onHookedAc
11962
11959
  },
11963
11960
  [config, updateConfig]
11964
11961
  );
11965
- const handleUpdateAction = useCallback37(
11962
+ const handleUpdateAction = useCallback38(
11966
11963
  (actionId, instanceId, updates) => {
11967
11964
  const existingActions = config[actionId] || [];
11968
11965
  const newActions = existingActions.map((a) => a.id === instanceId ? { ...a, ...updates } : a);
@@ -12121,7 +12118,7 @@ var HookedActionsTab = ({ editor, block, blockActions, hookedActions, onHookedAc
12121
12118
  };
12122
12119
 
12123
12120
  // src/mantine/blocks/enumChecklist/EnumChecklistBlock.tsx
12124
- import React113, { useState as useState49, useEffect as useEffect43, useMemo as useMemo49, useCallback as useCallback38 } from "react";
12121
+ import React113, { useState as useState49, useEffect as useEffect43, useMemo as useMemo49, useCallback as useCallback39 } from "react";
12125
12122
  import { createReactBlockSpec as createReactBlockSpec8 } from "@blocknote/react";
12126
12123
  import { Stack as Stack81, Text as Text79, Button as Button23, ActionIcon as ActionIcon19, Center as Center8, Flex as Flex29 } from "@mantine/core";
12127
12124
 
@@ -12522,13 +12519,13 @@ var EnumChecklistBlockContent = ({ block, editor }) => {
12522
12519
  });
12523
12520
  }
12524
12521
  }, [listConfig?.selection_mode, selectedIds]);
12525
- const isItemChecked = useCallback38(
12522
+ const isItemChecked = useCallback39(
12526
12523
  (id) => {
12527
12524
  return selectedIds.has(id);
12528
12525
  },
12529
12526
  [selectedIds]
12530
12527
  );
12531
- const onItemCheck = useCallback38(
12528
+ const onItemCheck = useCallback39(
12532
12529
  (id, checked) => {
12533
12530
  const currentSelectedIds = Array.from(selectedIds);
12534
12531
  let newSelectedIds;
@@ -12632,7 +12629,7 @@ import React118 from "react";
12632
12629
  import React116, { useMemo as useMemo50 } from "react";
12633
12630
 
12634
12631
  // src/mantine/blocks/notify/template/TemplateConfig.tsx
12635
- import React115, { useCallback as useCallback39 } from "react";
12632
+ import React115, { useCallback as useCallback40 } from "react";
12636
12633
  import { IconSettings as IconSettings9 } from "@tabler/icons-react";
12637
12634
 
12638
12635
  // src/mantine/blocks/notify/template/GeneralTab.tsx
@@ -12855,25 +12852,25 @@ var GeneralTab6 = ({
12855
12852
  var TemplateConfig6 = ({ editor, block: blockProp }) => {
12856
12853
  const { closePanel } = usePanelStore();
12857
12854
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
12858
- const updateProp = useCallback39(
12855
+ const updateProp = useCallback40(
12859
12856
  (key, value) => {
12860
12857
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
12861
12858
  },
12862
12859
  [editor, readLiveBlock]
12863
12860
  );
12864
- const handleToChange = useCallback39(
12861
+ const handleToChange = useCallback40(
12865
12862
  (to) => {
12866
12863
  updateProp("to", JSON.stringify(to));
12867
12864
  },
12868
12865
  [updateProp]
12869
12866
  );
12870
- const handleCcChange = useCallback39(
12867
+ const handleCcChange = useCallback40(
12871
12868
  (cc) => {
12872
12869
  updateProp("cc", JSON.stringify(cc));
12873
12870
  },
12874
12871
  [updateProp]
12875
12872
  );
12876
- const handleBccChange = useCallback39(
12873
+ const handleBccChange = useCallback40(
12877
12874
  (bcc) => {
12878
12875
  updateProp("bcc", JSON.stringify(bcc));
12879
12876
  },
@@ -13186,11 +13183,11 @@ import React122, { useMemo as useMemo52 } from "react";
13186
13183
  import { Group as Group44, Stack as Stack85, Text as Text83 } from "@mantine/core";
13187
13184
 
13188
13185
  // src/mantine/blocks/claim/template/TemplateConfig.tsx
13189
- import React121, { useCallback as useCallback41 } from "react";
13186
+ import React121, { useCallback as useCallback42 } from "react";
13190
13187
  import { IconSettings as IconSettings10, IconShieldCheck as IconShieldCheck8, IconUser as IconUser10, IconContract as IconContract2, IconChecklist as IconChecklist6, IconClock as IconClock7 } from "@tabler/icons-react";
13191
13188
 
13192
13189
  // src/mantine/blocks/claim/template/GeneralTab.tsx
13193
- import React120, { useEffect as useEffect45, useState as useState52, useCallback as useCallback40, useMemo as useMemo51 } from "react";
13190
+ import React120, { useEffect as useEffect45, useState as useState52, useCallback as useCallback41, useMemo as useMemo51 } from "react";
13194
13191
  var GeneralTab7 = ({
13195
13192
  title,
13196
13193
  description,
@@ -13218,14 +13215,14 @@ var GeneralTab7 = ({
13218
13215
  return [];
13219
13216
  }
13220
13217
  }, [selectedCollections]);
13221
- const handleCollectionsChange = useCallback40(
13218
+ const handleCollectionsChange = useCallback41(
13222
13219
  (collections) => {
13223
13220
  const stringified = JSON.stringify(collections || []);
13224
13221
  onSelectedCollectionsChange(stringified);
13225
13222
  },
13226
13223
  [onSelectedCollectionsChange]
13227
13224
  );
13228
- const handleAdminAddressChange = useCallback40(
13225
+ const handleAdminAddressChange = useCallback41(
13229
13226
  (adminAddress2) => {
13230
13227
  if (onAdminAddressChange) {
13231
13228
  onAdminAddressChange(adminAddress2);
@@ -13275,7 +13272,7 @@ var GeneralTab7 = ({
13275
13272
  var TemplateConfig7 = ({ editor, block: blockProp }) => {
13276
13273
  const { closePanel } = usePanelStore();
13277
13274
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
13278
- const updateProp = useCallback41(
13275
+ const updateProp = useCallback42(
13279
13276
  (key, value) => {
13280
13277
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
13281
13278
  },
@@ -13346,7 +13343,7 @@ var ClaimTemplateView = ({ editor, block }) => {
13346
13343
  };
13347
13344
 
13348
13345
  // src/mantine/blocks/claim/flow/FlowView.tsx
13349
- import React123, { useMemo as useMemo53, useRef as useRef11, useEffect as useEffect46, useCallback as useCallback42 } from "react";
13346
+ import React123, { useMemo as useMemo53, useRef as useRef11, useEffect as useEffect46, useCallback as useCallback43 } from "react";
13350
13347
  import { Stack as Stack86, Text as Text84, Loader as Loader23, Center as Center9, Alert as Alert18 } from "@mantine/core";
13351
13348
  import { IconAlertCircle as IconAlertCircle10 } from "@tabler/icons-react";
13352
13349
  var ClaimFlowView = ({ editor, block }) => {
@@ -13433,7 +13430,7 @@ var ClaimFlowView = ({ editor, block }) => {
13433
13430
  useEffect46(() => {
13434
13431
  refetchRef.current = refetch;
13435
13432
  }, [refetch]);
13436
- const stableRefetch = useCallback42(() => {
13433
+ const stableRefetch = useCallback43(() => {
13437
13434
  refetchRef.current();
13438
13435
  }, []);
13439
13436
  if (!did) {
@@ -13518,7 +13515,7 @@ import React127 from "react";
13518
13515
  import { createReactBlockSpec as createReactBlockSpec11 } from "@blocknote/react";
13519
13516
 
13520
13517
  // src/mantine/blocks/visualization/VisualizationBlock.tsx
13521
- import React126, { useMemo as useMemo54, useCallback as useCallback43, useRef as useRef12, useState as useState53, useEffect as useEffect47 } from "react";
13518
+ import React126, { useMemo as useMemo54, useCallback as useCallback44, useRef as useRef12, useState as useState53, useEffect as useEffect47 } from "react";
13522
13519
  import { Box as Box36, Stack as Stack87, Text as Text85, Paper as Paper12, Group as Group45 } from "@mantine/core";
13523
13520
  function VisualizationBlock({ block, editor }) {
13524
13521
  const { visualizationRenderer } = useBlocknoteContext();
@@ -13555,7 +13552,7 @@ function VisualizationBlock({ block, editor }) {
13555
13552
  return {};
13556
13553
  }
13557
13554
  }, [preferences]);
13558
- const handlePreferencesChange = useCallback43(
13555
+ const handlePreferencesChange = useCallback44(
13559
13556
  (newPreferences) => {
13560
13557
  if (editor) {
13561
13558
  editor.updateBlock(block, {
@@ -13622,7 +13619,7 @@ import React130, { useMemo as useMemo55 } from "react";
13622
13619
  import { Badge as Badge19, Group as Group46, Stack as Stack88, Text as Text86 } from "@mantine/core";
13623
13620
 
13624
13621
  // src/mantine/blocks/domainCreator/template/TemplateConfig.tsx
13625
- import React129, { useCallback as useCallback44 } from "react";
13622
+ import React129, { useCallback as useCallback45 } from "react";
13626
13623
  import { IconSettings as IconSettings11, IconShieldCheck as IconShieldCheck9 } from "@tabler/icons-react";
13627
13624
 
13628
13625
  // src/mantine/blocks/domainCreator/template/GeneralTab.tsx
@@ -13679,7 +13676,7 @@ var GeneralTab8 = ({ title, description, icon: icon2, onTitleChange, onDescripti
13679
13676
  var TemplateConfig8 = ({ editor, block: blockProp }) => {
13680
13677
  const { closePanel } = usePanelStore();
13681
13678
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
13682
- const updateProp = useCallback44((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
13679
+ const updateProp = useCallback45((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
13683
13680
  const props = block.props;
13684
13681
  const tabs = [
13685
13682
  {
@@ -13713,12 +13710,12 @@ var DomainCreatorTemplateView = ({ editor, block }) => {
13713
13710
  };
13714
13711
 
13715
13712
  // src/mantine/blocks/domainCreator/flow/FlowView.tsx
13716
- import React132, { useCallback as useCallback46, useMemo as useMemo57, useState as useState56 } from "react";
13713
+ import React132, { useCallback as useCallback47, useMemo as useMemo57, useState as useState56 } from "react";
13717
13714
  import { ActionIcon as ActionIcon22, Badge as Badge20, Group as Group48, Stack as Stack90, Text as Text88, Tooltip as Tooltip12 } from "@mantine/core";
13718
13715
  import { IconChevronRight as IconChevronRight5, IconCheck as IconCheck8, IconAlertCircle as IconAlertCircle12 } from "@tabler/icons-react";
13719
13716
 
13720
13717
  // src/mantine/blocks/domainCreator/flow/DomainCreatorSurveyPanel.tsx
13721
- import React131, { useCallback as useCallback45, useEffect as useEffect49, useMemo as useMemo56, useRef as useRef13, useState as useState55 } from "react";
13718
+ import React131, { useCallback as useCallback46, useEffect as useEffect49, useMemo as useMemo56, useRef as useRef13, useState as useState55 } from "react";
13722
13719
  import { Alert as Alert19, Button as Button25, Group as Group47, Loader as Loader24, Stack as Stack89, Text as Text87 } from "@mantine/core";
13723
13720
  import { useDebouncedCallback } from "@mantine/hooks";
13724
13721
  import { IconAlertCircle as IconAlertCircle11, IconCheck as IconCheck7 } from "@tabler/icons-react";
@@ -13759,7 +13756,7 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
13759
13756
  model.questionsOnPageMode = "singlePage";
13760
13757
  return model;
13761
13758
  }, []);
13762
- const syncPropToSurvey = useCallback45(
13759
+ const syncPropToSurvey = useCallback46(
13763
13760
  (answersJson) => {
13764
13761
  if (!answersJson || answersJson === lastSyncedAnswers.current) return;
13765
13762
  try {
@@ -13829,7 +13826,7 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
13829
13826
  });
13830
13827
  }
13831
13828
  }, [editor, block]);
13832
- const processDomainCreation = useCallback45(
13829
+ const processDomainCreation = useCallback46(
13833
13830
  async (data) => {
13834
13831
  if (!handlers) {
13835
13832
  throw new Error("Handlers not available");
@@ -13907,7 +13904,7 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
13907
13904
  },
13908
13905
  [handlers, existingEntityDid, issuerDidOverride]
13909
13906
  );
13910
- const handleSurveyComplete = useCallback45(
13907
+ const handleSurveyComplete = useCallback46(
13911
13908
  async (sender) => {
13912
13909
  const data = sender.data || {};
13913
13910
  try {
@@ -13941,15 +13938,15 @@ var DomainCreatorSurveyPanel = ({ editor, block, onComplete, entityDid: existing
13941
13938
  surveyModel.onComplete.remove(handleSurveyComplete);
13942
13939
  };
13943
13940
  }, [handleSurveyComplete, surveyModel]);
13944
- const handleRetry = useCallback45(() => {
13941
+ const handleRetry = useCallback46(() => {
13945
13942
  setFlowStep("survey");
13946
13943
  setError(null);
13947
13944
  surveyModel.clear();
13948
13945
  }, [surveyModel]);
13949
- const handleClose = useCallback45(() => {
13946
+ const handleClose = useCallback46(() => {
13950
13947
  closePanel();
13951
13948
  }, [closePanel]);
13952
- const handleVisitEntity = useCallback45(() => {
13949
+ const handleVisitEntity = useCallback46(() => {
13953
13950
  if (createdEntityDid && createdEntityType && handlers?.redirectToEntityOverview) {
13954
13951
  handlers.redirectToEntityOverview(createdEntityDid, createdEntityType);
13955
13952
  }
@@ -13988,7 +13985,7 @@ var DomainCreatorFlowView = ({ editor, block }) => {
13988
13985
  const [submissionStatus, setSubmissionStatus] = useState56("idle");
13989
13986
  const lastSubmission = block.props.lastSubmission ? JSON.parse(block.props.lastSubmission) : null;
13990
13987
  const hasExistingSubmission = lastSubmission?.entityDid;
13991
- const handleComplete = useCallback46(
13988
+ const handleComplete = useCallback47(
13992
13989
  (data) => {
13993
13990
  editor.updateBlock(block, {
13994
13991
  props: {
@@ -14074,11 +14071,11 @@ import React138, { useMemo as useMemo60 } from "react";
14074
14071
  import { Badge as Badge22, Group as Group50, Stack as Stack93, Text as Text91 } from "@mantine/core";
14075
14072
 
14076
14073
  // src/mantine/blocks/email/template/TemplateConfig.tsx
14077
- import React137, { useCallback as useCallback49, useMemo as useMemo59 } from "react";
14074
+ import React137, { useCallback as useCallback50, useMemo as useMemo59 } from "react";
14078
14075
  import { IconSettings as IconSettings12, IconVariable, IconShieldCheck as IconShieldCheck10 } from "@tabler/icons-react";
14079
14076
 
14080
14077
  // src/mantine/blocks/email/template/GeneralTab.tsx
14081
- import React135, { useEffect as useEffect50, useState as useState57, useCallback as useCallback47, useRef as useRef14 } from "react";
14078
+ import React135, { useEffect as useEffect50, useState as useState57, useCallback as useCallback48, useRef as useRef14 } from "react";
14082
14079
  import { Divider as Divider13, Loader as Loader25, Select as Select3, Stack as Stack91, Text as Text89 } from "@mantine/core";
14083
14080
  var GeneralTab9 = ({ editor, blockId, getCurrentBlock, onTitleChange, onTemplateChange, onToChange }) => {
14084
14081
  const handlers = useBlocknoteHandlers();
@@ -14120,7 +14117,7 @@ var GeneralTab9 = ({ editor, blockId, getCurrentBlock, onTitleChange, onTemplate
14120
14117
  }
14121
14118
  loadTemplates();
14122
14119
  }, [handlers.listEmailTemplates]);
14123
- const handleTemplateSelect = useCallback47(
14120
+ const handleTemplateSelect = useCallback48(
14124
14121
  async (selectedTemplateName) => {
14125
14122
  if (!selectedTemplateName) {
14126
14123
  setLocalTemplateName("");
@@ -14209,7 +14206,7 @@ var GeneralTab9 = ({ editor, blockId, getCurrentBlock, onTitleChange, onTemplate
14209
14206
  };
14210
14207
 
14211
14208
  // src/mantine/blocks/email/template/VariablesTab.tsx
14212
- import React136, { useMemo as useMemo58, useCallback as useCallback48, useState as useState58, useEffect as useEffect51 } from "react";
14209
+ import React136, { useMemo as useMemo58, useCallback as useCallback49, useState as useState58, useEffect as useEffect51 } from "react";
14213
14210
  import { Alert as Alert20, Badge as Badge21, Divider as Divider14, Group as Group49, Stack as Stack92, Text as Text90 } from "@mantine/core";
14214
14211
  import { IconInfoCircle as IconInfoCircle4, IconCheck as IconCheck9 } from "@tabler/icons-react";
14215
14212
  var VariablesTab = ({ editor, blockId, getCurrentBlock, onVariablesChange }) => {
@@ -14239,7 +14236,7 @@ var VariablesTab = ({ editor, blockId, getCurrentBlock, onVariablesChange }) =>
14239
14236
  setLocalMapping({});
14240
14237
  }
14241
14238
  }, [getCurrentBlock]);
14242
- const handleVariableChange = useCallback48(
14239
+ const handleVariableChange = useCallback49(
14243
14240
  (variableName, value) => {
14244
14241
  const updated = { ...localMapping, [variableName]: value };
14245
14242
  setLocalMapping(updated);
@@ -14273,19 +14270,19 @@ var VariablesTab = ({ editor, blockId, getCurrentBlock, onVariablesChange }) =>
14273
14270
  var TemplateConfig9 = ({ editor, block: blockProp }) => {
14274
14271
  const { closePanel } = usePanelStore();
14275
14272
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
14276
- const updateProp = useCallback49(
14273
+ const updateProp = useCallback50(
14277
14274
  (key, value) => {
14278
14275
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
14279
14276
  },
14280
14277
  [editor, readLiveBlock]
14281
14278
  );
14282
- const handleTemplateChange = useCallback49(
14279
+ const handleTemplateChange = useCallback50(
14283
14280
  (updates) => {
14284
14281
  editor.updateBlock(readLiveBlock(), { props: { ...updates } });
14285
14282
  },
14286
14283
  [editor, readLiveBlock]
14287
14284
  );
14288
- const handleVariablesChange = useCallback49(
14285
+ const handleVariablesChange = useCallback50(
14289
14286
  (variables) => {
14290
14287
  updateProp("variables", variables);
14291
14288
  },
@@ -14358,11 +14355,11 @@ import { Group as Group51, Stack as Stack94, Text as Text92, ActionIcon as Actio
14358
14355
  import { IconSend as IconSend4, IconCheck as IconCheck10, IconX as IconX10, IconMail as IconMail5, IconUser as IconUser11 } from "@tabler/icons-react";
14359
14356
 
14360
14357
  // src/mantine/blocks/email/flow/hooks/useEmailActions.ts
14361
- import { useState as useState59, useCallback as useCallback50 } from "react";
14358
+ import { useState as useState59, useCallback as useCallback51 } from "react";
14362
14359
  function useEmailActions({ block, editor, updateRuntime }) {
14363
14360
  const handlers = useBlocknoteHandlers();
14364
14361
  const [loading, setLoading] = useState59(false);
14365
- const sendEmail = useCallback50(async () => {
14362
+ const sendEmail = useCallback51(async () => {
14366
14363
  if (!handlers.sendEmail) {
14367
14364
  updateRuntime({
14368
14365
  state: "failed",
@@ -14436,7 +14433,7 @@ function useEmailActions({ block, editor, updateRuntime }) {
14436
14433
  setLoading(false);
14437
14434
  }
14438
14435
  }, [block, editor, handlers, updateRuntime]);
14439
- const resetStatus = useCallback50(() => {
14436
+ const resetStatus = useCallback51(() => {
14440
14437
  updateRuntime({
14441
14438
  state: "idle",
14442
14439
  error: void 0,
@@ -14630,7 +14627,7 @@ import React147 from "react";
14630
14627
  import React144, { useMemo as useMemo63 } from "react";
14631
14628
 
14632
14629
  // src/mantine/blocks/protocolSelector/template/TemplateConfig.tsx
14633
- import React143, { useCallback as useCallback51 } from "react";
14630
+ import React143, { useCallback as useCallback52 } from "react";
14634
14631
  import { IconSettings as IconSettings13 } from "@tabler/icons-react";
14635
14632
 
14636
14633
  // src/mantine/blocks/protocolSelector/template/GeneralTab.tsx
@@ -14710,7 +14707,7 @@ var GeneralTab10 = ({ title, description, protocolDids, onTitleChange, onDescrip
14710
14707
  var TemplateConfig10 = ({ editor, block: blockProp }) => {
14711
14708
  const { closePanel } = usePanelStore();
14712
14709
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
14713
- const updateProp = useCallback51((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
14710
+ const updateProp = useCallback52((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
14714
14711
  const props = block.props;
14715
14712
  const tabs = [
14716
14713
  {
@@ -14772,7 +14769,7 @@ import { Badge as Badge24, Box as Box40, Group as Group54, Stack as Stack98, Tex
14772
14769
  import { IconCircleDashed as IconCircleDashed2, IconChecks as IconChecks3 } from "@tabler/icons-react";
14773
14770
 
14774
14771
  // src/mantine/blocks/protocolSelector/flow/ProtocolSelectionPanel.tsx
14775
- import React145, { useState as useState61, useEffect as useEffect53, useMemo as useMemo64, useCallback as useCallback52 } from "react";
14772
+ import React145, { useState as useState61, useEffect as useEffect53, useMemo as useMemo64, useCallback as useCallback53 } from "react";
14776
14773
  import { Stack as Stack97, Text as Text95, Box as Box39, Group as Group53, Loader as Loader27 } from "@mantine/core";
14777
14774
  var ProtocolSelectionPanel = ({ editor, block }) => {
14778
14775
  const { closePanel } = usePanelStore();
@@ -14854,7 +14851,7 @@ var ProtocolSelectionPanel = ({ editor, block }) => {
14854
14851
  }
14855
14852
  });
14856
14853
  }, [protocolDids, handlers]);
14857
- const handleSelectProtocol = useCallback52(
14854
+ const handleSelectProtocol = useCallback53(
14858
14855
  (protocol) => {
14859
14856
  editor.updateBlock(block, {
14860
14857
  props: {
@@ -15010,7 +15007,7 @@ import React151, { useMemo as useMemo66 } from "react";
15010
15007
  import { Badge as Badge25, Group as Group55, Stack as Stack99, Text as Text98 } from "@mantine/core";
15011
15008
 
15012
15009
  // src/mantine/blocks/form/template/TemplateConfig.tsx
15013
- import React150, { useCallback as useCallback53 } from "react";
15010
+ import React150, { useCallback as useCallback54 } from "react";
15014
15011
 
15015
15012
  // src/mantine/blocks/form/template/GeneralTab.tsx
15016
15013
  import React149, { useEffect as useEffect54, useState as useState62 } from "react";
@@ -15096,7 +15093,7 @@ import { IconSettings as IconSettings14 } from "@tabler/icons-react";
15096
15093
  var TemplateConfig11 = ({ editor, block: blockProp }) => {
15097
15094
  const { closePanel } = usePanelStore();
15098
15095
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
15099
- const updateProp = useCallback53(
15096
+ const updateProp = useCallback54(
15100
15097
  (key, value) => {
15101
15098
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
15102
15099
  },
@@ -15136,12 +15133,12 @@ var FormTemplateView = ({ editor, block }) => {
15136
15133
  };
15137
15134
 
15138
15135
  // src/mantine/blocks/form/flow/FlowView.tsx
15139
- import React153, { useMemo as useMemo68, useState as useState63, useCallback as useCallback55 } from "react";
15136
+ import React153, { useMemo as useMemo68, useState as useState63, useCallback as useCallback56 } from "react";
15140
15137
  import { ActionIcon as ActionIcon24, Badge as Badge26, Group as Group56, Stack as Stack100, Text as Text100, Tooltip as Tooltip15 } from "@mantine/core";
15141
15138
  import { IconChevronRight as IconChevronRight6 } from "@tabler/icons-react";
15142
15139
 
15143
15140
  // src/mantine/blocks/form/flow/FormPanel.tsx
15144
- import React152, { useCallback as useCallback54, useEffect as useEffect55, useMemo as useMemo67, useRef as useRef15 } from "react";
15141
+ import React152, { useCallback as useCallback55, useEffect as useEffect55, useMemo as useMemo67, useRef as useRef15 } from "react";
15145
15142
  import { Alert as Alert22, Text as Text99, useComputedColorScheme as useComputedColorScheme2 } from "@mantine/core";
15146
15143
  import { useDebouncedCallback as useDebouncedCallback2 } from "@mantine/hooks";
15147
15144
  import { IconAlertCircle as IconAlertCircle13 } from "@tabler/icons-react";
@@ -15187,7 +15184,7 @@ var FormPanel = ({ editor, block, onComplete }) => {
15187
15184
  model.completeText = "Complete";
15188
15185
  return model;
15189
15186
  }, [surveySchema, computedColorScheme]);
15190
- const syncPropToSurvey = useCallback54(
15187
+ const syncPropToSurvey = useCallback55(
15191
15188
  (answersJson) => {
15192
15189
  if (!surveyModel || !answersJson || answersJson === lastSyncedAnswers.current) return;
15193
15190
  try {
@@ -15233,7 +15230,7 @@ var FormPanel = ({ editor, block, onComplete }) => {
15233
15230
  surveyModel.onValueChanged.remove(handleValueChanged);
15234
15231
  };
15235
15232
  }, [surveyModel, syncSurveyToRuntime]);
15236
- const handleSurveyComplete = useCallback54(
15233
+ const handleSurveyComplete = useCallback55(
15237
15234
  (sender) => {
15238
15235
  const data = sender.data || {};
15239
15236
  const finalAnswersJson = JSON.stringify(data);
@@ -15254,7 +15251,7 @@ var FormPanel = ({ editor, block, onComplete }) => {
15254
15251
  surveyModel.onComplete.remove(handleSurveyComplete);
15255
15252
  };
15256
15253
  }, [handleSurveyComplete, surveyModel]);
15257
- const handleClose = useCallback54(() => {
15254
+ const handleClose = useCallback55(() => {
15258
15255
  closePanel();
15259
15256
  }, [closePanel]);
15260
15257
  if (!surveySchema) {
@@ -15281,7 +15278,7 @@ var FormFlowView = ({ editor, block }) => {
15281
15278
  const runtimeState = runtime.state;
15282
15279
  const status = runtimeState === "completed" ? "completed" : runtimeState === "running" ? "in_progress" : "pending";
15283
15280
  const isCompleted = status === "completed";
15284
- const handleComplete = useCallback55(() => {
15281
+ const handleComplete = useCallback56(() => {
15285
15282
  updateRuntime({
15286
15283
  state: "completed",
15287
15284
  executedAt: Date.now()
@@ -15357,7 +15354,7 @@ import React158, { useMemo as useMemo69 } from "react";
15357
15354
  import { Badge as Badge27, Group as Group57, Stack as Stack101, Text as Text101 } from "@mantine/core";
15358
15355
 
15359
15356
  // src/mantine/blocks/domainCreatorSign/template/TemplateConfig.tsx
15360
- import React157, { useCallback as useCallback56 } from "react";
15357
+ import React157, { useCallback as useCallback57 } from "react";
15361
15358
  import { IconSettings as IconSettings15, IconContract as IconContract3, IconClock as IconClock8 } from "@tabler/icons-react";
15362
15359
 
15363
15360
  // src/mantine/blocks/domainCreatorSign/template/GeneralTab.tsx
@@ -15414,7 +15411,7 @@ var GeneralTab12 = ({ title, description, icon: icon2, onTitleChange, onDescript
15414
15411
  var TemplateConfig12 = ({ editor, block: blockProp }) => {
15415
15412
  const { closePanel } = usePanelStore();
15416
15413
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
15417
- const updateProp = useCallback56((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
15414
+ const updateProp = useCallback57((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
15418
15415
  const props = block.props;
15419
15416
  const tabs = [
15420
15417
  {
@@ -15454,14 +15451,14 @@ var DomainCreatorSignTemplateView = ({ editor, block }) => {
15454
15451
  };
15455
15452
 
15456
15453
  // src/mantine/blocks/domainCreatorSign/flow/FlowView.tsx
15457
- import React161, { useCallback as useCallback58, useMemo as useMemo70, useEffect as useEffect57 } from "react";
15454
+ import React161, { useCallback as useCallback59, useMemo as useMemo70, useEffect as useEffect57 } from "react";
15458
15455
  import { ActionIcon as ActionIcon25, Badge as Badge29, Group as Group59, Stack as Stack104, Text as Text104, Tooltip as Tooltip17 } from "@mantine/core";
15459
15456
  import { IconChevronRight as IconChevronRight7 } from "@tabler/icons-react";
15460
15457
 
15461
15458
  // src/mantine/blocks/domainCreatorSign/flow/SignPanel.tsx
15462
15459
  import { Alert as Alert23, Button as Button27, Group as Group58, Loader as Loader28, Stack as Stack103, Text as Text103 } from "@mantine/core";
15463
15460
  import { IconAlertCircle as IconAlertCircle14, IconCheck as IconCheck11 } from "@tabler/icons-react";
15464
- import React160, { useCallback as useCallback57, useState as useState66 } from "react";
15461
+ import React160, { useCallback as useCallback58, useState as useState66 } from "react";
15465
15462
 
15466
15463
  // src/mantine/components/Base/BaseSigning.tsx
15467
15464
  import React159, { useState as useState65 } from "react";
@@ -15540,19 +15537,19 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
15540
15537
  const [flowStep, setFlowStep] = useState66(runtime.state === "completed" ? "success" : runtime.state === "failed" ? "error" : "ready");
15541
15538
  const [error, setError] = useState66(runtime.error?.message || null);
15542
15539
  const [createdEntityDid, setCreatedEntityDid] = useState66(runtime.output?.domain?.entityDid || null);
15543
- const getDomainCardData = useCallback57(() => {
15540
+ const getDomainCardData = useCallback58(() => {
15544
15541
  try {
15545
15542
  return JSON.parse(block.props.domainCardData || "{}");
15546
15543
  } catch {
15547
15544
  return null;
15548
15545
  }
15549
15546
  }, [block.props.domainCardData]);
15550
- const getDate100YearsFromNow = useCallback57(() => {
15547
+ const getDate100YearsFromNow = useCallback58(() => {
15551
15548
  const date = /* @__PURE__ */ new Date();
15552
15549
  date.setFullYear(date.getFullYear() + 100);
15553
15550
  return date.toISOString();
15554
15551
  }, []);
15555
- const processSignAndCreate = useCallback57(async () => {
15552
+ const processSignAndCreate = useCallback58(async () => {
15556
15553
  if (!handlers) {
15557
15554
  throw new Error("Handlers not available");
15558
15555
  }
@@ -15671,7 +15668,7 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
15671
15668
  groupTransactionHash
15672
15669
  };
15673
15670
  }, [handlers, getDomainCardData, block, editor, getDate100YearsFromNow]);
15674
- const handleSign = useCallback57(async () => {
15671
+ const handleSign = useCallback58(async () => {
15675
15672
  try {
15676
15673
  const result = await processSignAndCreate();
15677
15674
  setCreatedEntityDid(result.entityDid);
@@ -15685,7 +15682,7 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
15685
15682
  onError?.(errorMessage);
15686
15683
  }
15687
15684
  }, [processSignAndCreate, onComplete, onError]);
15688
- const handleRetry = useCallback57(() => {
15685
+ const handleRetry = useCallback58(() => {
15689
15686
  setFlowStep("ready");
15690
15687
  setError(null);
15691
15688
  updateRuntime({
@@ -15693,10 +15690,10 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
15693
15690
  error: void 0
15694
15691
  });
15695
15692
  }, [updateRuntime]);
15696
- const handleClose = useCallback57(() => {
15693
+ const handleClose = useCallback58(() => {
15697
15694
  closePanel();
15698
15695
  }, [closePanel]);
15699
- const handleVisitEntity = useCallback57(() => {
15696
+ const handleVisitEntity = useCallback58(() => {
15700
15697
  const entityType2 = block.props.entityType || "dao";
15701
15698
  if (createdEntityDid && handlers?.redirectToEntityOverview) {
15702
15699
  handlers.redirectToEntityOverview(createdEntityDid, entityType2);
@@ -15756,7 +15753,7 @@ var DomainCreatorSignFlowView = ({ editor, block }) => {
15756
15753
  updateRuntime({ state: "idle" });
15757
15754
  }
15758
15755
  }, [isDataReady, runtimeState, updateRuntime]);
15759
- const handleComplete = useCallback58(
15756
+ const handleComplete = useCallback59(
15760
15757
  (result) => {
15761
15758
  updateRuntime({
15762
15759
  state: "completed",
@@ -15769,7 +15766,7 @@ var DomainCreatorSignFlowView = ({ editor, block }) => {
15769
15766
  },
15770
15767
  [updateRuntime]
15771
15768
  );
15772
- const handleError = useCallback58(
15769
+ const handleError = useCallback59(
15773
15770
  (errorMessage) => {
15774
15771
  updateRuntime({
15775
15772
  state: "failed",
@@ -15906,7 +15903,7 @@ import React166, { useMemo as useMemo71 } from "react";
15906
15903
  import { Badge as Badge30, Group as Group60, Stack as Stack105, Text as Text105 } from "@mantine/core";
15907
15904
 
15908
15905
  // src/mantine/blocks/domainCardViewer/template/TemplateConfig.tsx
15909
- import React165, { useCallback as useCallback59 } from "react";
15906
+ import React165, { useCallback as useCallback60 } from "react";
15910
15907
 
15911
15908
  // src/mantine/blocks/domainCardViewer/template/GeneralTab.tsx
15912
15909
  import React164, { useEffect as useEffect58, useState as useState67 } from "react";
@@ -15963,7 +15960,7 @@ import { IconSettings as IconSettings16 } from "@tabler/icons-react";
15963
15960
  var TemplateConfig13 = ({ editor, block: blockProp }) => {
15964
15961
  const { closePanel } = usePanelStore();
15965
15962
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
15966
- const updateProp = useCallback59(
15963
+ const updateProp = useCallback60(
15967
15964
  (key, value) => {
15968
15965
  editor.updateBlock(readLiveBlock(), {
15969
15966
  props: {
@@ -16004,7 +16001,7 @@ var DomainCardViewerTemplateView = ({ editor, block }) => {
16004
16001
  };
16005
16002
 
16006
16003
  // src/mantine/blocks/domainCardViewer/flow/FlowView.tsx
16007
- import React168, { useMemo as useMemo73, useCallback as useCallback60, useEffect as useEffect59 } from "react";
16004
+ import React168, { useMemo as useMemo73, useCallback as useCallback61, useEffect as useEffect59 } from "react";
16008
16005
  import { ActionIcon as ActionIcon26, Badge as Badge31, Button as Button29, Group as Group61, Stack as Stack107, Text as Text107, Tooltip as Tooltip18 } from "@mantine/core";
16009
16006
  import { IconChevronRight as IconChevronRight8, IconLoader, IconTestPipe, IconTrash as IconTrash6 } from "@tabler/icons-react";
16010
16007
 
@@ -16329,7 +16326,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
16329
16326
  });
16330
16327
  }
16331
16328
  }, [isDataReady, status, editor, block]);
16332
- const handleApprove = useCallback60(() => {
16329
+ const handleApprove = useCallback61(() => {
16333
16330
  editor.updateBlock(block, {
16334
16331
  props: {
16335
16332
  ...block.props,
@@ -16340,7 +16337,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
16340
16337
  const panelId = `${DOMAIN_CARD_VIEWER_FLOW_PANEL_ID}-${block.id}`;
16341
16338
  const panelContent = useMemo73(() => /* @__PURE__ */ React168.createElement(ViewerPanel, { editor, block, onApprove: handleApprove }), [editor, block, handleApprove]);
16342
16339
  const { open } = usePanel(panelId, panelContent);
16343
- const handleInjectDummyData = useCallback60(
16340
+ const handleInjectDummyData = useCallback61(
16344
16341
  (e) => {
16345
16342
  e.stopPropagation();
16346
16343
  editor.updateBlock(block, {
@@ -16356,7 +16353,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
16356
16353
  },
16357
16354
  [editor, block]
16358
16355
  );
16359
- const handleSetLoading = useCallback60(
16356
+ const handleSetLoading = useCallback61(
16360
16357
  (e) => {
16361
16358
  e.stopPropagation();
16362
16359
  editor.updateBlock(block, {
@@ -16369,7 +16366,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
16369
16366
  },
16370
16367
  [editor, block]
16371
16368
  );
16372
- const handleClearData = useCallback60(
16369
+ const handleClearData = useCallback61(
16373
16370
  (e) => {
16374
16371
  e.stopPropagation();
16375
16372
  editor.updateBlock(block, {
@@ -16472,7 +16469,7 @@ import React173, { useMemo as useMemo74 } from "react";
16472
16469
  import { Badge as Badge32, Group as Group62, Stack as Stack109, Text as Text109 } from "@mantine/core";
16473
16470
 
16474
16471
  // src/mantine/blocks/governanceGroup/template/TemplateConfig.tsx
16475
- import React172, { useCallback as useCallback61 } from "react";
16472
+ import React172, { useCallback as useCallback62 } from "react";
16476
16473
  import { IconSettings as IconSettings17, IconBolt as IconBolt6, IconShieldCheck as IconShieldCheck11 } from "@tabler/icons-react";
16477
16474
 
16478
16475
  // src/mantine/blocks/governanceGroup/template/GeneralTab.tsx
@@ -17304,8 +17301,8 @@ var getSurveyForGroupType = (groupType) => {
17304
17301
  var TemplateConfig14 = ({ editor, block: blockProp }) => {
17305
17302
  const { closePanel } = usePanelStore();
17306
17303
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
17307
- const updateProp = useCallback61((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
17308
- const handleGroupTypeChange = useCallback61(
17304
+ const updateProp = useCallback62((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
17305
+ const handleGroupTypeChange = useCallback62(
17309
17306
  (groupType) => {
17310
17307
  const surveySchema = getSurveyForGroupType(groupType);
17311
17308
  editor.updateBlock(readLiveBlock(), { props: { groupType, surveySchema: JSON.stringify(surveySchema), answers: "" } });
@@ -17362,12 +17359,12 @@ var GovernanceGroupTemplateView = ({ editor, block }) => {
17362
17359
  };
17363
17360
 
17364
17361
  // src/mantine/blocks/governanceGroup/flow/FlowView.tsx
17365
- import React175, { useCallback as useCallback63, useEffect as useEffect62, useMemo as useMemo76, useRef as useRef17, useState as useState70 } from "react";
17362
+ import React175, { useCallback as useCallback64, useEffect as useEffect62, useMemo as useMemo76, useRef as useRef17, useState as useState70 } from "react";
17366
17363
  import { ActionIcon as ActionIcon27, Badge as Badge33, Group as Group64, Stack as Stack111, Text as Text111, Tooltip as Tooltip19 } from "@mantine/core";
17367
17364
  import { IconChevronRight as IconChevronRight9 } from "@tabler/icons-react";
17368
17365
 
17369
17366
  // src/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel.tsx
17370
- import React174, { useCallback as useCallback62, useEffect as useEffect61, useMemo as useMemo75, useRef as useRef16, useState as useState69 } from "react";
17367
+ import React174, { useCallback as useCallback63, useEffect as useEffect61, useMemo as useMemo75, useRef as useRef16, useState as useState69 } from "react";
17371
17368
  import { Alert as Alert25, Button as Button30, Card as Card12, Group as Group63, Loader as Loader30, SimpleGrid as SimpleGrid2, Stack as Stack110, Text as Text110, ThemeIcon as ThemeIcon4, useComputedColorScheme as useComputedColorScheme3 } from "@mantine/core";
17372
17369
  import { useDebouncedCallback as useDebouncedCallback3 } from "@mantine/hooks";
17373
17370
  import { IconAlertCircle as IconAlertCircle16, IconCheck as IconCheck13, IconUsers as IconUsers4, IconSignature as IconSignature2, IconPhoto as IconPhoto3, IconCoin as IconCoin2, IconArrowLeft as IconArrowLeft4 } from "@tabler/icons-react";
@@ -17425,7 +17422,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
17425
17422
  model.questionsOnPageMode = "singlePage";
17426
17423
  return model;
17427
17424
  }, [selectedGroupType, computedColorScheme]);
17428
- const syncPropToSurvey = useCallback62(
17425
+ const syncPropToSurvey = useCallback63(
17429
17426
  (answersJson) => {
17430
17427
  if (!answersJson || answersJson === lastSyncedAnswers.current || !surveyModel) return;
17431
17428
  try {
@@ -17488,7 +17485,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
17488
17485
  lastSyncedAnswers.current = "";
17489
17486
  setFlowStep("survey");
17490
17487
  };
17491
- const processGroupCreation = useCallback62(
17488
+ const processGroupCreation = useCallback63(
17492
17489
  async (data) => {
17493
17490
  if (!handlers) {
17494
17491
  throw new Error("Handlers not available");
@@ -17510,7 +17507,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
17510
17507
  },
17511
17508
  [handlers, selectedGroupType]
17512
17509
  );
17513
- const handleSurveyComplete = useCallback62(
17510
+ const handleSurveyComplete = useCallback63(
17514
17511
  async (sender) => {
17515
17512
  const data = sender.data || {};
17516
17513
  try {
@@ -17554,12 +17551,12 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
17554
17551
  surveyModel.onComplete.remove(handleSurveyComplete);
17555
17552
  };
17556
17553
  }, [handleSurveyComplete, surveyModel]);
17557
- const handleRetry = useCallback62(() => {
17554
+ const handleRetry = useCallback63(() => {
17558
17555
  setFlowStep("survey");
17559
17556
  setError(null);
17560
17557
  surveyModel?.clear();
17561
17558
  }, [surveyModel]);
17562
- const handleBackToTypeSelection = useCallback62(() => {
17559
+ const handleBackToTypeSelection = useCallback63(() => {
17563
17560
  setSelectedGroupType(null);
17564
17561
  setFlowStep("typeSelection");
17565
17562
  editor.updateBlock(block, {
@@ -17571,7 +17568,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
17571
17568
  }
17572
17569
  });
17573
17570
  }, [editor, block]);
17574
- const handleClose = useCallback62(() => {
17571
+ const handleClose = useCallback63(() => {
17575
17572
  closePanel();
17576
17573
  }, [closePanel]);
17577
17574
  if (flowStep === "typeSelection") {
@@ -17645,7 +17642,7 @@ var GovernanceGroupFlowView = ({ editor, block }) => {
17645
17642
  []
17646
17643
  );
17647
17644
  const handleCompleteRef = useRef17();
17648
- const handleComplete = useCallback63((data) => {
17645
+ const handleComplete = useCallback64((data) => {
17649
17646
  const currentEditor = editorRef.current;
17650
17647
  const currentBlock = blockRef.current;
17651
17648
  currentEditor.updateBlock(currentBlock, {
@@ -17668,7 +17665,7 @@ var GovernanceGroupFlowView = ({ editor, block }) => {
17668
17665
  useEffect62(() => {
17669
17666
  handleCompleteRef.current = handleComplete;
17670
17667
  });
17671
- const stableHandleComplete = useCallback63(
17668
+ const stableHandleComplete = useCallback64(
17672
17669
  (data) => {
17673
17670
  handleCompleteRef.current?.(data);
17674
17671
  },
@@ -17959,7 +17956,7 @@ import React183, { useMemo as useMemo79 } from "react";
17959
17956
  import { Badge as Badge35, Group as Group68, Stack as Stack116, Text as Text115, Tooltip as Tooltip21 } from "@mantine/core";
17960
17957
 
17961
17958
  // src/mantine/blocks/flowLink/flow/FlowLinkPanel.tsx
17962
- import React182, { useState as useState72, useEffect as useEffect64, useCallback as useCallback64 } from "react";
17959
+ import React182, { useState as useState72, useEffect as useEffect64, useCallback as useCallback65 } from "react";
17963
17960
  import { Stack as Stack115, Text as Text114, Card as Card14, Group as Group67, Badge as Badge34, ActionIcon as ActionIcon29, Loader as Loader31, Tooltip as Tooltip20 } from "@mantine/core";
17964
17961
  import { IconRefresh as IconRefresh4, IconCheck as IconCheck14, IconClock as IconClock10, IconCircleDashed as IconCircleDashed3 } from "@tabler/icons-react";
17965
17962
  var FlowLinkPanel = ({ editor, block }) => {
@@ -17967,7 +17964,7 @@ var FlowLinkPanel = ({ editor, block }) => {
17967
17964
  const handlers = useBlocknoteHandlers();
17968
17965
  const links = safeParseJSONArray(block.props.links).sort((a, b) => a.position - b.position);
17969
17966
  const [linksWithStatus, setLinksWithStatus] = useState72(links.map((link) => ({ ...link })));
17970
- const fetchStatuses = useCallback64(async () => {
17967
+ const fetchStatuses = useCallback65(async () => {
17971
17968
  if (!handlers.getFlowStatus) {
17972
17969
  return;
17973
17970
  }
@@ -18137,7 +18134,7 @@ import React199 from "react";
18137
18134
  import React189, { useMemo as useMemo82 } from "react";
18138
18135
 
18139
18136
  // src/mantine/blocks/action/template/TemplateConfig.tsx
18140
- import React188, { useCallback as useCallback65, useContext as useContext2, useMemo as useMemo81 } from "react";
18137
+ import React188, { useCallback as useCallback66, useContext as useContext2, useMemo as useMemo81 } from "react";
18141
18138
  import { Stack as Stack119, Text as Text118 } from "@mantine/core";
18142
18139
  import { IconCheck as IconCheck15, IconClock as IconClock11, IconContract as IconContract4, IconSettings as IconSettings19, IconShieldCheck as IconShieldCheck12, IconUserCheck as IconUserCheck4 } from "@tabler/icons-react";
18143
18140
 
@@ -18577,7 +18574,7 @@ var TemplateConfig16 = ({ editor, block: blockProp }) => {
18577
18574
  }
18578
18575
  return true;
18579
18576
  }, [block.props]);
18580
- const updateProp = useCallback65(
18577
+ const updateProp = useCallback66(
18581
18578
  (key, value) => {
18582
18579
  const current = readLiveBlock();
18583
18580
  editor.updateBlock(current, { props: { [key]: value } });
@@ -18707,7 +18704,7 @@ var ActionTemplateView = ({ editor, block }) => {
18707
18704
  };
18708
18705
 
18709
18706
  // src/mantine/blocks/action/flow/FlowView.tsx
18710
- import React192, { useCallback as useCallback68, useMemo as useMemo86, useRef as useRef20, useState as useState77 } from "react";
18707
+ import React192, { useCallback as useCallback69, useMemo as useMemo86, useRef as useRef20, useState as useState78 } from "react";
18711
18708
  import { Group as Group74, Stack as Stack123, Text as Text122, Code as Code8, Box as Box46, Divider as Divider18, Button as Button34, Loader as Loader32 } from "@mantine/core";
18712
18709
  import { IconAlertTriangle as IconAlertTriangle3, IconUser as IconUser13, IconBolt as IconBolt9, IconShieldCheck as IconShieldCheck13, IconPlayerPlay } from "@tabler/icons-react";
18713
18710
 
@@ -18763,7 +18760,7 @@ function useAutoCommitOnExecute(editor, block, runtimeState) {
18763
18760
  }
18764
18761
 
18765
18762
  // src/mantine/blocks/action/PendingInvocationList.tsx
18766
- import React190, { useEffect as useEffect67, useState as useState75, useMemo as useMemo83, useCallback as useCallback66, useRef as useRef19 } from "react";
18763
+ import React190, { useEffect as useEffect67, useState as useState75, useMemo as useMemo83, useCallback as useCallback67, useRef as useRef19 } from "react";
18767
18764
  import { Stack as Stack121, Group as Group72, Text as Text120, Box as Box45, Badge as Badge36, Button as Button32, Paper as Paper15, ActionIcon as ActionIcon31, Tooltip as Tooltip22 } from "@mantine/core";
18768
18765
  import { IconBolt as IconBolt8, IconClock as IconClock12, IconRefresh as IconRefresh5, IconX as IconX11 } from "@tabler/icons-react";
18769
18766
  var PendingInvocationList = ({ editor, blockId, actionType: _actionType, onInvoke, autoResolve }) => {
@@ -18781,7 +18778,7 @@ var PendingInvocationList = ({ editor, blockId, actionType: _actionType, onInvok
18781
18778
  outer.unobserveDeep(refresh);
18782
18779
  };
18783
18780
  }, [yDoc, blockId]);
18784
- const handleDismiss = useCallback66(
18781
+ const handleDismiss = useCallback67(
18785
18782
  (id) => {
18786
18783
  if (!yDoc) return;
18787
18784
  removePendingInvocation(yDoc, blockId, id);
@@ -18875,7 +18872,7 @@ function formatTimestamp2(iso) {
18875
18872
  }
18876
18873
 
18877
18874
  // src/mantine/blocks/action/useExecuteActionBlock.ts
18878
- import { useCallback as useCallback67, useMemo as useMemo84, useState as useState76 } from "react";
18875
+ import { useCallback as useCallback68, useMemo as useMemo84, useState as useState76 } from "react";
18879
18876
  function executionNeedsPin(params) {
18880
18877
  return (params.policyRequiresPin || params.actionRequiresSignedInvocation) && !params.suppliedPin && !params.hasActiveSignerSession;
18881
18878
  }
@@ -18889,7 +18886,7 @@ function getActorDid(handlers) {
18889
18886
  return "";
18890
18887
  }
18891
18888
  }
18892
- function createUiFlowRunService(editor, eventLog, designPodService, verifyTerminalInvocation) {
18889
+ function createUiFlowRunService(editor, eventLog, designPodService, verifyTerminalInvocation, requests) {
18893
18890
  const requireHost = () => {
18894
18891
  const yDoc = resolveEditorYDoc(editor);
18895
18892
  if (!yDoc) throw new Error("Flow session lifecycle requires a collaborative Y.Doc.");
@@ -18902,7 +18899,14 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
18902
18899
  definition: buildRunDefinitionSnapshot(document2)
18903
18900
  };
18904
18901
  };
18905
- const authorize = () => ({ allowed: true });
18902
+ const authorize = createUcanRunLifecycleAuthorizer(() => editor.getUcanService?.());
18903
+ const requestProof = (kind, requesterDid) => {
18904
+ const ucanService = editor.getUcanService?.();
18905
+ const docId = editor.getFlowMetadata?.()?.doc_id;
18906
+ const roomId = editor.getRoomId?.();
18907
+ if (!requests?.flowManagerDid || !ucanService || !docId || !roomId || !requesterDid) return void 0;
18908
+ return lifecycleRequestProof({ ucanService, kind, requesterDid, flowManagerDid: requests.flowManagerDid, roomId, docId, getPin: requests.getPin });
18909
+ };
18906
18910
  return {
18907
18911
  async start(params) {
18908
18912
  const host = requireHost();
@@ -18914,6 +18918,7 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
18914
18918
  document: host.document,
18915
18919
  eventLog: host.eventLog,
18916
18920
  authorize,
18921
+ ...requestProof("run.start", params.actorDid) ? { requestProof: requestProof("run.start", params.actorDid) } : {},
18917
18922
  ...params.label ? { label: params.label } : {}
18918
18923
  });
18919
18924
  return {
@@ -18932,6 +18937,7 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
18932
18937
  actionTypes: host.definition.actionTypes,
18933
18938
  eventLog: host.eventLog,
18934
18939
  authorize,
18940
+ ...requestProof("run.close", params.actorDid) ? { requestProof: requestProof("run.close", params.actorDid) } : {},
18935
18941
  ...params.authorization ? { terminalAuthorization: params.authorization } : {},
18936
18942
  ...verifyTerminalInvocation ? { verifyTerminalInvocation } : {},
18937
18943
  ...designPodService ? {
@@ -18958,6 +18964,7 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
18958
18964
  actionTypes: host.definition.actionTypes,
18959
18965
  eventLog: host.eventLog,
18960
18966
  authorize,
18967
+ ...requestProof("run.close", params.actorDid) ? { requestProof: requestProof("run.close", params.actorDid) } : {},
18961
18968
  ...params.authorization ? { terminalAuthorization: params.authorization } : {},
18962
18969
  ...verifyTerminalInvocation ? { verifyTerminalInvocation } : {},
18963
18970
  ...designPodService ? {
@@ -18993,7 +19000,7 @@ function useExecuteActionBlock({ editor, block }) {
18993
19000
  const [isExecuting, setIsExecuting] = useState76(false);
18994
19001
  const [error, setError] = useState76(null);
18995
19002
  const [result, setResult] = useState76(null);
18996
- const executeAction = useCallback67(
19003
+ const executeAction = useCallback68(
18997
19004
  async ({ runtimeInputs, pendingInvocationId, pin, handlers: executionHandlers } = {}) => {
18998
19005
  if (sessionPreview) {
18999
19006
  throw new Error("This flow is rendered as a pre-session preview. Start or select a session to run actions.");
@@ -19006,17 +19013,14 @@ function useExecuteActionBlock({ editor, block }) {
19006
19013
  const actionHandlers = mergeActionHandlers(handlers, executionHandlers);
19007
19014
  const actionServices = executionHandlers ? buildServicesFromHandlers(actionHandlers) : services;
19008
19015
  if (topicActionRuntime?.topicService) actionServices.topic = topicActionRuntime.topicService;
19009
- const flowRuns = actionServices.flowRuns || createUiFlowRunService(editor, runEventLog, actionServices.designPod, actionServices.flowInvocation?.verifyInvocation ?? actionServices.designPod?.verifyInvocation);
19010
- const schemaVersion = metadata?.schema_version || "0.3";
19011
- const policy = getVersionPolicy(schemaVersion);
19016
+ const schemaVersion = metadata?.schema_version;
19012
19017
  const actionType = typeof block.props?.actionType === "string" ? block.props.actionType : "";
19013
19018
  const requiresSignedInvocation = getAction(actionType)?.requiresSignedInvocation === true;
19014
19019
  let effectivePin = pin || "";
19015
- const signatureRequired = policy?.ui?.requirePinForExecution || requiresSignedInvocation;
19016
19020
  const actorDid = getActorDid(actionHandlers);
19017
- const activeSignerSession = signatureRequired && !effectivePin && actorDid && actionHandlers?.getActiveSignerSession ? await actionHandlers.getActiveSignerSession({ did: actorDid }) : null;
19021
+ const activeSignerSession = !effectivePin && actorDid && actionHandlers?.getActiveSignerSession ? await actionHandlers.getActiveSignerSession({ did: actorDid }) : null;
19018
19022
  if (executionNeedsPin({
19019
- policyRequiresPin: policy?.ui?.requirePinForExecution === true,
19023
+ policyRequiresPin: true,
19020
19024
  actionRequiresSignedInvocation: requiresSignedInvocation,
19021
19025
  suppliedPin: effectivePin,
19022
19026
  hasActiveSignerSession: !!activeSignerSession
@@ -19029,6 +19033,13 @@ function useExecuteActionBlock({ editor, block }) {
19029
19033
  throw new Error("This action requires a PIN to create its signed Flow invocation, and none was provided.");
19030
19034
  }
19031
19035
  }
19036
+ const flowRuns = actionServices.flowRuns || createUiFlowRunService(
19037
+ editor,
19038
+ runEventLog,
19039
+ actionServices.designPod,
19040
+ actionServices.flowInvocation?.verifyInvocation ?? actionServices.designPod?.verifyInvocation,
19041
+ { flowManagerDid: actionHandlers?.getFlowManagerDid?.(), getPin: async () => effectivePin }
19042
+ );
19032
19043
  const outcome = await executeActionBlock({
19033
19044
  editorOrYDoc: editor,
19034
19045
  block,
@@ -19044,7 +19055,7 @@ function useExecuteActionBlock({ editor, block }) {
19044
19055
  pin: effectivePin,
19045
19056
  flowId,
19046
19057
  flowUri: `ixo:flow:${flowId}`,
19047
- flowOwnerDid: editor?.getFlowOwnerDid?.() || metadata?.flowOwnerDid || "",
19058
+ flowOwnerDid: editor?.getFlowOwnerDid?.() || "",
19048
19059
  schemaVersion,
19049
19060
  runId: sessionRunId,
19050
19061
  designPodAuthority,
@@ -19078,13 +19089,64 @@ function useExecuteActionBlock({ editor, block }) {
19078
19089
  }
19079
19090
 
19080
19091
  // src/mantine/blocks/action/flow/NeedsVerificationAlert.tsx
19081
- import React191, { useMemo as useMemo85 } from "react";
19092
+ import React191, { useMemo as useMemo85, useState as useState77 } from "react";
19082
19093
  import { Button as Button33, Code as Code7, Group as Group73, Stack as Stack122, Text as Text121 } from "@mantine/core";
19083
19094
  import { IconHelpHexagon } from "@tabler/icons-react";
19095
+
19096
+ // src/mantine/blocks/action/manualVerification.ts
19097
+ async function signManualVerification(params) {
19098
+ const { editor, handlers, blockId, actorDid } = params;
19099
+ const ucanService = editor.getUcanService?.();
19100
+ if (!ucanService) throw new Error("Confirming needs your signature, and this editor can't sign.");
19101
+ if (!actorDid) throw new Error("Confirming needs your signature, and we could not tell who you are.");
19102
+ const docId = editor.getFlowMetadata?.()?.doc_id;
19103
+ if (!docId) throw new Error("This flow has no id yet, so a confirmation cannot be signed for it.");
19104
+ const flowUri = `ixo:flow:${docId}`;
19105
+ let pin = "";
19106
+ const active = handlers?.getActiveSignerSession ? await handlers.getActiveSignerSession({ did: actorDid }) : null;
19107
+ if (!active) {
19108
+ pin = await handlers?.requestPin?.({ title: "Confirm this step happened", description: "Enter your PIN to sign your confirmation." }) || "";
19109
+ if (!pin) throw new Error("The step was not confirmed: your confirmation was not signed.");
19110
+ }
19111
+ const result = await ucanService.executeWithInvocation(
19112
+ {
19113
+ invokerDid: actorDid,
19114
+ invokerType: "user",
19115
+ capability: { can: "flow/block/execute", with: `${flowUri}:${blockId}` },
19116
+ proofs: [],
19117
+ facts: {
19118
+ kind: "manual-verification",
19119
+ ...params.actionType ? { actionType: params.actionType } : {},
19120
+ ...params.sessionRunId ? { sessionRunId: params.sessionRunId } : {}
19121
+ },
19122
+ pin
19123
+ },
19124
+ async () => ({}),
19125
+ docId,
19126
+ blockId,
19127
+ params.sessionRunId
19128
+ );
19129
+ if (!result.success || !result.invocationCid) {
19130
+ throw new Error(result.error || "Your confirmation could not be signed.");
19131
+ }
19132
+ return {
19133
+ state: "completed",
19134
+ manuallyVerified: true,
19135
+ manuallyVerifiedByDid: actorDid,
19136
+ manuallyVerifiedAt: Date.now(),
19137
+ lastInvocationCid: result.invocationCid,
19138
+ error: void 0
19139
+ };
19140
+ }
19141
+
19142
+ // src/mantine/blocks/action/flow/NeedsVerificationAlert.tsx
19084
19143
  function NeedsVerificationAlert({ editor, block }) {
19085
19144
  const t = useTranslate();
19086
19145
  const handlers = useBlocknoteHandlers();
19087
19146
  const [runtime, updateRuntime] = useNodeRuntime(editor, block.id);
19147
+ const sessionRunId = useRunSessionId();
19148
+ const [signing, setSigning] = useState77(false);
19149
+ const [signError, setSignError] = useState77(null);
19088
19150
  const payloadJson = useMemo85(() => {
19089
19151
  if (!runtime.output || Object.keys(runtime.output).length === 0) return "";
19090
19152
  try {
@@ -19102,21 +19164,25 @@ function NeedsVerificationAlert({ editor, block }) {
19102
19164
  return void 0;
19103
19165
  }
19104
19166
  })();
19105
- const handleConfirm = () => {
19106
- updateRuntime({
19107
- state: "completed",
19108
- manuallyVerified: true,
19109
- manuallyVerifiedByDid: actorDid,
19110
- manuallyVerifiedAt: Date.now(),
19111
- error: void 0
19112
- });
19167
+ const handleConfirm = async () => {
19168
+ setSigning(true);
19169
+ setSignError(null);
19170
+ try {
19171
+ updateRuntime(
19172
+ await signManualVerification({ editor, handlers, blockId: block.id, actionType: block.props?.actionType, actorDid: actorDid || "", sessionRunId })
19173
+ );
19174
+ } catch (error) {
19175
+ setSignError(error instanceof Error ? error.message : "Your confirmation could not be signed.");
19176
+ } finally {
19177
+ setSigning(false);
19178
+ }
19113
19179
  };
19114
19180
  const handleReject = () => {
19115
19181
  updateRuntime({ state: "idle", error: void 0, output: {} });
19116
19182
  };
19117
19183
  return /* @__PURE__ */ React191.createElement(DismissibleAlert, { icon: /* @__PURE__ */ React191.createElement(IconHelpHexagon, { size: 16 }), color: "orange", styles: actionAlertStyles, title: t("actionBlock.needsVerification.title", { defaultValue: "Needs verification" }) }, /* @__PURE__ */ React191.createElement(Stack122, { gap: "xs" }, /* @__PURE__ */ React191.createElement(Text121, { size: "xs" }, t("actionBlock.needsVerification.body", {
19118
19184
  defaultValue: "This action ran but could not confirm it succeeded, so it will not retry automatically \u2014 the effect may already have happened. Check the result below, then confirm or reset."
19119
- })), runtime.error?.message && /* @__PURE__ */ React191.createElement(Text121, { size: "xs", c: "dimmed" }, runtime.error.message), payloadJson && /* @__PURE__ */ React191.createElement(Stack122, { gap: 4 }, /* @__PURE__ */ React191.createElement(Text121, { size: "xs", fw: 600, c: "dimmed" }, t("actionBlock.needsVerification.returned", { defaultValue: "What the action returned" })), /* @__PURE__ */ React191.createElement(Code7, { block: true, style: { fontSize: "11px", maxHeight: "240px", overflow: "auto" } }, payloadJson)), /* @__PURE__ */ React191.createElement(Group73, { gap: "xs", mt: 4 }, /* @__PURE__ */ React191.createElement(Button33, { size: "xs", color: "green", onClick: handleConfirm }, t("actionBlock.needsVerification.confirm", { defaultValue: "Confirm it succeeded" })), /* @__PURE__ */ React191.createElement(Button33, { size: "xs", variant: "outline", color: "red", onClick: handleReject }, t("actionBlock.needsVerification.reject", { defaultValue: "It didn't happen \u2014 reset" })))));
19185
+ })), runtime.error?.message && /* @__PURE__ */ React191.createElement(Text121, { size: "xs", c: "dimmed" }, runtime.error.message), payloadJson && /* @__PURE__ */ React191.createElement(Stack122, { gap: 4 }, /* @__PURE__ */ React191.createElement(Text121, { size: "xs", fw: 600, c: "dimmed" }, t("actionBlock.needsVerification.returned", { defaultValue: "What the action returned" })), /* @__PURE__ */ React191.createElement(Code7, { block: true, style: { fontSize: "11px", maxHeight: "240px", overflow: "auto" } }, payloadJson)), signError && /* @__PURE__ */ React191.createElement(Text121, { size: "xs", c: "red" }, signError), /* @__PURE__ */ React191.createElement(Group73, { gap: "xs", mt: 4 }, /* @__PURE__ */ React191.createElement(Button33, { size: "xs", color: "green", loading: signing, disabled: signing, onClick: () => void handleConfirm() }, t("actionBlock.needsVerification.confirm", { defaultValue: "Confirm it succeeded" })), /* @__PURE__ */ React191.createElement(Button33, { size: "xs", variant: "outline", color: "red", onClick: handleReject }, t("actionBlock.needsVerification.reject", { defaultValue: "It didn't happen \u2014 reset" })))));
19120
19186
  }
19121
19187
 
19122
19188
  // src/mantine/blocks/action/flow/FlowView.tsx
@@ -19327,21 +19393,21 @@ function ActionPanelContent({
19327
19393
  disabledMessage
19328
19394
  }) {
19329
19395
  const t = useTranslate();
19330
- const [isLoading] = useState77(false);
19396
+ const [isLoading] = useState78(false);
19331
19397
  const [runtime, updateRuntime] = useNodeRuntime(editor, block.id);
19332
19398
  const executeFnRef = useRef20(null);
19333
- const [canSign, setCanSign] = useState77(false);
19334
- const [runtimeInputs, setRuntimeInputs] = useState77({});
19335
- const [showFlowDetail, setShowFlowDetail] = useState77(false);
19336
- const [activeInvocation, setActiveInvocation] = useState77(null);
19399
+ const [canSign, setCanSign] = useState78(false);
19400
+ const [runtimeInputs, setRuntimeInputs] = useState78({});
19401
+ const [showFlowDetail, setShowFlowDetail] = useState78(false);
19402
+ const [activeInvocation, setActiveInvocation] = useState78(null);
19337
19403
  const { executeAction } = useExecuteActionBlock({ editor, block });
19338
- const provideSigningHandler = useCallback68((fn) => {
19404
+ const provideSigningHandler = useCallback69((fn) => {
19339
19405
  executeFnRef.current = fn;
19340
19406
  }, []);
19341
- const unlockSigning = useCallback68((value) => {
19407
+ const unlockSigning = useCallback69((value) => {
19342
19408
  setCanSign(value);
19343
19409
  }, []);
19344
- const registerRuntimeInputs = useCallback68((inputs) => {
19410
+ const registerRuntimeInputs = useCallback69((inputs) => {
19345
19411
  setRuntimeInputs(inputs);
19346
19412
  }, []);
19347
19413
  const actionTypeUI = actionType ? getActionTypeUI(actionType) : void 0;
@@ -19349,11 +19415,11 @@ function ActionPanelContent({
19349
19415
  const isSlideToSign = executionMode === "slide-to-sign";
19350
19416
  const isXeroWorkQueueAction = actionType === "qi/xero.invoice.create" || actionType === "qi/xero.payment.create";
19351
19417
  const autoResolvePending = !!actionTypeUI?.autoResolvePendingInvocation;
19352
- const handlePendingInvocationCompleted = useCallback68((_invocationId) => {
19418
+ const handlePendingInvocationCompleted = useCallback69((_invocationId) => {
19353
19419
  setActiveInvocation(null);
19354
19420
  setShowFlowDetail(false);
19355
19421
  }, []);
19356
- const handleInvoke = useCallback68((invocation) => {
19422
+ const handleInvoke = useCallback69((invocation) => {
19357
19423
  if (invocation?.id) {
19358
19424
  setActiveInvocation(invocation);
19359
19425
  }
@@ -19533,7 +19599,7 @@ function lazyActionComponent(load) {
19533
19599
  // src/mantine/blocks/action/actionTypes/pod/domainIndexerLookup/index.ts
19534
19600
  import { IconSearch as IconSearch5 } from "@tabler/icons-react";
19535
19601
  var DomainIndexerLookupConfig = lazyActionComponent(() => import("./DomainIndexerLookupConfig-N4VONQUY.js").then((module) => ({ default: module.DomainIndexerLookupConfig })));
19536
- var DomainIndexerLookupFlowDetail = lazyActionComponent(() => import("./DomainIndexerLookupFlowDetail-RITIJBF5.js").then((module) => ({ default: module.DomainIndexerLookupFlowDetail })));
19602
+ var DomainIndexerLookupFlowDetail = lazyActionComponent(() => import("./DomainIndexerLookupFlowDetail-L6GSDWLI.js").then((module) => ({ default: module.DomainIndexerLookupFlowDetail })));
19537
19603
  registerActionTypeUI("qi/pod.domain-indexer-lookup", {
19538
19604
  label: "Define Purpose",
19539
19605
  description: "Capture intent and find matching Blueprint candidates",
@@ -19544,9 +19610,9 @@ registerActionTypeUI("qi/pod.domain-indexer-lookup", {
19544
19610
 
19545
19611
  // src/mantine/blocks/action/actionTypes/pod/domainSingleSelection/index.ts
19546
19612
  import { IconLayoutGrid } from "@tabler/icons-react";
19547
- var DomainSingleSelectionConfig = lazyActionComponent(() => import("./DomainSingleSelectionConfig-Q6I7KLOO.js").then((module) => ({ default: module.DomainSingleSelectionConfig })));
19613
+ var DomainSingleSelectionConfig = lazyActionComponent(() => import("./DomainSingleSelectionConfig-DTHYPZBO.js").then((module) => ({ default: module.DomainSingleSelectionConfig })));
19548
19614
  var DomainSingleSelectionFlowDetail = lazyActionComponent(
19549
- () => import("./DomainSingleSelectionFlowDetail-RXYRQMR5.js").then((module) => ({ default: module.DomainSingleSelectionFlowDetail }))
19615
+ () => import("./DomainSingleSelectionFlowDetail-JKNAC2RY.js").then((module) => ({ default: module.DomainSingleSelectionFlowDetail }))
19550
19616
  );
19551
19617
  registerActionTypeUI("qi/pod.domain-single-selection", {
19552
19618
  label: "Select Blueprint",
@@ -19560,7 +19626,7 @@ registerActionTypeUI("qi/pod.domain-single-selection", {
19560
19626
  import { IconBuildingEstate } from "@tabler/icons-react";
19561
19627
  var EntitySingleSelectionConfig = lazyActionComponent(() => import("./EntitySingleSelectionConfig-DL57KNKM.js").then((module) => ({ default: module.EntitySingleSelectionConfig })));
19562
19628
  var EntitySingleSelectionFlowDetail = lazyActionComponent(
19563
- () => import("./EntitySingleSelectionFlowDetail-PIKQ4ZHV.js").then((module) => ({ default: module.EntitySingleSelectionFlowDetail }))
19629
+ () => import("./EntitySingleSelectionFlowDetail-5BDIVHQV.js").then((module) => ({ default: module.EntitySingleSelectionFlowDetail }))
19564
19630
  );
19565
19631
  registerActionTypeUI("qi/pod.entity-single-selection", {
19566
19632
  label: "Select Parent Organisation",
@@ -19573,7 +19639,7 @@ registerActionTypeUI("qi/pod.entity-single-selection", {
19573
19639
  // src/mantine/blocks/action/actionTypes/pod/memberMultiSelect/index.ts
19574
19640
  import { IconUsers as IconUsers5 } from "@tabler/icons-react";
19575
19641
  var MemberMultiSelectConfig = lazyActionComponent(() => import("./MemberMultiSelectConfig-E7WUB2WD.js").then((module) => ({ default: module.MemberMultiSelectConfig })));
19576
- var MemberMultiSelectFlowDetail = lazyActionComponent(() => import("./MemberMultiSelectFlowDetail-GM45G5EA.js").then((module) => ({ default: module.MemberMultiSelectFlowDetail })));
19642
+ var MemberMultiSelectFlowDetail = lazyActionComponent(() => import("./MemberMultiSelectFlowDetail-N64ZK7GE.js").then((module) => ({ default: module.MemberMultiSelectFlowDetail })));
19577
19643
  registerActionTypeUI("qi/pod.member-multi-select", {
19578
19644
  label: "Configure Membership",
19579
19645
  description: "Define POD members, roles, and voting power",
@@ -19585,7 +19651,7 @@ registerActionTypeUI("qi/pod.member-multi-select", {
19585
19651
  // src/mantine/blocks/action/actionTypes/pod/governanceConfig/index.ts
19586
19652
  import { IconGavel } from "@tabler/icons-react";
19587
19653
  var GovernanceConfigConfig = lazyActionComponent(() => import("./GovernanceConfigConfig-V3WM4WBP.js").then((module) => ({ default: module.GovernanceConfigConfig })));
19588
- var GovernanceConfigFlowDetail = lazyActionComponent(() => import("./GovernanceConfigFlowDetail-H7OB765D.js").then((module) => ({ default: module.GovernanceConfigFlowDetail })));
19654
+ var GovernanceConfigFlowDetail = lazyActionComponent(() => import("./GovernanceConfigFlowDetail-FZB4R54G.js").then((module) => ({ default: module.GovernanceConfigFlowDetail })));
19589
19655
  registerActionTypeUI("qi/pod.governance-config", {
19590
19656
  label: "Configure Governance",
19591
19657
  description: "Set the governance group type and decision policy",
@@ -19597,7 +19663,7 @@ registerActionTypeUI("qi/pod.governance-config", {
19597
19663
  // src/mantine/blocks/action/actionTypes/pod/listDomainFlows/index.ts
19598
19664
  import { IconTemplate } from "@tabler/icons-react";
19599
19665
  var ListDomainFlowsConfig = lazyActionComponent(() => import("./ListDomainFlowsConfig-3JZEPTOJ.js").then((module) => ({ default: module.ListDomainFlowsConfig })));
19600
- var ListDomainFlowsFlowDetail = lazyActionComponent(() => import("./ListDomainFlowsFlowDetail-Z2JE5XLW.js").then((module) => ({ default: module.ListDomainFlowsFlowDetail })));
19666
+ var ListDomainFlowsFlowDetail = lazyActionComponent(() => import("./ListDomainFlowsFlowDetail-PJQCAY3I.js").then((module) => ({ default: module.ListDomainFlowsFlowDetail })));
19601
19667
  registerActionTypeUI("qi/pod.list-domain-flows", {
19602
19668
  label: "Select Flow Templates",
19603
19669
  description: "Choose protocol flow templates to import",
@@ -19620,7 +19686,7 @@ var ACTIONS = [
19620
19686
  ];
19621
19687
  for (const [actionType, label, description] of ACTIONS) {
19622
19688
  const DesignPodConfig = lazyActionComponent(() => import("./DesignPodConfig-LJ7H2CZ6.js").then((module) => ({ default: module.DesignPodConfig })));
19623
- const DesignPodFlowDetail = lazyActionComponent(() => import("./DesignPodFlowDetail-3FIOPZGM.js").then((module) => ({ default: module.DesignPodFlowDetail })));
19689
+ const DesignPodFlowDetail = lazyActionComponent(() => import("./DesignPodFlowDetail-ECFMDZZ3.js").then((module) => ({ default: module.DesignPodFlowDetail })));
19624
19690
  registerActionTypeUI(actionType, {
19625
19691
  label,
19626
19692
  description,
@@ -19632,9 +19698,9 @@ for (const [actionType, label, description] of ACTIONS) {
19632
19698
 
19633
19699
  // src/mantine/blocks/action/actionTypes/governance/memberProposal/index.ts
19634
19700
  import { IconUsersGroup as IconUsersGroup3 } from "@tabler/icons-react";
19635
- var GovernanceMemberProposalConfig = lazyActionComponent(() => import("./GovernanceMemberProposalConfig-P4LVM7CK.js").then((module) => ({ default: module.GovernanceMemberProposalConfig })));
19701
+ var GovernanceMemberProposalConfig = lazyActionComponent(() => import("./GovernanceMemberProposalConfig-LW6KNHVY.js").then((module) => ({ default: module.GovernanceMemberProposalConfig })));
19636
19702
  var GovernanceMemberProposalFlowDetail = lazyActionComponent(
19637
- () => import("./GovernanceMemberProposalFlowDetail-BVHFB54O.js").then((module) => ({ default: module.GovernanceMemberProposalFlowDetail }))
19703
+ () => import("./GovernanceMemberProposalFlowDetail-JNO3RPDW.js").then((module) => ({ default: module.GovernanceMemberProposalFlowDetail }))
19638
19704
  );
19639
19705
  registerActionTypeUI("qi/governance.member-proposal", {
19640
19706
  label: "Membership Proposal",
@@ -19647,10 +19713,10 @@ registerActionTypeUI("qi/governance.member-proposal", {
19647
19713
  // src/mantine/blocks/action/actionTypes/governance/settingsProposal/index.ts
19648
19714
  import { IconScale } from "@tabler/icons-react";
19649
19715
  var GovernanceSettingsProposalConfig = lazyActionComponent(
19650
- () => import("./GovernanceSettingsProposalConfig-SQD7EFEJ.js").then((module) => ({ default: module.GovernanceSettingsProposalConfig }))
19716
+ () => import("./GovernanceSettingsProposalConfig-WBOTSKNF.js").then((module) => ({ default: module.GovernanceSettingsProposalConfig }))
19651
19717
  );
19652
19718
  var GovernanceSettingsProposalFlowDetail = lazyActionComponent(
19653
- () => import("./GovernanceSettingsProposalFlowDetail-O3EMALFD.js").then((module) => ({ default: module.GovernanceSettingsProposalFlowDetail }))
19719
+ () => import("./GovernanceSettingsProposalFlowDetail-W2KXBQM2.js").then((module) => ({ default: module.GovernanceSettingsProposalFlowDetail }))
19654
19720
  );
19655
19721
  registerActionTypeUI("qi/governance.settings-proposal", {
19656
19722
  label: "Governance Settings Proposal",
@@ -19664,7 +19730,7 @@ registerActionTypeUI("qi/governance.settings-proposal", {
19664
19730
  import { IconGavel as IconGavel2 } from "@tabler/icons-react";
19665
19731
 
19666
19732
  // src/mantine/blocks/action/actionTypes/governance/_shared/createGovernanceProposalConfig.tsx
19667
- import React194, { useCallback as useCallback69, useEffect as useEffect68, useState as useState78 } from "react";
19733
+ import React194, { useCallback as useCallback70, useEffect as useEffect68, useState as useState79 } from "react";
19668
19734
  import { Alert as Alert26, Stack as Stack124, Text as Text123 } from "@mantine/core";
19669
19735
  function parseGovernanceProposalConfigInputs(json) {
19670
19736
  try {
@@ -19676,11 +19742,11 @@ function parseGovernanceProposalConfigInputs(json) {
19676
19742
  }
19677
19743
  function createGovernanceProposalConfig(options) {
19678
19744
  const GovernanceProposalConfig = ({ inputs, onInputsChange }) => {
19679
- const [local, setLocal] = useState78(() => parseGovernanceProposalConfigInputs(inputs));
19745
+ const [local, setLocal] = useState79(() => parseGovernanceProposalConfigInputs(inputs));
19680
19746
  useEffect68(() => {
19681
19747
  setLocal(parseGovernanceProposalConfigInputs(inputs));
19682
19748
  }, [inputs]);
19683
- const update = useCallback69(
19749
+ const update = useCallback70(
19684
19750
  (patch) => {
19685
19751
  setLocal((prev) => {
19686
19752
  const updated = { ...prev, ...patch };
@@ -19697,7 +19763,7 @@ function createGovernanceProposalConfig(options) {
19697
19763
 
19698
19764
  // src/mantine/blocks/action/actionTypes/governance/submissionConfigProposal/index.ts
19699
19765
  var GovernanceSubmissionConfigProposalFlowDetail = lazyActionComponent(
19700
- () => import("./GovernanceSubmissionConfigProposalFlowDetail-FSJEBTH5.js").then((module) => ({ default: module.GovernanceSubmissionConfigProposalFlowDetail }))
19766
+ () => import("./GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js").then((module) => ({ default: module.GovernanceSubmissionConfigProposalFlowDetail }))
19701
19767
  );
19702
19768
  registerActionTypeUI("qi/governance.submission-config-proposal", {
19703
19769
  label: "Proposal Submission Rules",
@@ -19713,10 +19779,10 @@ registerActionTypeUI("qi/governance.submission-config-proposal", {
19713
19779
  // src/mantine/blocks/action/actionTypes/governance/transactionSendFunds/index.ts
19714
19780
  import { IconCoin as IconCoin3 } from "@tabler/icons-react";
19715
19781
  var GovernanceTransactionSendFundsConfig = lazyActionComponent(
19716
- () => import("./GovernanceTransactionSendFundsConfig-N3LS6ZVU.js").then((module) => ({ default: module.GovernanceTransactionSendFundsConfig }))
19782
+ () => import("./GovernanceTransactionSendFundsConfig-JRROE44J.js").then((module) => ({ default: module.GovernanceTransactionSendFundsConfig }))
19717
19783
  );
19718
19784
  var GovernanceTransactionSendFundsFlowDetail = lazyActionComponent(
19719
- () => import("./GovernanceTransactionSendFundsFlowDetail-HQKL7LNN.js").then((module) => ({ default: module.GovernanceTransactionSendFundsFlowDetail }))
19785
+ () => import("./GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js").then((module) => ({ default: module.GovernanceTransactionSendFundsFlowDetail }))
19720
19786
  );
19721
19787
  registerActionTypeUI("qi/governance.transaction.send-funds", {
19722
19788
  label: "Send Funds",
@@ -19729,7 +19795,7 @@ registerActionTypeUI("qi/governance.transaction.send-funds", {
19729
19795
  // src/mantine/blocks/action/actionTypes/governance/transactionSendGroupToken/index.ts
19730
19796
  import { IconCoins as IconCoins2 } from "@tabler/icons-react";
19731
19797
  var GovernanceTransactionSendGroupTokenFlowDetail = lazyActionComponent(
19732
- () => import("./GovernanceTransactionSendGroupTokenFlowDetail-ZLAJN5NB.js").then((module) => ({ default: module.GovernanceTransactionSendGroupTokenFlowDetail }))
19798
+ () => import("./GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js").then((module) => ({ default: module.GovernanceTransactionSendGroupTokenFlowDetail }))
19733
19799
  );
19734
19800
  registerActionTypeUI("qi/governance.transaction.send-group-token", {
19735
19801
  label: "Send POD Tokens",
@@ -19745,7 +19811,7 @@ registerActionTypeUI("qi/governance.transaction.send-group-token", {
19745
19811
  // src/mantine/blocks/action/actionTypes/governance/transactionMint/index.ts
19746
19812
  import { IconCirclePlus } from "@tabler/icons-react";
19747
19813
  var GovernanceTransactionMintFlowDetail = lazyActionComponent(
19748
- () => import("./GovernanceTransactionMintFlowDetail-K6T4SWYJ.js").then((module) => ({ default: module.GovernanceTransactionMintFlowDetail }))
19814
+ () => import("./GovernanceTransactionMintFlowDetail-K6PPDCH6.js").then((module) => ({ default: module.GovernanceTransactionMintFlowDetail }))
19749
19815
  );
19750
19816
  registerActionTypeUI("qi/governance.transaction.mint", {
19751
19817
  label: "Mint Governance Tokens",
@@ -19761,7 +19827,7 @@ registerActionTypeUI("qi/governance.transaction.mint", {
19761
19827
  // src/mantine/blocks/action/actionTypes/governance/transactionPerformTokenSwap/index.ts
19762
19828
  import { IconArrowsExchange as IconArrowsExchange3 } from "@tabler/icons-react";
19763
19829
  var GovernanceTransactionPerformTokenSwapFlowDetail = lazyActionComponent(
19764
- () => import("./GovernanceTransactionPerformTokenSwapFlowDetail-NHU7M4TT.js").then((module) => ({ default: module.GovernanceTransactionPerformTokenSwapFlowDetail }))
19830
+ () => import("./GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js").then((module) => ({ default: module.GovernanceTransactionPerformTokenSwapFlowDetail }))
19765
19831
  );
19766
19832
  registerActionTypeUI("qi/governance.transaction.perform-token-swap", {
19767
19833
  label: "Fund Token Swap",
@@ -19777,7 +19843,7 @@ registerActionTypeUI("qi/governance.transaction.perform-token-swap", {
19777
19843
  // src/mantine/blocks/action/actionTypes/governance/transactionWithdrawTokenSwap/index.ts
19778
19844
  import { IconArrowBackUp } from "@tabler/icons-react";
19779
19845
  var GovernanceTransactionWithdrawTokenSwapFlowDetail = lazyActionComponent(
19780
- () => import("./GovernanceTransactionWithdrawTokenSwapFlowDetail-K6NUYFPJ.js").then((module) => ({ default: module.GovernanceTransactionWithdrawTokenSwapFlowDetail }))
19846
+ () => import("./GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js").then((module) => ({ default: module.GovernanceTransactionWithdrawTokenSwapFlowDetail }))
19781
19847
  );
19782
19848
  registerActionTypeUI("qi/governance.transaction.withdraw-token-swap", {
19783
19849
  label: "Withdraw Token Swap",
@@ -19793,7 +19859,7 @@ registerActionTypeUI("qi/governance.transaction.withdraw-token-swap", {
19793
19859
  // src/mantine/blocks/action/actionTypes/governance/stakingStake/index.ts
19794
19860
  import { IconStack2 } from "@tabler/icons-react";
19795
19861
  var GovernanceStakingStakeFlowDetail = lazyActionComponent(
19796
- () => import("./GovernanceStakingStakeFlowDetail-DBAC24FE.js").then((module) => ({ default: module.GovernanceStakingStakeFlowDetail }))
19862
+ () => import("./GovernanceStakingStakeFlowDetail-Z7MCDZDV.js").then((module) => ({ default: module.GovernanceStakingStakeFlowDetail }))
19797
19863
  );
19798
19864
  registerActionTypeUI("qi/governance.staking.stake", {
19799
19865
  label: "Stake Treasury Tokens",
@@ -19809,7 +19875,7 @@ registerActionTypeUI("qi/governance.staking.stake", {
19809
19875
  // src/mantine/blocks/action/actionTypes/governance/stakingStakeToGroup/index.ts
19810
19876
  import { IconStack3 } from "@tabler/icons-react";
19811
19877
  var GovernanceStakingStakeToGroupFlowDetail = lazyActionComponent(
19812
- () => import("./GovernanceStakingStakeToGroupFlowDetail-VQZA4XTB.js").then((module) => ({ default: module.GovernanceStakingStakeToGroupFlowDetail }))
19878
+ () => import("./GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js").then((module) => ({ default: module.GovernanceStakingStakeToGroupFlowDetail }))
19813
19879
  );
19814
19880
  registerActionTypeUI("qi/governance.staking.stake-to-group", {
19815
19881
  label: "Stake to POD",
@@ -19824,7 +19890,7 @@ registerActionTypeUI("qi/governance.staking.stake-to-group", {
19824
19890
 
19825
19891
  // src/mantine/blocks/action/actionTypes/governance/authzGrant/index.ts
19826
19892
  import { IconKey as IconKey2 } from "@tabler/icons-react";
19827
- var GovernanceAuthzGrantFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzGrantFlowDetail-MTGEOXWC.js").then((module) => ({ default: module.GovernanceAuthzGrantFlowDetail })));
19893
+ var GovernanceAuthzGrantFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js").then((module) => ({ default: module.GovernanceAuthzGrantFlowDetail })));
19828
19894
  registerActionTypeUI("qi/governance.authz.grant", {
19829
19895
  label: "Grant Authorization",
19830
19896
  description: "Propose granting an address authorization to act for the POD",
@@ -19839,7 +19905,7 @@ registerActionTypeUI("qi/governance.authz.grant", {
19839
19905
  // src/mantine/blocks/action/actionTypes/governance/authzRevoke/index.ts
19840
19906
  import { IconKeyOff } from "@tabler/icons-react";
19841
19907
  var GovernanceAuthzRevokeFlowDetail = lazyActionComponent(
19842
- () => import("./GovernanceAuthzRevokeFlowDetail-DG23KMXM.js").then((module) => ({ default: module.GovernanceAuthzRevokeFlowDetail }))
19908
+ () => import("./GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js").then((module) => ({ default: module.GovernanceAuthzRevokeFlowDetail }))
19843
19909
  );
19844
19910
  registerActionTypeUI("qi/governance.authz.revoke", {
19845
19911
  label: "Revoke Authorization",
@@ -19854,7 +19920,7 @@ registerActionTypeUI("qi/governance.authz.revoke", {
19854
19920
 
19855
19921
  // src/mantine/blocks/action/actionTypes/governance/authzExec/index.ts
19856
19922
  import { IconPlayerPlay as IconPlayerPlay2 } from "@tabler/icons-react";
19857
- var GovernanceAuthzExecFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzExecFlowDetail-WJJWWFQP.js").then((module) => ({ default: module.GovernanceAuthzExecFlowDetail })));
19923
+ var GovernanceAuthzExecFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzExecFlowDetail-GWKPT7QW.js").then((module) => ({ default: module.GovernanceAuthzExecFlowDetail })));
19858
19924
  registerActionTypeUI("qi/governance.authz.exec", {
19859
19925
  label: "Execute Authorized Action",
19860
19926
  description: "Propose executing a message the POD was authorized to run",
@@ -19868,7 +19934,7 @@ registerActionTypeUI("qi/governance.authz.exec", {
19868
19934
 
19869
19935
  // src/mantine/blocks/action/actionTypes/governance/chainGovernanceVote/index.ts
19870
19936
  import { IconBuildingBank } from "@tabler/icons-react";
19871
- var GovernanceChainVoteFlowDetail = lazyActionComponent(() => import("./GovernanceChainVoteFlowDetail-OKZKMLKC.js").then((module) => ({ default: module.GovernanceChainVoteFlowDetail })));
19937
+ var GovernanceChainVoteFlowDetail = lazyActionComponent(() => import("./GovernanceChainVoteFlowDetail-BO3DJNDF.js").then((module) => ({ default: module.GovernanceChainVoteFlowDetail })));
19872
19938
  registerActionTypeUI("qi/governance.chain-governance-vote", {
19873
19939
  label: "Chain Governance Vote",
19874
19940
  description: "Propose casting the POD's vote on a chain governance proposal",
@@ -19882,7 +19948,7 @@ registerActionTypeUI("qi/governance.chain-governance-vote", {
19882
19948
 
19883
19949
  // src/mantine/blocks/action/actionTypes/governance/daoJoin/index.ts
19884
19950
  import { IconPlugConnected } from "@tabler/icons-react";
19885
- var GovernanceDaoJoinFlowDetail = lazyActionComponent(() => import("./GovernanceDaoJoinFlowDetail-LCRPX4CQ.js").then((module) => ({ default: module.GovernanceDaoJoinFlowDetail })));
19951
+ var GovernanceDaoJoinFlowDetail = lazyActionComponent(() => import("./GovernanceDaoJoinFlowDetail-GJWWQPD2.js").then((module) => ({ default: module.GovernanceDaoJoinFlowDetail })));
19886
19952
  registerActionTypeUI("qi/governance.dao.join", {
19887
19953
  label: "Join Entity",
19888
19954
  description: "Propose linking this POD as a member of another entity",
@@ -19897,7 +19963,7 @@ registerActionTypeUI("qi/governance.dao.join", {
19897
19963
  // src/mantine/blocks/action/actionTypes/governance/daoUpdateInfo/index.ts
19898
19964
  import { IconIdBadge2 } from "@tabler/icons-react";
19899
19965
  var GovernanceDaoUpdateInfoFlowDetail = lazyActionComponent(
19900
- () => import("./GovernanceDaoUpdateInfoFlowDetail-RQIFMUOD.js").then((module) => ({ default: module.GovernanceDaoUpdateInfoFlowDetail }))
19966
+ () => import("./GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js").then((module) => ({ default: module.GovernanceDaoUpdateInfoFlowDetail }))
19901
19967
  );
19902
19968
  registerActionTypeUI("qi/governance.dao.update-info", {
19903
19969
  label: "Update DAO Info",
@@ -19913,7 +19979,7 @@ registerActionTypeUI("qi/governance.dao.update-info", {
19913
19979
  // src/mantine/blocks/action/actionTypes/governance/daoManageSubDaos/index.ts
19914
19980
  import { IconSitemap } from "@tabler/icons-react";
19915
19981
  var GovernanceDaoManageSubDaosFlowDetail = lazyActionComponent(
19916
- () => import("./GovernanceDaoManageSubDaosFlowDetail-3JOXJUC2.js").then((module) => ({ default: module.GovernanceDaoManageSubDaosFlowDetail }))
19982
+ () => import("./GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js").then((module) => ({ default: module.GovernanceDaoManageSubDaosFlowDetail }))
19917
19983
  );
19918
19984
  registerActionTypeUI("qi/governance.dao.manage-subdaos", {
19919
19985
  label: "Manage SubDAOs",
@@ -19929,7 +19995,7 @@ registerActionTypeUI("qi/governance.dao.manage-subdaos", {
19929
19995
  // src/mantine/blocks/action/actionTypes/governance/daoManageStorage/index.ts
19930
19996
  import { IconDatabase as IconDatabase3 } from "@tabler/icons-react";
19931
19997
  var GovernanceDaoManageStorageFlowDetail = lazyActionComponent(
19932
- () => import("./GovernanceDaoManageStorageFlowDetail-G7MRHMZZ.js").then((module) => ({ default: module.GovernanceDaoManageStorageFlowDetail }))
19998
+ () => import("./GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js").then((module) => ({ default: module.GovernanceDaoManageStorageFlowDetail }))
19933
19999
  );
19934
20000
  registerActionTypeUI("qi/governance.dao.manage-storage", {
19935
20001
  label: "Manage Storage Items",
@@ -19945,7 +20011,7 @@ registerActionTypeUI("qi/governance.dao.manage-storage", {
19945
20011
  // src/mantine/blocks/action/actionTypes/governance/daoAdminExec/index.ts
19946
20012
  import { IconShieldCog } from "@tabler/icons-react";
19947
20013
  var GovernanceDaoAdminExecFlowDetail = lazyActionComponent(
19948
- () => import("./GovernanceDaoAdminExecFlowDetail-PUQSONHN.js").then((module) => ({ default: module.GovernanceDaoAdminExecFlowDetail }))
20014
+ () => import("./GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js").then((module) => ({ default: module.GovernanceDaoAdminExecFlowDetail }))
19949
20015
  );
19950
20016
  registerActionTypeUI("qi/governance.dao.admin-exec", {
19951
20017
  label: "DAO Admin Execute",
@@ -19961,7 +20027,7 @@ registerActionTypeUI("qi/governance.dao.admin-exec", {
19961
20027
  // src/mantine/blocks/action/actionTypes/governance/daoAcceptToMarketplace/index.ts
19962
20028
  import { IconRosetteDiscountCheck } from "@tabler/icons-react";
19963
20029
  var GovernanceDaoAcceptToMarketplaceFlowDetail = lazyActionComponent(
19964
- () => import("./GovernanceDaoAcceptToMarketplaceFlowDetail-A2BO5RMM.js").then((module) => ({ default: module.GovernanceDaoAcceptToMarketplaceFlowDetail }))
20030
+ () => import("./GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js").then((module) => ({ default: module.GovernanceDaoAcceptToMarketplaceFlowDetail }))
19965
20031
  );
19966
20032
  registerActionTypeUI("qi/governance.dao.accept-to-marketplace", {
19967
20033
  label: "Accept to Marketplace",
@@ -19977,7 +20043,7 @@ registerActionTypeUI("qi/governance.dao.accept-to-marketplace", {
19977
20043
  // src/mantine/blocks/action/actionTypes/governance/daoCreateEntity/index.ts
19978
20044
  import { IconCubePlus } from "@tabler/icons-react";
19979
20045
  var GovernanceDaoCreateEntityFlowDetail = lazyActionComponent(
19980
- () => import("./GovernanceDaoCreateEntityFlowDetail-6PKHZQHG.js").then((module) => ({ default: module.GovernanceDaoCreateEntityFlowDetail }))
20046
+ () => import("./GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js").then((module) => ({ default: module.GovernanceDaoCreateEntityFlowDetail }))
19981
20047
  );
19982
20048
  registerActionTypeUI("qi/governance.dao.create-entity", {
19983
20049
  label: "Create Entity",
@@ -19992,7 +20058,7 @@ registerActionTypeUI("qi/governance.dao.create-entity", {
19992
20058
 
19993
20059
  // src/mantine/blocks/action/actionTypes/governance/nftBurn/index.ts
19994
20060
  import { IconFlame } from "@tabler/icons-react";
19995
- var GovernanceNftBurnFlowDetail = lazyActionComponent(() => import("./GovernanceNftBurnFlowDetail-BXZCQ3NX.js").then((module) => ({ default: module.GovernanceNftBurnFlowDetail })));
20061
+ var GovernanceNftBurnFlowDetail = lazyActionComponent(() => import("./GovernanceNftBurnFlowDetail-MG3S2DZB.js").then((module) => ({ default: module.GovernanceNftBurnFlowDetail })));
19996
20062
  registerActionTypeUI("qi/governance.nft.burn", {
19997
20063
  label: "Burn NFT",
19998
20064
  description: "Propose permanently burning an NFT held by the treasury",
@@ -20007,7 +20073,7 @@ registerActionTypeUI("qi/governance.nft.burn", {
20007
20073
  // src/mantine/blocks/action/actionTypes/governance/nftTransfer/index.ts
20008
20074
  import { IconSend as IconSend5 } from "@tabler/icons-react";
20009
20075
  var GovernanceNftTransferFlowDetail = lazyActionComponent(
20010
- () => import("./GovernanceNftTransferFlowDetail-N4HJVV2Y.js").then((module) => ({ default: module.GovernanceNftTransferFlowDetail }))
20076
+ () => import("./GovernanceNftTransferFlowDetail-27CRQVTA.js").then((module) => ({ default: module.GovernanceNftTransferFlowDetail }))
20011
20077
  );
20012
20078
  registerActionTypeUI("qi/governance.nft.transfer", {
20013
20079
  label: "Transfer NFT",
@@ -20023,7 +20089,7 @@ registerActionTypeUI("qi/governance.nft.transfer", {
20023
20089
  // src/mantine/blocks/action/actionTypes/governance/nftManageCollections/index.ts
20024
20090
  import { IconPhotoCog } from "@tabler/icons-react";
20025
20091
  var GovernanceNftManageCollectionsFlowDetail = lazyActionComponent(
20026
- () => import("./GovernanceNftManageCollectionsFlowDetail-UNX5EONL.js").then((module) => ({ default: module.GovernanceNftManageCollectionsFlowDetail }))
20092
+ () => import("./GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js").then((module) => ({ default: module.GovernanceNftManageCollectionsFlowDetail }))
20027
20093
  );
20028
20094
  registerActionTypeUI("qi/governance.nft.manage-collections", {
20029
20095
  label: "Manage NFT Collections",
@@ -20039,7 +20105,7 @@ registerActionTypeUI("qi/governance.nft.manage-collections", {
20039
20105
  // src/mantine/blocks/action/actionTypes/governance/contractExecute/index.ts
20040
20106
  import { IconTerminal2 } from "@tabler/icons-react";
20041
20107
  var GovernanceContractExecuteFlowDetail = lazyActionComponent(
20042
- () => import("./GovernanceContractExecuteFlowDetail-DNCHU5WZ.js").then((module) => ({ default: module.GovernanceContractExecuteFlowDetail }))
20108
+ () => import("./GovernanceContractExecuteFlowDetail-JHIXCNXS.js").then((module) => ({ default: module.GovernanceContractExecuteFlowDetail }))
20043
20109
  );
20044
20110
  registerActionTypeUI("qi/governance.contract.execute", {
20045
20111
  label: "Execute Contract",
@@ -20055,7 +20121,7 @@ registerActionTypeUI("qi/governance.contract.execute", {
20055
20121
  // src/mantine/blocks/action/actionTypes/governance/contractInstantiate/index.ts
20056
20122
  import { IconRocket } from "@tabler/icons-react";
20057
20123
  var GovernanceContractInstantiateFlowDetail = lazyActionComponent(
20058
- () => import("./GovernanceContractInstantiateFlowDetail-AILJZJGC.js").then((module) => ({ default: module.GovernanceContractInstantiateFlowDetail }))
20124
+ () => import("./GovernanceContractInstantiateFlowDetail-XWSI2HXG.js").then((module) => ({ default: module.GovernanceContractInstantiateFlowDetail }))
20059
20125
  );
20060
20126
  registerActionTypeUI("qi/governance.contract.instantiate", {
20061
20127
  label: "Instantiate Contract",
@@ -20071,7 +20137,7 @@ registerActionTypeUI("qi/governance.contract.instantiate", {
20071
20137
  // src/mantine/blocks/action/actionTypes/governance/contractMigrate/index.ts
20072
20138
  import { IconTransform } from "@tabler/icons-react";
20073
20139
  var GovernanceContractMigrateFlowDetail = lazyActionComponent(
20074
- () => import("./GovernanceContractMigrateFlowDetail-IKM6JYCI.js").then((module) => ({ default: module.GovernanceContractMigrateFlowDetail }))
20140
+ () => import("./GovernanceContractMigrateFlowDetail-W2DEBKKU.js").then((module) => ({ default: module.GovernanceContractMigrateFlowDetail }))
20075
20141
  );
20076
20142
  registerActionTypeUI("qi/governance.contract.migrate", {
20077
20143
  label: "Migrate Contract",
@@ -20087,7 +20153,7 @@ registerActionTypeUI("qi/governance.contract.migrate", {
20087
20153
  // src/mantine/blocks/action/actionTypes/governance/contractUpdateAdmin/index.ts
20088
20154
  import { IconUserShield } from "@tabler/icons-react";
20089
20155
  var GovernanceContractUpdateAdminFlowDetail = lazyActionComponent(
20090
- () => import("./GovernanceContractUpdateAdminFlowDetail-76WJU356.js").then((module) => ({ default: module.GovernanceContractUpdateAdminFlowDetail }))
20156
+ () => import("./GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js").then((module) => ({ default: module.GovernanceContractUpdateAdminFlowDetail }))
20091
20157
  );
20092
20158
  registerActionTypeUI("qi/governance.contract.update-admin", {
20093
20159
  label: "Update Contract Admin",
@@ -20103,7 +20169,7 @@ registerActionTypeUI("qi/governance.contract.update-admin", {
20103
20169
  // src/mantine/blocks/action/actionTypes/governance/contractManageCw20/index.ts
20104
20170
  import { IconCoinBitcoin } from "@tabler/icons-react";
20105
20171
  var GovernanceContractManageCw20FlowDetail = lazyActionComponent(
20106
- () => import("./GovernanceContractManageCw20FlowDetail-YUZU7NB3.js").then((module) => ({ default: module.GovernanceContractManageCw20FlowDetail }))
20172
+ () => import("./GovernanceContractManageCw20FlowDetail-5QI3FBNT.js").then((module) => ({ default: module.GovernanceContractManageCw20FlowDetail }))
20107
20173
  );
20108
20174
  registerActionTypeUI("qi/governance.contract.manage-cw20", {
20109
20175
  label: "Manage Token List",
@@ -20119,7 +20185,7 @@ registerActionTypeUI("qi/governance.contract.manage-cw20", {
20119
20185
  // src/mantine/blocks/action/actionTypes/governance/validatorActions/index.ts
20120
20186
  import { IconServerBolt } from "@tabler/icons-react";
20121
20187
  var GovernanceValidatorActionsFlowDetail = lazyActionComponent(
20122
- () => import("./GovernanceValidatorActionsFlowDetail-6TALBJ3L.js").then((module) => ({ default: module.GovernanceValidatorActionsFlowDetail }))
20188
+ () => import("./GovernanceValidatorActionsFlowDetail-3YSPIIVG.js").then((module) => ({ default: module.GovernanceValidatorActionsFlowDetail }))
20123
20189
  );
20124
20190
  registerActionTypeUI("qi/governance.validator.actions", {
20125
20191
  label: "Validator Actions",
@@ -20135,7 +20201,7 @@ registerActionTypeUI("qi/governance.validator.actions", {
20135
20201
  // src/mantine/blocks/action/actionTypes/governance/customMessage/index.ts
20136
20202
  import { IconCode as IconCode3 } from "@tabler/icons-react";
20137
20203
  var GovernanceCustomMessageFlowDetail = lazyActionComponent(
20138
- () => import("./GovernanceCustomMessageFlowDetail-I2BLIIHM.js").then((module) => ({ default: module.GovernanceCustomMessageFlowDetail }))
20204
+ () => import("./GovernanceCustomMessageFlowDetail-NNTHVM5D.js").then((module) => ({ default: module.GovernanceCustomMessageFlowDetail }))
20139
20205
  );
20140
20206
  registerActionTypeUI("qi/governance.custom-message", {
20141
20207
  label: "Custom Message",
@@ -20150,8 +20216,8 @@ registerActionTypeUI("qi/governance.custom-message", {
20150
20216
 
20151
20217
  // src/mantine/blocks/action/actionTypes/httpRequest/index.ts
20152
20218
  import { IconWorld as IconWorld2 } from "@tabler/icons-react";
20153
- var HttpRequestConfig = lazyActionComponent(() => import("./HttpRequestConfig-PZAX5VZO.js").then((module) => ({ default: module.HttpRequestConfig })));
20154
- var HttpRequestFlowDetail = lazyActionComponent(() => import("./HttpRequestFlowDetail-H3IWKJYT.js").then((module) => ({ default: module.HttpRequestFlowDetail })));
20219
+ var HttpRequestConfig = lazyActionComponent(() => import("./HttpRequestConfig-A3UIM3K2.js").then((module) => ({ default: module.HttpRequestConfig })));
20220
+ var HttpRequestFlowDetail = lazyActionComponent(() => import("./HttpRequestFlowDetail-VWD64O3P.js").then((module) => ({ default: module.HttpRequestFlowDetail })));
20155
20221
  registerActionTypeUI("qi/http.request", {
20156
20222
  label: "HTTP Request",
20157
20223
  description: "Make an HTTP API request",
@@ -20162,7 +20228,7 @@ registerActionTypeUI("qi/http.request", {
20162
20228
 
20163
20229
  // src/mantine/blocks/action/actionTypes/emailSend/index.ts
20164
20230
  import { IconMail as IconMail6 } from "@tabler/icons-react";
20165
- var EmailSendConfig = lazyActionComponent(() => import("./EmailSendConfig-OVPVZNXQ.js").then((module) => ({ default: module.EmailSendConfig })));
20231
+ var EmailSendConfig = lazyActionComponent(() => import("./EmailSendConfig-O3XDS5IE.js").then((module) => ({ default: module.EmailSendConfig })));
20166
20232
  registerActionTypeUI("qi/email.send", {
20167
20233
  label: "Email",
20168
20234
  description: "Send an email to a user",
@@ -20172,8 +20238,8 @@ registerActionTypeUI("qi/email.send", {
20172
20238
 
20173
20239
  // src/mantine/blocks/action/actionTypes/bid/index.ts
20174
20240
  import { IconBriefcase as IconBriefcase2 } from "@tabler/icons-react";
20175
- var BidConfig = lazyActionComponent(() => import("./BidConfig-3NEUNXN3.js").then((module) => ({ default: module.BidConfig })));
20176
- var BidFlowDetail = lazyActionComponent(() => import("./BidFlowDetail-NJJOKPMS.js").then((module) => ({ default: module.BidFlowDetail })));
20241
+ var BidConfig = lazyActionComponent(() => import("./BidConfig-ZH625SNZ.js").then((module) => ({ default: module.BidConfig })));
20242
+ var BidFlowDetail = lazyActionComponent(() => import("./BidFlowDetail-SZMKY75S.js").then((module) => ({ default: module.BidFlowDetail })));
20177
20243
  registerActionTypeUI("qi/bid.submit", {
20178
20244
  label: "Bid",
20179
20245
  description: "Submit a bid application",
@@ -20185,8 +20251,8 @@ registerActionTypeUI("qi/bid.submit", {
20185
20251
 
20186
20252
  // src/mantine/blocks/action/actionTypes/evaluateBid/index.ts
20187
20253
  import { IconScale as IconScale2 } from "@tabler/icons-react";
20188
- var EvaluateBidConfig = lazyActionComponent(() => import("./EvaluateBidConfig-7VDC3NXD.js").then((module) => ({ default: module.EvaluateBidConfig })));
20189
- var EvaluateBidFlowDetail = lazyActionComponent(() => import("./EvaluateBidFlowDetail-6VDGVP3L.js").then((module) => ({ default: module.EvaluateBidFlowDetail })));
20254
+ var EvaluateBidConfig = lazyActionComponent(() => import("./EvaluateBidConfig-ZU7QUFXL.js").then((module) => ({ default: module.EvaluateBidConfig })));
20255
+ var EvaluateBidFlowDetail = lazyActionComponent(() => import("./EvaluateBidFlowDetail-IATWBOE5.js").then((module) => ({ default: module.EvaluateBidFlowDetail })));
20190
20256
  registerActionTypeUI("qi/bid.evaluate", {
20191
20257
  label: "Evaluate Bid",
20192
20258
  description: "Approve or reject a bid",
@@ -20198,8 +20264,8 @@ registerActionTypeUI("qi/bid.evaluate", {
20198
20264
 
20199
20265
  // src/mantine/blocks/action/actionTypes/claim/index.ts
20200
20266
  import { IconFileText as IconFileText5 } from "@tabler/icons-react";
20201
- var ClaimConfig = lazyActionComponent(() => import("./ClaimConfig-AJERKKQX.js").then((module) => ({ default: module.ClaimConfig })));
20202
- var ClaimFlowDetail = lazyActionComponent(() => import("./ClaimFlowDetail-4AX4E5EO.js").then((module) => ({ default: module.ClaimFlowDetail })));
20267
+ var ClaimConfig = lazyActionComponent(() => import("./ClaimConfig-PMRVROQ7.js").then((module) => ({ default: module.ClaimConfig })));
20268
+ var ClaimFlowDetail = lazyActionComponent(() => import("./ClaimFlowDetail-3364FIDU.js").then((module) => ({ default: module.ClaimFlowDetail })));
20203
20269
  registerActionTypeUI("qi/claim.submit", {
20204
20270
  label: "Claim",
20205
20271
  description: "Submit a claim",
@@ -20211,8 +20277,8 @@ registerActionTypeUI("qi/claim.submit", {
20211
20277
 
20212
20278
  // src/mantine/blocks/action/actionTypes/collection/index.ts
20213
20279
  import { IconFolders } from "@tabler/icons-react";
20214
- var CollectionLifecycleConfig = lazyActionComponent(() => import("./CollectionLifecycleConfig-VLDN3YDI.js").then((module) => ({ default: module.CollectionLifecycleConfig })));
20215
- var CollectionLifecycleFlowDetail = lazyActionComponent(() => import("./CollectionLifecycleFlowDetail-UIEUQTK2.js").then((module) => ({ default: module.CollectionLifecycleFlowDetail })));
20280
+ var CollectionLifecycleConfig = lazyActionComponent(() => import("./CollectionLifecycleConfig-YPTZZJ3S.js").then((module) => ({ default: module.CollectionLifecycleConfig })));
20281
+ var CollectionLifecycleFlowDetail = lazyActionComponent(() => import("./CollectionLifecycleFlowDetail-OD7OZH6W.js").then((module) => ({ default: module.CollectionLifecycleFlowDetail })));
20216
20282
  registerActionTypeUI("qi/collection.lifecycle", {
20217
20283
  label: "Claim Collection",
20218
20284
  description: "Create and manage a claim collection lifecycle",
@@ -20224,8 +20290,8 @@ registerActionTypeUI("qi/collection.lifecycle", {
20224
20290
 
20225
20291
  // src/mantine/blocks/action/actionTypes/collectionUsers/index.ts
20226
20292
  import { IconUsers as IconUsers6 } from "@tabler/icons-react";
20227
- var CollectionUsersConfig = lazyActionComponent(() => import("./CollectionUsersConfig-B2GOEJRC.js").then((module) => ({ default: module.CollectionUsersConfig })));
20228
- var CollectionUsersFlowDetail = lazyActionComponent(() => import("./CollectionUsersFlowDetail-LXH6BL5P.js").then((module) => ({ default: module.CollectionUsersFlowDetail })));
20293
+ var CollectionUsersConfig = lazyActionComponent(() => import("./CollectionUsersConfig-ETJM2G23.js").then((module) => ({ default: module.CollectionUsersConfig })));
20294
+ var CollectionUsersFlowDetail = lazyActionComponent(() => import("./CollectionUsersFlowDetail-AMPT7UEV.js").then((module) => ({ default: module.CollectionUsersFlowDetail })));
20229
20295
  registerActionTypeUI("qi/collection.users", {
20230
20296
  label: "Collection Users",
20231
20297
  description: "Add, list and revoke claim collection contributors & evaluators",
@@ -20247,8 +20313,8 @@ registerActionTypeUI("qi/collection.users", {
20247
20313
 
20248
20314
  // src/mantine/blocks/action/actionTypes/evalEngine/index.ts
20249
20315
  import { IconClipboardCheck as IconClipboardCheck2 } from "@tabler/icons-react";
20250
- var EvalEngineConfig = lazyActionComponent(() => import("./EvalEngineConfig-BTCVWQ2D.js").then((module) => ({ default: module.EvalEngineConfig })));
20251
- var EvalEngineFlowDetail = lazyActionComponent(() => import("./EvalEngineFlowDetail-JTD2226A.js").then((module) => ({ default: module.EvalEngineFlowDetail })));
20316
+ var EvalEngineConfig = lazyActionComponent(() => import("./EvalEngineConfig-5ZBXA3Q6.js").then((module) => ({ default: module.EvalEngineConfig })));
20317
+ var EvalEngineFlowDetail = lazyActionComponent(() => import("./EvalEngineFlowDetail-YL3FFONH.js").then((module) => ({ default: module.EvalEngineFlowDetail })));
20252
20318
  registerActionTypeUI(EVAL_ENGINE_ACTION_TYPE, {
20253
20319
  label: "Evaluation Engine",
20254
20320
  description: "Enroll a collection and publish its claim-approval rules in one step",
@@ -20262,8 +20328,8 @@ registerActionTypeUI(EVAL_ENGINE_ACTION_TYPE, {
20262
20328
 
20263
20329
  // src/mantine/blocks/action/actionTypes/evaluateClaim/index.ts
20264
20330
  import { IconChecks as IconChecks4 } from "@tabler/icons-react";
20265
- var EvaluateClaimConfig = lazyActionComponent(() => import("./EvaluateClaimConfig-6CQHIXJV.js").then((module) => ({ default: module.EvaluateClaimConfig })));
20266
- var EvaluateClaimFlowDetail = lazyActionComponent(() => import("./EvaluateClaimFlowDetail-JBYINXH2.js").then((module) => ({ default: module.EvaluateClaimFlowDetail })));
20331
+ var EvaluateClaimConfig = lazyActionComponent(() => import("./EvaluateClaimConfig-HEYNWGSN.js").then((module) => ({ default: module.EvaluateClaimConfig })));
20332
+ var EvaluateClaimFlowDetail = lazyActionComponent(() => import("./EvaluateClaimFlowDetail-TOX53BGP.js").then((module) => ({ default: module.EvaluateClaimFlowDetail })));
20267
20333
  registerActionTypeUI("qi/claim.evaluate", {
20268
20334
  label: "Evaluate Claim",
20269
20335
  description: "Approve or reject a claim",
@@ -20275,8 +20341,8 @@ registerActionTypeUI("qi/claim.evaluate", {
20275
20341
 
20276
20342
  // src/mantine/blocks/action/actionTypes/proposalCreate/index.ts
20277
20343
  import { IconFileText as IconFileText6 } from "@tabler/icons-react";
20278
- var ProposalCreateConfig = lazyActionComponent(() => import("./ProposalCreateConfig-PJ4AQULI.js").then((module) => ({ default: module.ProposalCreateConfig })));
20279
- var ProposalCreateFlowDetail = lazyActionComponent(() => import("./ProposalCreateFlowDetail-M3XGZI66.js").then((module) => ({ default: module.ProposalCreateFlowDetail })));
20344
+ var ProposalCreateConfig = lazyActionComponent(() => import("./ProposalCreateConfig-W3XNV7SH.js").then((module) => ({ default: module.ProposalCreateConfig })));
20345
+ var ProposalCreateFlowDetail = lazyActionComponent(() => import("./ProposalCreateFlowDetail-2ZNJZMSY.js").then((module) => ({ default: module.ProposalCreateFlowDetail })));
20280
20346
  registerActionTypeUI("qi/proposal.create", {
20281
20347
  label: "Create Proposal",
20282
20348
  description: "Create an on-chain governance proposal",
@@ -20287,8 +20353,8 @@ registerActionTypeUI("qi/proposal.create", {
20287
20353
 
20288
20354
  // src/mantine/blocks/action/actionTypes/proposalVote/index.ts
20289
20355
  import { IconThumbUp as IconThumbUp2 } from "@tabler/icons-react";
20290
- var ProposalVoteConfig = lazyActionComponent(() => import("./ProposalVoteConfig-LYPYZDHK.js").then((module) => ({ default: module.ProposalVoteConfig })));
20291
- var ProposalVoteFlowDetail = lazyActionComponent(() => import("./ProposalVoteFlowDetail-JZ2KISZX.js").then((module) => ({ default: module.ProposalVoteFlowDetail })));
20356
+ var ProposalVoteConfig = lazyActionComponent(() => import("./ProposalVoteConfig-DDEF76CL.js").then((module) => ({ default: module.ProposalVoteConfig })));
20357
+ var ProposalVoteFlowDetail = lazyActionComponent(() => import("./ProposalVoteFlowDetail-6BOYU4XJ.js").then((module) => ({ default: module.ProposalVoteFlowDetail })));
20292
20358
  registerActionTypeUI("qi/proposal.vote", {
20293
20359
  label: "Vote on Proposal",
20294
20360
  description: "Cast a vote on a governance proposal",
@@ -20300,7 +20366,7 @@ registerActionTypeUI("qi/proposal.vote", {
20300
20366
  // src/mantine/blocks/action/actionTypes/protocolSelect/index.ts
20301
20367
  import { IconBolt as IconBolt10 } from "@tabler/icons-react";
20302
20368
  var ProtocolSelectConfig = lazyActionComponent(() => import("./ProtocolSelectConfig-S5U3P6K7.js").then((module) => ({ default: module.ProtocolSelectConfig })));
20303
- var ProtocolSelectFlowDetail = lazyActionComponent(() => import("./ProtocolSelectFlowDetail-GNQD3G7Y.js").then((module) => ({ default: module.ProtocolSelectFlowDetail })));
20369
+ var ProtocolSelectFlowDetail = lazyActionComponent(() => import("./ProtocolSelectFlowDetail-IKYJQZAO.js").then((module) => ({ default: module.ProtocolSelectFlowDetail })));
20304
20370
  registerActionTypeUI("qi/protocol.select", {
20305
20371
  label: "Select Protocol",
20306
20372
  description: "Select a protocol from a configured list",
@@ -20312,7 +20378,7 @@ registerActionTypeUI("qi/protocol.select", {
20312
20378
  // src/mantine/blocks/action/actionTypes/domainSign/index.ts
20313
20379
  import { IconSignature as IconSignature3 } from "@tabler/icons-react";
20314
20380
  var DomainSignConfig = lazyActionComponent(() => import("./DomainSignConfig-XFIXROVK.js").then((module) => ({ default: module.DomainSignConfig })));
20315
- var DomainSignFlowDetail = lazyActionComponent(() => import("./DomainSignFlowDetail-5UDKSTBX.js").then((module) => ({ default: module.DomainSignFlowDetail })));
20381
+ var DomainSignFlowDetail = lazyActionComponent(() => import("./DomainSignFlowDetail-5ERYSTPG.js").then((module) => ({ default: module.DomainSignFlowDetail })));
20316
20382
  registerActionTypeUI("qi/domain.sign", {
20317
20383
  label: "Sign Domain",
20318
20384
  description: "Sign the domain card credential and create the entity on-chain",
@@ -20324,7 +20390,7 @@ registerActionTypeUI("qi/domain.sign", {
20324
20390
  // src/mantine/blocks/action/actionTypes/domainCardPreview/index.ts
20325
20391
  import { IconBuildingEstate as IconBuildingEstate2 } from "@tabler/icons-react";
20326
20392
  var DomainCardPreviewConfig = lazyActionComponent(() => import("./DomainCardPreviewConfig-Q3X5M4WF.js").then((module) => ({ default: module.DomainCardPreviewConfig })));
20327
- var DomainCardPreviewFlowDetail = lazyActionComponent(() => import("./DomainCardPreviewFlowDetail-5T6KQYUP.js").then((module) => ({ default: module.DomainCardPreviewFlowDetail })));
20393
+ var DomainCardPreviewFlowDetail = lazyActionComponent(() => import("./DomainCardPreviewFlowDetail-M7FPXS4N.js").then((module) => ({ default: module.DomainCardPreviewFlowDetail })));
20328
20394
  registerActionTypeUI("qi/domain.card-preview", {
20329
20395
  label: "Preview Domain Card",
20330
20396
  description: "Review an oracle-enriched domain card and approve it before signing",
@@ -20335,8 +20401,8 @@ registerActionTypeUI("qi/domain.card-preview", {
20335
20401
 
20336
20402
  // src/mantine/blocks/action/actionTypes/oracle/index.ts
20337
20403
  import { IconSparkles as IconSparkles6 } from "@tabler/icons-react";
20338
- var OracleConfig = lazyActionComponent(() => import("./OracleConfig-RW55I2YD.js").then((module) => ({ default: module.OracleConfig })));
20339
- var OracleFlowDetail = lazyActionComponent(() => import("./OracleFlowDetail-RXRNN7LG.js").then((module) => ({ default: module.OracleFlowDetail })));
20404
+ var OracleConfig = lazyActionComponent(() => import("./OracleConfig-KUPPRFL2.js").then((module) => ({ default: module.OracleConfig })));
20405
+ var OracleFlowDetail = lazyActionComponent(() => import("./OracleFlowDetail-FEPE3YYU.js").then((module) => ({ default: module.OracleFlowDetail })));
20340
20406
  registerActionTypeUI("oracle", {
20341
20407
  label: "Ask your Agent",
20342
20408
  description: "Send a prompt to the Personal Agent",
@@ -20348,7 +20414,7 @@ registerActionTypeUI("oracle", {
20348
20414
  // src/mantine/blocks/action/actionTypes/oraclePrompt/index.ts
20349
20415
  import { IconMessage } from "@tabler/icons-react";
20350
20416
  var OraclePromptConfig = lazyActionComponent(() => import("./OraclePromptConfig-YBRESISH.js").then((module) => ({ default: module.OraclePromptConfig })));
20351
- var OraclePromptFlowDetail = lazyActionComponent(() => import("./OraclePromptFlowDetail-ST7EC3H7.js").then((module) => ({ default: module.OraclePromptFlowDetail })));
20417
+ var OraclePromptFlowDetail = lazyActionComponent(() => import("./OraclePromptFlowDetail-2B55RVOO.js").then((module) => ({ default: module.OraclePromptFlowDetail })));
20352
20418
  registerActionTypeUI("oracle.prompt", {
20353
20419
  label: "Oracle Prompt",
20354
20420
  description: "Send a prompt to the Personal Agent",
@@ -20360,7 +20426,7 @@ registerActionTypeUI("oracle.prompt", {
20360
20426
  // src/mantine/blocks/action/actionTypes/formSubmit/index.ts
20361
20427
  import { IconClipboard, IconClipboardCheck as IconClipboardCheck3 } from "@tabler/icons-react";
20362
20428
  var FormSubmitConfig = lazyActionComponent(() => import("./FormSubmitConfig-UFZYMLUN.js").then((module) => ({ default: module.FormSubmitConfig })));
20363
- var FormSubmitFlowDetail = lazyActionComponent(() => import("./FormSubmitFlowDetail-3KNCCNFI.js").then((module) => ({ default: module.FormSubmitFlowDetail })));
20429
+ var FormSubmitFlowDetail = lazyActionComponent(() => import("./FormSubmitFlowDetail-CVSUWEAW.js").then((module) => ({ default: module.FormSubmitFlowDetail })));
20364
20430
  registerActionTypeUI("qi/form.submit", {
20365
20431
  label: "Form Submit",
20366
20432
  description: "Submit a form response",
@@ -20378,8 +20444,8 @@ registerActionTypeUI("qi/human.form.submit", {
20378
20444
 
20379
20445
  // src/mantine/blocks/action/actionTypes/credentialStore/index.ts
20380
20446
  import { IconShieldCheck as IconShieldCheck14 } from "@tabler/icons-react";
20381
- var CredentialStoreConfig = lazyActionComponent(() => import("./CredentialStoreConfig-V3YSYSIT.js").then((module) => ({ default: module.CredentialStoreConfig })));
20382
- var CredentialStoreFlowDetail = lazyActionComponent(() => import("./CredentialStoreFlowDetail-TWZUFVAT.js").then((module) => ({ default: module.CredentialStoreFlowDetail })));
20447
+ var CredentialStoreConfig = lazyActionComponent(() => import("./CredentialStoreConfig-ZQFLCBDT.js").then((module) => ({ default: module.CredentialStoreConfig })));
20448
+ var CredentialStoreFlowDetail = lazyActionComponent(() => import("./CredentialStoreFlowDetail-5LRH7NH5.js").then((module) => ({ default: module.CredentialStoreFlowDetail })));
20383
20449
  registerActionTypeUI("qi/credential.store", {
20384
20450
  label: "Store Credential",
20385
20451
  description: "Store a verifiable credential in Matrix room state",
@@ -20390,7 +20456,7 @@ registerActionTypeUI("qi/credential.store", {
20390
20456
 
20391
20457
  // src/mantine/blocks/action/actionTypes/matrixDm/index.ts
20392
20458
  import { IconMessageCircle } from "@tabler/icons-react";
20393
- var MatrixDmConfig = lazyActionComponent(() => import("./MatrixDmConfig-MFC6DXMH.js").then((module) => ({ default: module.MatrixDmConfig })));
20459
+ var MatrixDmConfig = lazyActionComponent(() => import("./MatrixDmConfig-DRY27FAM.js").then((module) => ({ default: module.MatrixDmConfig })));
20394
20460
  registerActionTypeUI("qi/matrix.dm", {
20395
20461
  label: "Matrix DM",
20396
20462
  description: "Send a direct message via Matrix",
@@ -20400,8 +20466,8 @@ registerActionTypeUI("qi/matrix.dm", {
20400
20466
 
20401
20467
  // src/mantine/blocks/action/actionTypes/calendar/eventCreate/index.ts
20402
20468
  import { IconCalendarPlus } from "@tabler/icons-react";
20403
- var CalendarEventCreateConfig = lazyActionComponent(() => import("./CalendarEventCreateConfig-AR5VZCNA.js").then((module) => ({ default: module.CalendarEventCreateConfig })));
20404
- var CalendarEventCreateFlowDetail = lazyActionComponent(() => import("./CalendarEventCreateFlowDetail-NTLCWABI.js").then((module) => ({ default: module.CalendarEventCreateFlowDetail })));
20469
+ var CalendarEventCreateConfig = lazyActionComponent(() => import("./CalendarEventCreateConfig-F7EYC4VL.js").then((module) => ({ default: module.CalendarEventCreateConfig })));
20470
+ var CalendarEventCreateFlowDetail = lazyActionComponent(() => import("./CalendarEventCreateFlowDetail-JMYDUZRK.js").then((module) => ({ default: module.CalendarEventCreateFlowDetail })));
20405
20471
  registerActionTypeUI("qi/googlecalendar.event.create-self", {
20406
20472
  label: "Create Calendar event",
20407
20473
  description: "Create an event on a connected Calendar",
@@ -20413,8 +20479,8 @@ registerActionTypeUI("qi/googlecalendar.event.create-self", {
20413
20479
 
20414
20480
  // src/mantine/blocks/action/actionTypes/calendar/eventUpdate/index.ts
20415
20481
  import { IconCalendarEvent } from "@tabler/icons-react";
20416
- var CalendarEventUpdateConfig = lazyActionComponent(() => import("./CalendarEventUpdateConfig-VPNLMHO3.js").then((module) => ({ default: module.CalendarEventUpdateConfig })));
20417
- var CalendarEventUpdateFlowDetail = lazyActionComponent(() => import("./CalendarEventUpdateFlowDetail-NQFXP7QM.js").then((module) => ({ default: module.CalendarEventUpdateFlowDetail })));
20482
+ var CalendarEventUpdateConfig = lazyActionComponent(() => import("./CalendarEventUpdateConfig-SARWZZG4.js").then((module) => ({ default: module.CalendarEventUpdateConfig })));
20483
+ var CalendarEventUpdateFlowDetail = lazyActionComponent(() => import("./CalendarEventUpdateFlowDetail-KZ2FG76Z.js").then((module) => ({ default: module.CalendarEventUpdateFlowDetail })));
20418
20484
  registerActionTypeUI("qi/googlecalendar.event.update-self", {
20419
20485
  label: "Update Calendar event",
20420
20486
  description: "Replace an existing Calendar event",
@@ -20426,8 +20492,8 @@ registerActionTypeUI("qi/googlecalendar.event.update-self", {
20426
20492
 
20427
20493
  // src/mantine/blocks/action/actionTypes/calendar/eventList/index.ts
20428
20494
  import { IconCalendarStats } from "@tabler/icons-react";
20429
- var CalendarEventListConfig = lazyActionComponent(() => import("./CalendarEventListConfig-BLET3XIM.js").then((module) => ({ default: module.CalendarEventListConfig })));
20430
- var CalendarEventListFlowDetail = lazyActionComponent(() => import("./CalendarEventListFlowDetail-IRF3TICA.js").then((module) => ({ default: module.CalendarEventListFlowDetail })));
20495
+ var CalendarEventListConfig = lazyActionComponent(() => import("./CalendarEventListConfig-RRIV7IZG.js").then((module) => ({ default: module.CalendarEventListConfig })));
20496
+ var CalendarEventListFlowDetail = lazyActionComponent(() => import("./CalendarEventListFlowDetail-6LN4I3SI.js").then((module) => ({ default: module.CalendarEventListFlowDetail })));
20431
20497
  registerActionTypeUI("qi/googlecalendar.event.list-self", {
20432
20498
  label: "List Calendar events",
20433
20499
  description: "Fetch events from a connected Calendar",
@@ -20439,8 +20505,8 @@ registerActionTypeUI("qi/googlecalendar.event.list-self", {
20439
20505
 
20440
20506
  // src/mantine/blocks/action/actionTypes/xero/contactCreate/index.ts
20441
20507
  import { IconUserPlus as IconUserPlus3 } from "@tabler/icons-react";
20442
- var XeroContactCreateConfig = lazyActionComponent(() => import("./XeroContactCreateConfig-6LS7JANF.js").then((module) => ({ default: module.XeroContactCreateConfig })));
20443
- var XeroContactCreateFlowDetail = lazyActionComponent(() => import("./XeroContactCreateFlowDetail-6YHUS6TT.js").then((module) => ({ default: module.XeroContactCreateFlowDetail })));
20508
+ var XeroContactCreateConfig = lazyActionComponent(() => import("./XeroContactCreateConfig-TKJKZAC4.js").then((module) => ({ default: module.XeroContactCreateConfig })));
20509
+ var XeroContactCreateFlowDetail = lazyActionComponent(() => import("./XeroContactCreateFlowDetail-O3ZITUCC.js").then((module) => ({ default: module.XeroContactCreateFlowDetail })));
20444
20510
  registerActionTypeUI("qi/xero.contact.create", {
20445
20511
  label: "Create Xero contact",
20446
20512
  description: "Add a customer or supplier in Xero",
@@ -20452,8 +20518,8 @@ registerActionTypeUI("qi/xero.contact.create", {
20452
20518
 
20453
20519
  // src/mantine/blocks/action/actionTypes/xero/invoiceCreate/index.ts
20454
20520
  import { IconReceipt } from "@tabler/icons-react";
20455
- var XeroInvoiceCreateConfig = lazyActionComponent(() => import("./XeroInvoiceCreateConfig-YF456J5Y.js").then((module) => ({ default: module.XeroInvoiceCreateConfig })));
20456
- var XeroInvoiceCreateFlowDetail = lazyActionComponent(() => import("./XeroInvoiceCreateFlowDetail-3EKFNDIL.js").then((module) => ({ default: module.XeroInvoiceCreateFlowDetail })));
20521
+ var XeroInvoiceCreateConfig = lazyActionComponent(() => import("./XeroInvoiceCreateConfig-LAMB7Q3J.js").then((module) => ({ default: module.XeroInvoiceCreateConfig })));
20522
+ var XeroInvoiceCreateFlowDetail = lazyActionComponent(() => import("./XeroInvoiceCreateFlowDetail-KIYWUT2B.js").then((module) => ({ default: module.XeroInvoiceCreateFlowDetail })));
20457
20523
  registerActionTypeUI("qi/xero.invoice.create", {
20458
20524
  label: "Create Xero invoice",
20459
20525
  description: "Draft a new Xero invoice",
@@ -20465,8 +20531,8 @@ registerActionTypeUI("qi/xero.invoice.create", {
20465
20531
 
20466
20532
  // src/mantine/blocks/action/actionTypes/xero/invoiceList/index.ts
20467
20533
  import { IconListDetails } from "@tabler/icons-react";
20468
- var XeroInvoiceListConfig = lazyActionComponent(() => import("./XeroInvoiceListConfig-RYMS37GK.js").then((module) => ({ default: module.XeroInvoiceListConfig })));
20469
- var XeroInvoiceListFlowDetail = lazyActionComponent(() => import("./XeroInvoiceListFlowDetail-TOE7BTXJ.js").then((module) => ({ default: module.XeroInvoiceListFlowDetail })));
20534
+ var XeroInvoiceListConfig = lazyActionComponent(() => import("./XeroInvoiceListConfig-PUUQP4UP.js").then((module) => ({ default: module.XeroInvoiceListConfig })));
20535
+ var XeroInvoiceListFlowDetail = lazyActionComponent(() => import("./XeroInvoiceListFlowDetail-YPU6MFSX.js").then((module) => ({ default: module.XeroInvoiceListFlowDetail })));
20470
20536
  registerActionTypeUI("qi/xero.invoice.list", {
20471
20537
  label: "List Xero invoices",
20472
20538
  description: "Fetch invoices from Xero",
@@ -20478,8 +20544,8 @@ registerActionTypeUI("qi/xero.invoice.list", {
20478
20544
 
20479
20545
  // src/mantine/blocks/action/actionTypes/xero/paymentCreate/index.ts
20480
20546
  import { IconReceipt as IconReceipt2 } from "@tabler/icons-react";
20481
- var XeroPaymentCreateConfig = lazyActionComponent(() => import("./XeroPaymentCreateConfig-KLIV5FAB.js").then((module) => ({ default: module.XeroPaymentCreateConfig })));
20482
- var XeroPaymentCreateFlowDetail = lazyActionComponent(() => import("./XeroPaymentCreateFlowDetail-YFOGJCHR.js").then((module) => ({ default: module.XeroPaymentCreateFlowDetail })));
20547
+ var XeroPaymentCreateConfig = lazyActionComponent(() => import("./XeroPaymentCreateConfig-XNMSDVG3.js").then((module) => ({ default: module.XeroPaymentCreateConfig })));
20548
+ var XeroPaymentCreateFlowDetail = lazyActionComponent(() => import("./XeroPaymentCreateFlowDetail-CB55SP6X.js").then((module) => ({ default: module.XeroPaymentCreateFlowDetail })));
20483
20549
  registerActionTypeUI("qi/xero.payment.create", {
20484
20550
  label: "Record Xero payment",
20485
20551
  description: "Settle a Xero bill \u2014 typically wired to capture an on-chain tx hash as the reference",
@@ -20494,24 +20560,24 @@ import { IconBrandGmail } from "@tabler/icons-react";
20494
20560
  import { createElement } from "react";
20495
20561
 
20496
20562
  // src/mantine/blocks/action/actionTypes/_shared/DelegatedActionConfig.tsx
20497
- import React197, { useCallback as useCallback71, useEffect as useEffect70, useState as useState81 } from "react";
20563
+ import React197, { useCallback as useCallback72, useEffect as useEffect70, useState as useState82 } from "react";
20498
20564
  import { Divider as Divider19, Stack as Stack127 } from "@mantine/core";
20499
20565
 
20500
20566
  // src/mantine/blocks/action/actionTypes/_shared/BoundConnectionSelector.tsx
20501
- import React195, { useCallback as useCallback70, useEffect as useEffect69, useRef as useRef21, useState as useState79 } from "react";
20567
+ import React195, { useCallback as useCallback71, useEffect as useEffect69, useRef as useRef21, useState as useState80 } from "react";
20502
20568
  import { Alert as Alert27, Badge as Badge37, Button as Button35, Group as Group75, Loader as Loader33, Stack as Stack125, Text as Text124 } from "@mantine/core";
20503
20569
  import { IconCheck as IconCheck16, IconPlug, IconRefresh as IconRefresh6, IconTrash as IconTrash9 } from "@tabler/icons-react";
20504
20570
  var POLL_INTERVAL_MS = 2e3;
20505
20571
  var CONNECT_TIMEOUT_MS = 12e4;
20506
20572
  var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection, onConnectionChange, mode, disabled }) => {
20507
20573
  const handlers = useBlocknoteHandlers();
20508
- const [manifest, setManifest] = useState79(null);
20509
- const [loading, setLoading] = useState79(false);
20510
- const [connecting, setConnecting] = useState79(false);
20511
- const [binding, setBinding] = useState79(false);
20512
- const [error, setError] = useState79(null);
20574
+ const [manifest, setManifest] = useState80(null);
20575
+ const [loading, setLoading] = useState80(false);
20576
+ const [connecting, setConnecting] = useState80(false);
20577
+ const [binding, setBinding] = useState80(false);
20578
+ const [error, setError] = useState80(null);
20513
20579
  const cleanupRef = useRef21(null);
20514
- const loadManifest = useCallback70(async () => {
20580
+ const loadManifest = useCallback71(async () => {
20515
20581
  if (mode !== "template") return;
20516
20582
  if (!handlers?.integrations?.getIntegration) {
20517
20583
  setError(`${toolkitLabel} integration is not configured.`);
@@ -20533,7 +20599,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
20533
20599
  void loadManifest();
20534
20600
  }, [loadManifest]);
20535
20601
  useEffect69(() => () => cleanupRef.current?.(), []);
20536
- const handleConnect = useCallback70(async () => {
20602
+ const handleConnect = useCallback71(async () => {
20537
20603
  if (!handlers?.integrations?.startConnection) {
20538
20604
  setError(`${toolkitLabel} integration is not configured.`);
20539
20605
  return;
@@ -20615,7 +20681,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
20615
20681
  setError(err instanceof Error ? err.message : `Failed to start ${toolkitLabel} connection`);
20616
20682
  }
20617
20683
  }, [handlers, toolkit, toolkitLabel, loadManifest]);
20618
- const handleBind = useCallback70(async () => {
20684
+ const handleBind = useCallback71(async () => {
20619
20685
  if (!handlers?.integrations?.bindIntegration) {
20620
20686
  setError(`${toolkitLabel} binding is not configured.`);
20621
20687
  return;
@@ -20645,7 +20711,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
20645
20711
  setBinding(false);
20646
20712
  }
20647
20713
  }, [handlers, manifest, templateId, toolkit, toolkitLabel, onConnectionChange]);
20648
- const handleRemove = useCallback70(async () => {
20714
+ const handleRemove = useCallback71(async () => {
20649
20715
  if (connection?.bindingId && handlers?.integrations?.revokeBinding) {
20650
20716
  try {
20651
20717
  await handlers.integrations.revokeBinding({ bindingId: connection.bindingId });
@@ -20673,7 +20739,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
20673
20739
  };
20674
20740
 
20675
20741
  // src/mantine/blocks/action/actionTypes/_shared/DynamicToolForm.tsx
20676
- import React196, { useMemo as useMemo87, useState as useState80 } from "react";
20742
+ import React196, { useMemo as useMemo87, useState as useState81 } from "react";
20677
20743
  import { Button as Button36, Collapse as Collapse7, Stack as Stack126 } from "@mantine/core";
20678
20744
  import { IconChevronDown as IconChevronDown7, IconChevronRight as IconChevronRight10 } from "@tabler/icons-react";
20679
20745
  var ALWAYS_EXCLUDE = /* @__PURE__ */ new Set(["user_id", "connected_account_id"]);
@@ -20700,7 +20766,7 @@ var DynamicToolForm = ({ schema, values, onChange, editorDocument, blockId, read
20700
20766
  }
20701
20767
  return { required: req, optional: opt };
20702
20768
  }, [schema, exclude]);
20703
- const [showOptional, setShowOptional] = useState80(false);
20769
+ const [showOptional, setShowOptional] = useState81(false);
20704
20770
  const renderField = (field) => {
20705
20771
  if (field.type === "boolean") {
20706
20772
  return /* @__PURE__ */ React196.createElement(
@@ -20756,11 +20822,11 @@ var DynamicToolForm = ({ schema, values, onChange, editorDocument, blockId, read
20756
20822
 
20757
20823
  // src/mantine/blocks/action/actionTypes/_shared/DelegatedActionConfig.tsx
20758
20824
  var DelegatedActionConfig = ({ inputs, onInputsChange, editor, blockId, toolkit, toolkitLabel, schema }) => {
20759
- const [local, setLocal] = useState81(() => parseDelegatedToolInputs(inputs));
20825
+ const [local, setLocal] = useState82(() => parseDelegatedToolInputs(inputs));
20760
20826
  useEffect70(() => {
20761
20827
  setLocal(parseDelegatedToolInputs(inputs));
20762
20828
  }, [inputs]);
20763
- const update = useCallback71(
20829
+ const update = useCallback72(
20764
20830
  (patch) => {
20765
20831
  const updated = { ...local, ...patch };
20766
20832
  setLocal(updated);
@@ -20784,7 +20850,7 @@ var DelegatedActionConfig = ({ inputs, onInputsChange, editor, blockId, toolkit,
20784
20850
  };
20785
20851
 
20786
20852
  // src/mantine/blocks/action/actionTypes/_shared/DelegatedActionFlowDetail.tsx
20787
- import React198, { useCallback as useCallback72, useEffect as useEffect71, useMemo as useMemo88, useRef as useRef22, useState as useState82 } from "react";
20853
+ import React198, { useCallback as useCallback73, useEffect as useEffect71, useMemo as useMemo88, useRef as useRef22, useState as useState83 } from "react";
20788
20854
  import { Button as Button37, Loader as Loader34, Stack as Stack128, Text as Text125 } from "@mantine/core";
20789
20855
  import { IconSend as IconSend6 } from "@tabler/icons-react";
20790
20856
  var DelegatedActionFlowDetail = ({
@@ -20807,7 +20873,7 @@ var DelegatedActionFlowDetail = ({
20807
20873
  const runtimeReader = useRunRuntimeReader(editor);
20808
20874
  const resolveOpts = useMemo88(() => ({ yRuntime: runtimeReader }), [runtimeReader]);
20809
20875
  const fieldNames = useMemo88(() => Object.keys(schema.parameters.properties || {}), [schema]);
20810
- const resolve = useCallback72(
20876
+ const resolve = useCallback73(
20811
20877
  (name) => {
20812
20878
  const v = parsed[name];
20813
20879
  if (isRuntimeRef(v)) return resolveReferences(`{{${v.$ref}}}`, editorDocument, resolveOpts);
@@ -20816,7 +20882,7 @@ var DelegatedActionFlowDetail = ({
20816
20882
  },
20817
20883
  [parsed, editorDocument, resolveOpts]
20818
20884
  );
20819
- const [local, setLocal] = useState82(() => {
20885
+ const [local, setLocal] = useState83(() => {
20820
20886
  const seed = {};
20821
20887
  for (const name of fieldNames) seed[name] = resolve(name);
20822
20888
  return seed;
@@ -20828,7 +20894,7 @@ var DelegatedActionFlowDetail = ({
20828
20894
  return next;
20829
20895
  });
20830
20896
  }, [resolve, fieldNames]);
20831
- const update = useCallback72((field, value) => {
20897
+ const update = useCallback73((field, value) => {
20832
20898
  setLocal((prev) => ({ ...prev, [field]: value }));
20833
20899
  }, []);
20834
20900
  useEffect71(() => {
@@ -20839,9 +20905,9 @@ var DelegatedActionFlowDetail = ({
20839
20905
  const isCompleted = runtime.state === "completed";
20840
20906
  const missing = useMemo88(() => missingRequired(schema, local), [schema, local]);
20841
20907
  const canRun = hasBinding && missing.length === 0 && !isCompleted && !isDisabled;
20842
- const [error, setError] = useState82(null);
20843
- const [submitting, setSubmitting] = useState82(false);
20844
- const run = useCallback72(
20908
+ const [error, setError] = useState83(null);
20909
+ const [submitting, setSubmitting] = useState83(false);
20910
+ const run = useCallback73(
20845
20911
  async (pendingInvocationId) => {
20846
20912
  if (!executeAction) {
20847
20913
  setError("Shared action executor is unavailable");
@@ -20934,7 +21000,7 @@ registerActionTypeUI("qi/googlecalendar.event.create", {
20934
21000
  // src/mantine/blocks/action/actionTypes/carbon/loadBatches/index.ts
20935
21001
  import { IconLeaf as IconLeaf3 } from "@tabler/icons-react";
20936
21002
  var LoadBatchesConfig = lazyActionComponent(() => import("./LoadBatchesConfig-IMODIWRT.js").then((module) => ({ default: module.LoadBatchesConfig })));
20937
- var LoadBatchesFlowDetail = lazyActionComponent(() => import("./LoadBatchesFlowDetail-MHRJDFBU.js").then((module) => ({ default: module.LoadBatchesFlowDetail })));
21003
+ var LoadBatchesFlowDetail = lazyActionComponent(() => import("./LoadBatchesFlowDetail-TL4TQDZ5.js").then((module) => ({ default: module.LoadBatchesFlowDetail })));
20938
21004
  registerActionTypeUI("qi/carbon.loadBatches", {
20939
21005
  label: "Load Carbon Batches",
20940
21006
  description: "Reconcile harvestable and retireable CARBON credits",
@@ -20945,8 +21011,8 @@ registerActionTypeUI("qi/carbon.loadBatches", {
20945
21011
 
20946
21012
  // src/mantine/blocks/action/actionTypes/carbon/harvest/index.ts
20947
21013
  import { IconLeaf as IconLeaf4 } from "@tabler/icons-react";
20948
- var HarvestConfig = lazyActionComponent(() => import("./HarvestConfig-72UJXJ2I.js").then((module) => ({ default: module.HarvestConfig })));
20949
- var HarvestFlowDetail = lazyActionComponent(() => import("./HarvestFlowDetail-G6XES3W6.js").then((module) => ({ default: module.HarvestFlowDetail })));
21014
+ var HarvestConfig = lazyActionComponent(() => import("./HarvestConfig-FXZYEZRA.js").then((module) => ({ default: module.HarvestConfig })));
21015
+ var HarvestFlowDetail = lazyActionComponent(() => import("./HarvestFlowDetail-Y2AJWJKR.js").then((module) => ({ default: module.HarvestFlowDetail })));
20950
21016
  registerActionTypeUI("qi/carbon.harvest", {
20951
21017
  label: "Harvest Carbon",
20952
21018
  description: "Claim carbon credits into your wallet",
@@ -20958,8 +21024,8 @@ registerActionTypeUI("qi/carbon.harvest", {
20958
21024
 
20959
21025
  // src/mantine/blocks/action/actionTypes/carbon/retire/index.ts
20960
21026
  import { IconFlame as IconFlame2 } from "@tabler/icons-react";
20961
- var RetireConfig = lazyActionComponent(() => import("./RetireConfig-EICGSI7K.js").then((module) => ({ default: module.RetireConfig })));
20962
- var RetireFlowDetail = lazyActionComponent(() => import("./RetireFlowDetail-7OSWHOZ2.js").then((module) => ({ default: module.RetireFlowDetail })));
21027
+ var RetireConfig = lazyActionComponent(() => import("./RetireConfig-PQPUZHIW.js").then((module) => ({ default: module.RetireConfig })));
21028
+ var RetireFlowDetail = lazyActionComponent(() => import("./RetireFlowDetail-SP5GBJSA.js").then((module) => ({ default: module.RetireFlowDetail })));
20963
21029
  registerActionTypeUI("qi/carbon.retire", {
20964
21030
  label: "Retire Carbon",
20965
21031
  description: "Permanently retire carbon credits to offset impact",
@@ -20972,7 +21038,7 @@ registerActionTypeUI("qi/carbon.retire", {
20972
21038
  // src/mantine/blocks/action/actionTypes/entityTransfer/index.ts
20973
21039
  import { IconTransfer } from "@tabler/icons-react";
20974
21040
  var EntityTransferConfig = lazyActionComponent(() => import("./EntityTransferConfig-JVZ3H35B.js").then((module) => ({ default: module.EntityTransferConfig })));
20975
- var EntityTransferFlowDetail = lazyActionComponent(() => import("./EntityTransferFlowDetail-73NTV5BJ.js").then((module) => ({ default: module.EntityTransferFlowDetail })));
21041
+ var EntityTransferFlowDetail = lazyActionComponent(() => import("./EntityTransferFlowDetail-DY2UZ5VA.js").then((module) => ({ default: module.EntityTransferFlowDetail })));
20976
21042
  registerActionTypeUI("qi/entity.transfer", {
20977
21043
  label: "Transfer Entity",
20978
21044
  description: "Transfer ownership of an entity to a new owner",
@@ -20984,8 +21050,8 @@ registerActionTypeUI("qi/entity.transfer", {
20984
21050
 
20985
21051
  // src/mantine/blocks/action/actionTypes/kycVerify/index.ts
20986
21052
  import { IconId } from "@tabler/icons-react";
20987
- var KycVerifyConfig = lazyActionComponent(() => import("./KycVerifyConfig-7YN6E4QF.js").then((module) => ({ default: module.KycVerifyConfig })));
20988
- var KycVerifyFlowDetail = lazyActionComponent(() => import("./KycVerifyFlowDetail-HNBUINHC.js").then((module) => ({ default: module.KycVerifyFlowDetail })));
21053
+ var KycVerifyConfig = lazyActionComponent(() => import("./KycVerifyConfig-KSECQD2D.js").then((module) => ({ default: module.KycVerifyConfig })));
21054
+ var KycVerifyFlowDetail = lazyActionComponent(() => import("./KycVerifyFlowDetail-ZLDIZ4HC.js").then((module) => ({ default: module.KycVerifyFlowDetail })));
20989
21055
  registerActionTypeUI("qi/kyc.verify", {
20990
21056
  label: "Identity Verification (KYC)",
20991
21057
  description: "Verify your identity and save the issued credential to your Vault",
@@ -20998,7 +21064,7 @@ registerActionTypeUI("qi/kyc.verify", {
20998
21064
  // src/mantine/blocks/action/actionTypes/walletGenerate/index.ts
20999
21065
  import { IconWallet } from "@tabler/icons-react";
21000
21066
  var WalletGenerateConfig = lazyActionComponent(() => import("./WalletGenerateConfig-YYLCS65G.js").then((module) => ({ default: module.WalletGenerateConfig })));
21001
- var WalletGenerateFlowDetail = lazyActionComponent(() => import("./WalletGenerateFlowDetail-Y5JBQO7R.js").then((module) => ({ default: module.WalletGenerateFlowDetail })));
21067
+ var WalletGenerateFlowDetail = lazyActionComponent(() => import("./WalletGenerateFlowDetail-CBAVDW7Z.js").then((module) => ({ default: module.WalletGenerateFlowDetail })));
21002
21068
  registerActionTypeUI("qi/wallet.generate", {
21003
21069
  label: "Generate Wallet",
21004
21070
  description: "Generate an IXO wallet and DID",
@@ -21009,8 +21075,8 @@ registerActionTypeUI("qi/wallet.generate", {
21009
21075
 
21010
21076
  // src/mantine/blocks/action/actionTypes/walletFund/index.ts
21011
21077
  import { IconCoin as IconCoin4 } from "@tabler/icons-react";
21012
- var WalletFundConfig = lazyActionComponent(() => import("./WalletFundConfig-UYEI6LIU.js").then((module) => ({ default: module.WalletFundConfig })));
21013
- var WalletFundFlowDetail = lazyActionComponent(() => import("./WalletFundFlowDetail-UI63COIK.js").then((module) => ({ default: module.WalletFundFlowDetail })));
21078
+ var WalletFundConfig = lazyActionComponent(() => import("./WalletFundConfig-T5S6B2HH.js").then((module) => ({ default: module.WalletFundConfig })));
21079
+ var WalletFundFlowDetail = lazyActionComponent(() => import("./WalletFundFlowDetail-WLQLJS34.js").then((module) => ({ default: module.WalletFundFlowDetail })));
21014
21080
  registerActionTypeUI("qi/wallet.fund", {
21015
21081
  label: "Fund Wallet",
21016
21082
  description: "Fund a wallet with an on-chain transfer",
@@ -21024,7 +21090,7 @@ registerActionTypeUI("qi/wallet.fund", {
21024
21090
  import { IconWallet as IconWallet2 } from "@tabler/icons-react";
21025
21091
  var WalletGenerateAndFundConfig = lazyActionComponent(() => import("./WalletGenerateAndFundConfig-364RSEND.js").then((module) => ({ default: module.WalletGenerateAndFundConfig })));
21026
21092
  var WalletGenerateAndFundFlowDetail = lazyActionComponent(
21027
- () => import("./WalletGenerateAndFundFlowDetail-KUYU35BS.js").then((module) => ({ default: module.WalletGenerateAndFundFlowDetail }))
21093
+ () => import("./WalletGenerateAndFundFlowDetail-7LEBWWEA.js").then((module) => ({ default: module.WalletGenerateAndFundFlowDetail }))
21028
21094
  );
21029
21095
  registerActionTypeUI("qi/wallet.generateAndFund", {
21030
21096
  label: "Generate & Fund Wallet",
@@ -21037,7 +21103,7 @@ registerActionTypeUI("qi/wallet.generateAndFund", {
21037
21103
  // src/mantine/blocks/action/actionTypes/iidCreate/index.ts
21038
21104
  import { IconFingerprint } from "@tabler/icons-react";
21039
21105
  var IidCreateConfig = lazyActionComponent(() => import("./IidCreateConfig-RRV2DYXI.js").then((module) => ({ default: module.IidCreateConfig })));
21040
- var IidCreateFlowDetail = lazyActionComponent(() => import("./IidCreateFlowDetail-FJKDBRVD.js").then((module) => ({ default: module.IidCreateFlowDetail })));
21106
+ var IidCreateFlowDetail = lazyActionComponent(() => import("./IidCreateFlowDetail-INISHT4R.js").then((module) => ({ default: module.IidCreateFlowDetail })));
21041
21107
  registerActionTypeUI("qi/iid.create", {
21042
21108
  label: "Create IID",
21043
21109
  description: "Create an IID document on-chain",
@@ -21049,7 +21115,7 @@ registerActionTypeUI("qi/iid.create", {
21049
21115
  // src/mantine/blocks/action/actionTypes/matrixRegister/index.ts
21050
21116
  import { IconUserPlus as IconUserPlus4 } from "@tabler/icons-react";
21051
21117
  var MatrixRegisterConfig = lazyActionComponent(() => import("./MatrixRegisterConfig-N2U4FBYF.js").then((module) => ({ default: module.MatrixRegisterConfig })));
21052
- var MatrixRegisterFlowDetail = lazyActionComponent(() => import("./MatrixRegisterFlowDetail-FJ2FVOWE.js").then((module) => ({ default: module.MatrixRegisterFlowDetail })));
21118
+ var MatrixRegisterFlowDetail = lazyActionComponent(() => import("./MatrixRegisterFlowDetail-RXHGTTQF.js").then((module) => ({ default: module.MatrixRegisterFlowDetail })));
21053
21119
  registerActionTypeUI("qi/matrix.register", {
21054
21120
  label: "Register Matrix Account",
21055
21121
  description: "Create a Matrix account and access token",
@@ -21061,7 +21127,7 @@ registerActionTypeUI("qi/matrix.register", {
21061
21127
  // src/mantine/blocks/action/actionTypes/identityCreate/index.ts
21062
21128
  import { IconId as IconId2 } from "@tabler/icons-react";
21063
21129
  var IdentityCreateConfig = lazyActionComponent(() => import("./IdentityCreateConfig-ZBUOJ6AL.js").then((module) => ({ default: module.IdentityCreateConfig })));
21064
- var IdentityCreateFlowDetail = lazyActionComponent(() => import("./IdentityCreateFlowDetail-YRUTCMXG.js").then((module) => ({ default: module.IdentityCreateFlowDetail })));
21130
+ var IdentityCreateFlowDetail = lazyActionComponent(() => import("./IdentityCreateFlowDetail-DXUI6S4I.js").then((module) => ({ default: module.IdentityCreateFlowDetail })));
21065
21131
  registerActionTypeUI("qi/identity.create", {
21066
21132
  label: "Create Identity",
21067
21133
  description: "Create an IID document and Matrix account for a user",
@@ -21073,7 +21139,7 @@ registerActionTypeUI("qi/identity.create", {
21073
21139
  // src/mantine/blocks/action/actionTypes/entityCreateOracle/index.ts
21074
21140
  import { IconRobot as IconRobot4 } from "@tabler/icons-react";
21075
21141
  var EntityCreateOracleConfig = lazyActionComponent(() => import("./EntityCreateOracleConfig-UZ6ZIMP5.js").then((module) => ({ default: module.EntityCreateOracleConfig })));
21076
- var EntityCreateOracleFlowDetail = lazyActionComponent(() => import("./EntityCreateOracleFlowDetail-IVB42PED.js").then((module) => ({ default: module.EntityCreateOracleFlowDetail })));
21142
+ var EntityCreateOracleFlowDetail = lazyActionComponent(() => import("./EntityCreateOracleFlowDetail-6XJ4UEL5.js").then((module) => ({ default: module.EntityCreateOracleFlowDetail })));
21077
21143
  registerActionTypeUI("qi/entity.createOracle", {
21078
21144
  label: "Create Oracle Entity",
21079
21145
  description: "Create the oracle entity on-chain",
@@ -21085,7 +21151,7 @@ registerActionTypeUI("qi/entity.createOracle", {
21085
21151
  // src/mantine/blocks/action/actionTypes/sandboxProvision/index.ts
21086
21152
  import { IconBox } from "@tabler/icons-react";
21087
21153
  var SandboxProvisionConfig = lazyActionComponent(() => import("./SandboxProvisionConfig-ZGG4IRHM.js").then((module) => ({ default: module.SandboxProvisionConfig })));
21088
- var SandboxProvisionFlowDetail = lazyActionComponent(() => import("./SandboxProvisionFlowDetail-ORDCFVAQ.js").then((module) => ({ default: module.SandboxProvisionFlowDetail })));
21154
+ var SandboxProvisionFlowDetail = lazyActionComponent(() => import("./SandboxProvisionFlowDetail-CQ7XZWNA.js").then((module) => ({ default: module.SandboxProvisionFlowDetail })));
21089
21155
  registerActionTypeUI("qi/sandbox.provision", {
21090
21156
  label: "Provision Sandbox",
21091
21157
  description: "Provision a sandbox environment for the oracle",
@@ -21097,7 +21163,7 @@ registerActionTypeUI("qi/sandbox.provision", {
21097
21163
  // src/mantine/blocks/action/actionTypes/oracleContract/index.ts
21098
21164
  import { IconLicense } from "@tabler/icons-react";
21099
21165
  var OracleContractConfig = lazyActionComponent(() => import("./OracleContractConfig-PHY5L7W2.js").then((module) => ({ default: module.OracleContractConfig })));
21100
- var OracleContractFlowDetail = lazyActionComponent(() => import("./OracleContractFlowDetail-YPS3STPP.js").then((module) => ({ default: module.OracleContractFlowDetail })));
21166
+ var OracleContractFlowDetail = lazyActionComponent(() => import("./OracleContractFlowDetail-D2XZYWVG.js").then((module) => ({ default: module.OracleContractFlowDetail })));
21101
21167
  registerActionTypeUI("qi/oracle.contract", {
21102
21168
  label: "Create Oracle Contract",
21103
21169
  description: "Establish the user-oracle Matrix DM room",
@@ -21109,7 +21175,7 @@ registerActionTypeUI("qi/oracle.contract", {
21109
21175
  // src/mantine/blocks/action/actionTypes/oracleStoreSecrets/index.ts
21110
21176
  import { IconKey as IconKey3 } from "@tabler/icons-react";
21111
21177
  var OracleStoreSecretsConfig = lazyActionComponent(() => import("./OracleStoreSecretsConfig-PQMF7LFT.js").then((module) => ({ default: module.OracleStoreSecretsConfig })));
21112
- var OracleStoreSecretsFlowDetail = lazyActionComponent(() => import("./OracleStoreSecretsFlowDetail-Q67XEZYS.js").then((module) => ({ default: module.OracleStoreSecretsFlowDetail })));
21178
+ var OracleStoreSecretsFlowDetail = lazyActionComponent(() => import("./OracleStoreSecretsFlowDetail-DHNXG3CZ.js").then((module) => ({ default: module.OracleStoreSecretsFlowDetail })));
21113
21179
  registerActionTypeUI("qi/oracle.storeSecrets", {
21114
21180
  label: "Store Oracle Secrets",
21115
21181
  description: "Store oracle secrets in Matrix room state",
@@ -21121,7 +21187,7 @@ registerActionTypeUI("qi/oracle.storeSecrets", {
21121
21187
  // src/mantine/blocks/action/actionTypes/oracleStoreConfig/index.ts
21122
21188
  import { IconSettings as IconSettings20 } from "@tabler/icons-react";
21123
21189
  var OracleStoreConfigConfig = lazyActionComponent(() => import("./OracleStoreConfigConfig-TUZWTJMA.js").then((module) => ({ default: module.OracleStoreConfigConfig })));
21124
- var OracleStoreConfigFlowDetail = lazyActionComponent(() => import("./OracleStoreConfigFlowDetail-LQK5UF4I.js").then((module) => ({ default: module.OracleStoreConfigFlowDetail })));
21190
+ var OracleStoreConfigFlowDetail = lazyActionComponent(() => import("./OracleStoreConfigFlowDetail-Q6PTB2TR.js").then((module) => ({ default: module.OracleStoreConfigFlowDetail })));
21125
21191
  registerActionTypeUI("qi/oracle.storeConfig", {
21126
21192
  label: "Store Oracle Config",
21127
21193
  description: "Store the oracle configuration in Matrix room state",
@@ -21136,7 +21202,7 @@ var OracleStoreSecretsAndConfigConfig = lazyActionComponent(
21136
21202
  () => import("./OracleStoreSecretsAndConfigConfig-SZPYEK7U.js").then((module) => ({ default: module.OracleStoreSecretsAndConfigConfig }))
21137
21203
  );
21138
21204
  var OracleStoreSecretsAndConfigFlowDetail = lazyActionComponent(
21139
- () => import("./OracleStoreSecretsAndConfigFlowDetail-ZKJZNK2U.js").then((module) => ({ default: module.OracleStoreSecretsAndConfigFlowDetail }))
21205
+ () => import("./OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js").then((module) => ({ default: module.OracleStoreSecretsAndConfigFlowDetail }))
21140
21206
  );
21141
21207
  registerActionTypeUI("qi/oracle.storeSecretsAndConfig", {
21142
21208
  label: "Store Oracle Secrets & Config",
@@ -21150,7 +21216,7 @@ registerActionTypeUI("qi/oracle.storeSecretsAndConfig", {
21150
21216
  import { IconAdjustments as IconAdjustments2 } from "@tabler/icons-react";
21151
21217
  var OracleConfigureOracleConfig = lazyActionComponent(() => import("./OracleConfigureOracleConfig-QFF74X3N.js").then((module) => ({ default: module.OracleConfigureOracleConfig })));
21152
21218
  var OracleConfigureOracleFlowDetail = lazyActionComponent(
21153
- () => import("./OracleConfigureOracleFlowDetail-Y34ZSUNM.js").then((module) => ({ default: module.OracleConfigureOracleFlowDetail }))
21219
+ () => import("./OracleConfigureOracleFlowDetail-L7GRKOSV.js").then((module) => ({ default: module.OracleConfigureOracleFlowDetail }))
21154
21220
  );
21155
21221
  registerActionTypeUI("qi/oracle.configureOracle", {
21156
21222
  label: "Configure Oracle",
@@ -21163,7 +21229,7 @@ registerActionTypeUI("qi/oracle.configureOracle", {
21163
21229
  // src/mantine/blocks/action/actionTypes/oracleDeploySetup/index.ts
21164
21230
  import { IconTool } from "@tabler/icons-react";
21165
21231
  var OracleDeploySetupConfig = lazyActionComponent(() => import("./OracleDeploySetupConfig-75XPGFJQ.js").then((module) => ({ default: module.OracleDeploySetupConfig })));
21166
- var OracleDeploySetupFlowDetail = lazyActionComponent(() => import("./OracleDeploySetupFlowDetail-BJ2KFO7M.js").then((module) => ({ default: module.OracleDeploySetupFlowDetail })));
21232
+ var OracleDeploySetupFlowDetail = lazyActionComponent(() => import("./OracleDeploySetupFlowDetail-KMGBPIND.js").then((module) => ({ default: module.OracleDeploySetupFlowDetail })));
21167
21233
  registerActionTypeUI("qi/oracle.deploySetup", {
21168
21234
  label: "Set Up Oracle Deployment",
21169
21235
  description: "Build and prepare the oracle for deployment",
@@ -21175,7 +21241,7 @@ registerActionTypeUI("qi/oracle.deploySetup", {
21175
21241
  // src/mantine/blocks/action/actionTypes/oracleDeployStart/index.ts
21176
21242
  import { IconPlayerPlay as IconPlayerPlay3 } from "@tabler/icons-react";
21177
21243
  var OracleDeployStartConfig = lazyActionComponent(() => import("./OracleDeployStartConfig-NA6GZ4VQ.js").then((module) => ({ default: module.OracleDeployStartConfig })));
21178
- var OracleDeployStartFlowDetail = lazyActionComponent(() => import("./OracleDeployStartFlowDetail-OLMKT4FX.js").then((module) => ({ default: module.OracleDeployStartFlowDetail })));
21244
+ var OracleDeployStartFlowDetail = lazyActionComponent(() => import("./OracleDeployStartFlowDetail-DTK5PLC5.js").then((module) => ({ default: module.OracleDeployStartFlowDetail })));
21179
21245
  registerActionTypeUI("qi/oracle.deployStart", {
21180
21246
  label: "Start Oracle Deployment",
21181
21247
  description: "Start the oracle deployment process",
@@ -21187,7 +21253,7 @@ registerActionTypeUI("qi/oracle.deployStart", {
21187
21253
  // src/mantine/blocks/action/actionTypes/oracleDeploy/index.ts
21188
21254
  import { IconRocket as IconRocket2 } from "@tabler/icons-react";
21189
21255
  var OracleDeployConfig = lazyActionComponent(() => import("./OracleDeployConfig-QBG76ATZ.js").then((module) => ({ default: module.OracleDeployConfig })));
21190
- var OracleDeployFlowDetail = lazyActionComponent(() => import("./OracleDeployFlowDetail-OF5DDC4Y.js").then((module) => ({ default: module.OracleDeployFlowDetail })));
21256
+ var OracleDeployFlowDetail = lazyActionComponent(() => import("./OracleDeployFlowDetail-TCFIJYP7.js").then((module) => ({ default: module.OracleDeployFlowDetail })));
21191
21257
  registerActionTypeUI("qi/oracle.deploy", {
21192
21258
  label: "Deploy Oracle",
21193
21259
  description: "Build, deploy, and start the oracle",
@@ -21304,17 +21370,17 @@ import { Group as Group77, Stack as Stack130, Text as Text128 } from "@mantine/c
21304
21370
  import { IconMapPin } from "@tabler/icons-react";
21305
21371
 
21306
21372
  // src/mantine/blocks/location/template/TemplateConfig.tsx
21307
- import React203, { useCallback as useCallback74 } from "react";
21373
+ import React203, { useCallback as useCallback75 } from "react";
21308
21374
  import { IconSettings as IconSettings21 } from "@tabler/icons-react";
21309
21375
 
21310
21376
  // src/mantine/blocks/location/template/GeneralTab.tsx
21311
- import React202, { useEffect as useEffect73, useRef as useRef23, useState as useState85 } from "react";
21377
+ import React202, { useEffect as useEffect73, useRef as useRef23, useState as useState86 } from "react";
21312
21378
  import { Box as Box47, Divider as Divider20, Stack as Stack129, Text as Text126 } from "@mantine/core";
21313
21379
 
21314
21380
  // src/core/hooks/useUnlMap.ts
21315
- import { useEffect as useEffect72, useState as useState83 } from "react";
21381
+ import { useEffect as useEffect72, useState as useState84 } from "react";
21316
21382
  function useUnlMap() {
21317
- const [status, setStatus] = useState83("loading");
21383
+ const [status, setStatus] = useState84("loading");
21318
21384
  useEffect72(() => {
21319
21385
  if (typeof window === "undefined") {
21320
21386
  return;
@@ -21370,7 +21436,7 @@ function useUnlMap() {
21370
21436
  }
21371
21437
 
21372
21438
  // src/mantine/blocks/location/components/TileSelector.tsx
21373
- import React201, { useState as useState84, useCallback as useCallback73 } from "react";
21439
+ import React201, { useState as useState85, useCallback as useCallback74 } from "react";
21374
21440
  import { ActionIcon as ActionIcon32, Group as Group76, Tooltip as Tooltip23 } from "@mantine/core";
21375
21441
  import { IconMap, IconMoon, IconSatellite, IconMountain } from "@tabler/icons-react";
21376
21442
  var TILE_LAYERS = {
@@ -21423,8 +21489,8 @@ function ensureLayer(map, config) {
21423
21489
  );
21424
21490
  }
21425
21491
  var TileSelector = ({ mapRef }) => {
21426
- const [active, setActive] = useState84("map");
21427
- const switchTo = useCallback73(
21492
+ const [active, setActive] = useState85("map");
21493
+ const switchTo = useCallback74(
21428
21494
  (type) => {
21429
21495
  const map = mapRef.current;
21430
21496
  if (!map || active === type) return;
@@ -21480,9 +21546,9 @@ var DEFAULT_CENTER = [0, 20];
21480
21546
  var DEFAULT_ZOOM = 2;
21481
21547
  var PLACED_ZOOM = 14;
21482
21548
  var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, onDescriptionChange, onCoordinatesChange }) => {
21483
- const [localTitle, setLocalTitle] = useState85(title);
21484
- const [localDescription, setLocalDescription] = useState85(description);
21485
- const [mapError, setMapError] = useState85(null);
21549
+ const [localTitle, setLocalTitle] = useState86(title);
21550
+ const [localDescription, setLocalDescription] = useState86(description);
21551
+ const [mapError, setMapError] = useState86(null);
21486
21552
  const { status, UnlSdk } = useUnlMap();
21487
21553
  const { mapConfig } = useBlocknoteContext();
21488
21554
  const markerRef = useRef23(null);
@@ -21587,13 +21653,13 @@ var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, on
21587
21653
  var TemplateConfig17 = ({ editor, block: blockProp }) => {
21588
21654
  const { closePanel } = usePanelStore();
21589
21655
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
21590
- const updateProp = useCallback74(
21656
+ const updateProp = useCallback75(
21591
21657
  (key, value) => {
21592
21658
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
21593
21659
  },
21594
21660
  [editor, readLiveBlock]
21595
21661
  );
21596
- const updateProps = useCallback74(
21662
+ const updateProps = useCallback75(
21597
21663
  (updates) => {
21598
21664
  editor.updateBlock(readLiveBlock(), { props: { ...updates } });
21599
21665
  },
@@ -21622,10 +21688,10 @@ var TemplateConfig17 = ({ editor, block: blockProp }) => {
21622
21688
  };
21623
21689
 
21624
21690
  // src/mantine/blocks/location/components/LocationMap.tsx
21625
- import React204, { useEffect as useEffect74, useRef as useRef24, useState as useState86 } from "react";
21691
+ import React204, { useEffect as useEffect74, useRef as useRef24, useState as useState87 } from "react";
21626
21692
  import { Box as Box48, Flex as Flex31, Loader as Loader35, Text as Text127 } from "@mantine/core";
21627
21693
  var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker = true, showTilesControl = false }) => {
21628
- const [mapError, setMapError] = useState86(null);
21694
+ const [mapError, setMapError] = useState87(null);
21629
21695
  const { mapConfig } = useBlocknoteContext();
21630
21696
  const wrapperRef = useRef24(null);
21631
21697
  const containerRef = useRef24(null);
@@ -21799,11 +21865,11 @@ import React212, { useMemo as useMemo91 } from "react";
21799
21865
  import { Box as Box49, Group as Group79, Stack as Stack133, Text as Text131 } from "@mantine/core";
21800
21866
 
21801
21867
  // src/mantine/blocks/embed/template/TemplateConfig.tsx
21802
- import React211, { useCallback as useCallback75 } from "react";
21868
+ import React211, { useCallback as useCallback76 } from "react";
21803
21869
  import { IconSettings as IconSettings22 } from "@tabler/icons-react";
21804
21870
 
21805
21871
  // src/mantine/blocks/embed/template/GeneralTab.tsx
21806
- import React210, { useEffect as useEffect75, useState as useState87 } from "react";
21872
+ import React210, { useEffect as useEffect75, useState as useState88 } from "react";
21807
21873
  import { Stack as Stack132, Switch as Switch6, Text as Text130 } from "@mantine/core";
21808
21874
  var GeneralTab18 = ({
21809
21875
  url,
@@ -21819,8 +21885,8 @@ var GeneralTab18 = ({
21819
21885
  onHeightChange,
21820
21886
  onAllowAuthChange
21821
21887
  }) => {
21822
- const [localUrl, setLocalUrl] = useState87(url);
21823
- const [localHeight, setLocalHeight] = useState87(height);
21888
+ const [localUrl, setLocalUrl] = useState88(url);
21889
+ const [localHeight, setLocalHeight] = useState88(height);
21824
21890
  const iconOptions = Object.keys(ICON_MAP).map((key) => ({
21825
21891
  value: key,
21826
21892
  label: key.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ")
@@ -21862,7 +21928,7 @@ var GeneralTab18 = ({
21862
21928
  var TemplateConfig18 = ({ editor, block: blockProp }) => {
21863
21929
  const { closePanel } = usePanelStore();
21864
21930
  const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
21865
- const updateProp = useCallback75(
21931
+ const updateProp = useCallback76(
21866
21932
  (key, value) => {
21867
21933
  editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
21868
21934
  },
@@ -21977,11 +22043,11 @@ import React214, { useMemo as useMemo92 } from "react";
21977
22043
  import { Box as Box50, Group as Group80, Stack as Stack134, Text as Text132 } from "@mantine/core";
21978
22044
 
21979
22045
  // src/mantine/blocks/embed/flow/FlowConfig.tsx
21980
- import React213, { useCallback as useCallback76 } from "react";
22046
+ import React213, { useCallback as useCallback77 } from "react";
21981
22047
  import { IconSettings as IconSettings23 } from "@tabler/icons-react";
21982
22048
  var FlowConfig4 = ({ editor, block }) => {
21983
22049
  const { closePanel } = usePanelStore();
21984
- const updateProp = useCallback76(
22050
+ const updateProp = useCallback77(
21985
22051
  (key, value) => {
21986
22052
  editor.updateBlock(block, { props: { ...block.props, [key]: value } });
21987
22053
  },
@@ -22076,7 +22142,7 @@ import React218 from "react";
22076
22142
  import { createReactBlockSpec as createReactBlockSpec23 } from "@blocknote/react";
22077
22143
 
22078
22144
  // src/mantine/blocks/secrets/SecretsBlock.tsx
22079
- import React217, { useCallback as useCallback77, useMemo as useMemo93, useState as useState88 } from "react";
22145
+ import React217, { useCallback as useCallback78, useMemo as useMemo93, useState as useState89 } from "react";
22080
22146
  import { Anchor, ActionIcon as ActionIcon33, Button as Button38, Collapse as Collapse8, CopyButton as CopyButton2, Group as Group81, Paper as Paper16, Stack as Stack135, Text as Text133, Tooltip as Tooltip24 } from "@mantine/core";
22081
22147
  import { IconCheck as IconCheck17, IconCopy as IconCopy2, IconDownload as IconDownload4, IconEye, IconEyeOff, IconKey as IconKey4 } from "@tabler/icons-react";
22082
22148
  var SENSITIVE_KEYS = /* @__PURE__ */ new Set(["mnemonic", "matrixPassword", "matrixRecoveryPhrase", "matrixAccessToken", "pin", "openRouterApiKeyJwe", "authToken"]);
@@ -22178,7 +22244,7 @@ function flattenForDownload(outputs) {
22178
22244
  return result;
22179
22245
  }
22180
22246
  function MaskedValue({ value, isSensitive }) {
22181
- const [visible, setVisible] = useState88(false);
22247
+ const [visible, setVisible] = useState89(false);
22182
22248
  if (!isSensitive) {
22183
22249
  return /* @__PURE__ */ React217.createElement(Text133, { size: "xs", ff: "monospace", style: { wordBreak: "break-all" } }, String(value));
22184
22250
  }
@@ -22192,7 +22258,7 @@ function OutputEntry({ label, value, isSensitive }) {
22192
22258
  function SecretsBlock({ editor, block }) {
22193
22259
  const sessionRunId = useRunSessionId();
22194
22260
  const { docType } = useBlocknoteContext();
22195
- const [showOutput, setShowOutput] = useState88(false);
22261
+ const [showOutput, setShowOutput] = useState89(false);
22196
22262
  const outputs = useMemo93(() => collectOutputs(editor, sessionRunId), [editor, showOutput, sessionRunId]);
22197
22263
  const editorDocument = editor?.document || [];
22198
22264
  const runtimeReader = useRunRuntimeReader(editor);
@@ -22200,7 +22266,7 @@ function SecretsBlock({ editor, block }) {
22200
22266
  const entityDid = useMemo93(() => resolveReferences(block.props.entityDid || "", editorDocument, resolveOpts).trim(), [block.props.entityDid, editorDocument, resolveOpts]);
22201
22267
  const portalUrl = typeof window !== "undefined" ? window.location.origin : "";
22202
22268
  const connectUrl = entityDid ? `${portalUrl}/oracle/${entityDid}/connect` : "";
22203
- const handleDownload = useCallback77(() => {
22269
+ const handleDownload = useCallback78(() => {
22204
22270
  const data = flattenForDownload(outputs);
22205
22271
  const json = JSON.stringify(data, null, 2);
22206
22272
  const blob = new Blob([json], { type: "application/json" });
@@ -22283,7 +22349,7 @@ var SkillsTemplateView = ({ editor: _editor, block }) => {
22283
22349
  // src/mantine/blocks/skills/flow/SkillsFlowView.tsx
22284
22350
  import { ActionIcon as ActionIcon34, Badge as Badge39, Button as Button39, Collapse as Collapse9, Group as Group83, Loader as Loader36, Paper as Paper17, Stack as Stack137, Text as Text135, Tooltip as Tooltip25 } from "@mantine/core";
22285
22351
  import { IconBrain as IconBrain3, IconCheck as IconCheck18, IconPencil, IconPlus as IconPlus8, IconTrash as IconTrash10, IconX as IconX12 } from "@tabler/icons-react";
22286
- import React222, { useCallback as useCallback78, useEffect as useEffect76, useMemo as useMemo95, useRef as useRef25, useState as useState89 } from "react";
22352
+ import React222, { useCallback as useCallback79, useEffect as useEffect76, useMemo as useMemo95, useRef as useRef25, useState as useState90 } from "react";
22287
22353
  function parseSkills2(raw) {
22288
22354
  try {
22289
22355
  const parsed = JSON.parse(raw || "[]");
@@ -22306,15 +22372,15 @@ var SkillsFlowView = ({ editor, block }) => {
22306
22372
  const isCompleted = runtime.state === "completed" && runtime.evaluationStatus === "approved";
22307
22373
  const skills = useMemo95(() => parseSkills2(block.props.skills), [block.props.skills]);
22308
22374
  const mcpServers = useMemo95(() => parseMcpServers(block.props.mcpServers), [block.props.mcpServers]);
22309
- const [showAddMcp, setShowAddMcp] = useState89(false);
22310
- const [mcpName, setMcpName] = useState89("");
22311
- const [mcpUrl, setMcpUrl] = useState89("");
22312
- const [mcpDescription, setMcpDescription] = useState89("");
22313
- const [editingMcpIndex, setEditingMcpIndex] = useState89(null);
22314
- const [validationResults, setValidationResults] = useState89({});
22315
- const [validatingUrls, setValidatingUrls] = useState89({});
22316
- const [capsules, setCapsules] = useState89([]);
22317
- const [loadingCapsules, setLoadingCapsules] = useState89(false);
22375
+ const [showAddMcp, setShowAddMcp] = useState90(false);
22376
+ const [mcpName, setMcpName] = useState90("");
22377
+ const [mcpUrl, setMcpUrl] = useState90("");
22378
+ const [mcpDescription, setMcpDescription] = useState90("");
22379
+ const [editingMcpIndex, setEditingMcpIndex] = useState90(null);
22380
+ const [validationResults, setValidationResults] = useState90({});
22381
+ const [validatingUrls, setValidatingUrls] = useState90({});
22382
+ const [capsules, setCapsules] = useState90([]);
22383
+ const [loadingCapsules, setLoadingCapsules] = useState90(false);
22318
22384
  const capsulesFetchedRef = useRef25(false);
22319
22385
  useEffect76(() => {
22320
22386
  if (capsulesFetchedRef.current || !handlers.getSkills) return;
@@ -22322,7 +22388,7 @@ var SkillsFlowView = ({ editor, block }) => {
22322
22388
  setLoadingCapsules(true);
22323
22389
  handlers.getSkills().then((r) => setCapsules(r.capsules || [])).catch((err) => console.error("[skills] Failed to fetch capsules:", err)).finally(() => setLoadingCapsules(false));
22324
22390
  }, [handlers.getSkills]);
22325
- const [network, setNetwork] = useState89("");
22391
+ const [network, setNetwork] = useState90("");
22326
22392
  const networkFetchedRef = useRef25(false);
22327
22393
  useEffect76(() => {
22328
22394
  if (networkFetchedRef.current || !handlers.getNetwork) return;
@@ -22347,17 +22413,17 @@ var SkillsFlowView = ({ editor, block }) => {
22347
22413
  }
22348
22414
  ];
22349
22415
  }, [network]);
22350
- const getCurrentBlock = useCallback78(() => {
22416
+ const getCurrentBlock = useCallback79(() => {
22351
22417
  return editor.document?.find((b) => b.id === block.id) || block;
22352
22418
  }, [editor, block.id]);
22353
- const updateSkills = useCallback78(
22419
+ const updateSkills = useCallback79(
22354
22420
  (next) => {
22355
22421
  const cur = getCurrentBlock();
22356
22422
  editor.updateBlock(cur, { props: { ...cur.props, skills: JSON.stringify(next) } });
22357
22423
  },
22358
22424
  [editor, getCurrentBlock]
22359
22425
  );
22360
- const updateMcpServers = useCallback78(
22426
+ const updateMcpServers = useCallback79(
22361
22427
  (next) => {
22362
22428
  const cur = getCurrentBlock();
22363
22429
  editor.updateBlock(cur, { props: { ...cur.props, mcpServers: JSON.stringify(next) } });
@@ -22372,21 +22438,21 @@ var SkillsFlowView = ({ editor, block }) => {
22372
22438
  })),
22373
22439
  [capsules]
22374
22440
  );
22375
- const handleSkillsChange = useCallback78(
22441
+ const handleSkillsChange = useCallback79(
22376
22442
  (cids) => {
22377
22443
  const next = cids.map((cid) => capsules.find((c) => c.cid === cid)).filter((c) => !!c);
22378
22444
  updateSkills(next);
22379
22445
  },
22380
22446
  [capsules, updateSkills]
22381
22447
  );
22382
- const resetMcpForm = useCallback78(() => {
22448
+ const resetMcpForm = useCallback79(() => {
22383
22449
  setShowAddMcp(false);
22384
22450
  setMcpName("");
22385
22451
  setMcpUrl("");
22386
22452
  setMcpDescription("");
22387
22453
  setEditingMcpIndex(null);
22388
22454
  }, []);
22389
- const handleValidateMcp = useCallback78(
22455
+ const handleValidateMcp = useCallback79(
22390
22456
  async (url) => {
22391
22457
  setValidatingUrls((prev) => ({ ...prev, [url]: true }));
22392
22458
  setValidationResults((prev) => {
@@ -22415,7 +22481,7 @@ var SkillsFlowView = ({ editor, block }) => {
22415
22481
  },
22416
22482
  [handlers]
22417
22483
  );
22418
- const handleContinue = useCallback78(() => {
22484
+ const handleContinue = useCallback79(() => {
22419
22485
  const cur = getCurrentBlock();
22420
22486
  const currentMcpServers = parseMcpServers(cur.props.mcpServers);
22421
22487
  updateRuntime({
@@ -22430,14 +22496,14 @@ var SkillsFlowView = ({ editor, block }) => {
22430
22496
  });
22431
22497
  editor.updateBlock(cur, { props: { ...cur.props, status: "approved" } });
22432
22498
  }, [updateRuntime, getCurrentBlock, editor, block.id]);
22433
- const handleEdit = useCallback78(() => {
22499
+ const handleEdit = useCallback79(() => {
22434
22500
  updateRuntime({ state: "idle", evaluationStatus: void 0, claimId: void 0, output: void 0 });
22435
22501
  const cur = getCurrentBlock();
22436
22502
  editor.updateBlock(cur, { props: { ...cur.props, status: "pending" } });
22437
22503
  }, [updateRuntime, getCurrentBlock, editor]);
22438
- const [savingMcp, setSavingMcp] = useState89(false);
22439
- const [mcpSaveError, setMcpSaveError] = useState89(null);
22440
- const handleSaveMcp = useCallback78(async () => {
22504
+ const [savingMcp, setSavingMcp] = useState90(false);
22505
+ const [mcpSaveError, setMcpSaveError] = useState90(null);
22506
+ const handleSaveMcp = useCallback79(async () => {
22441
22507
  const url = mcpUrl.trim();
22442
22508
  if (!mcpName.trim() || !url) return;
22443
22509
  setSavingMcp(true);
@@ -22860,7 +22926,7 @@ blockRegistry.register({
22860
22926
  });
22861
22927
 
22862
22928
  // src/mantine/blocks/hooks/useBlockDependencies.ts
22863
- import { useMemo as useMemo96, useEffect as useEffect77, useState as useState90, useCallback as useCallback79 } from "react";
22929
+ import { useMemo as useMemo96, useEffect as useEffect77, useState as useState91, useCallback as useCallback80 } from "react";
22864
22930
 
22865
22931
  // src/mantine/blocks/hooks/useDependsOn.ts
22866
22932
  import { useMemo as useMemo97 } from "react";
@@ -23368,14 +23434,14 @@ var getExtraSlashMenuItems = (editor, translate) => {
23368
23434
  };
23369
23435
 
23370
23436
  // src/mantine/inline/FlowStepRefSpec.tsx
23371
- import React225, { useEffect as useEffect78, useState as useState91 } from "react";
23437
+ import React225, { useEffect as useEffect78, useState as useState92 } from "react";
23372
23438
  import { createReactInlineContentSpec } from "@blocknote/react";
23373
23439
  import { IconBolt as IconBolt12, IconCheck as IconCheck19 } from "@tabler/icons-react";
23374
23440
  function useStepRefState(nodeId, fallbackLabel) {
23375
23441
  const { editor } = useBlocknoteContext();
23376
23442
  const sessionRunId = useRunSessionId();
23377
23443
  const initial = fallbackLabel || nodeId || "Step";
23378
- const [state, setState] = useState91({ text: initial, missing: false, completed: false });
23444
+ const [state, setState] = useState92({ text: initial, missing: false, completed: false });
23379
23445
  useEffect78(() => {
23380
23446
  const ed = editor;
23381
23447
  if (!ed) return;
@@ -23603,7 +23669,7 @@ import { useCreateBlockNote as useCreateBlockNote2 } from "@blocknote/react";
23603
23669
  import { BlockNoteSchema as BlockNoteSchema2, defaultBlockSpecs as defaultBlockSpecs2, defaultInlineContentSpecs as defaultInlineContentSpecs2 } from "@blocknote/core";
23604
23670
 
23605
23671
  // src/core/hooks/useMatrixProvider.ts
23606
- import { useEffect as useEffect79, useState as useState92, useRef as useRef26, useCallback as useCallback80, useMemo as useMemo98, useReducer } from "react";
23672
+ import { useEffect as useEffect79, useState as useState93, useRef as useRef26, useCallback as useCallback81, useMemo as useMemo98, useReducer } from "react";
23607
23673
  import { MatrixProvider } from "@ixo/matrix-crdt";
23608
23674
  var FLUSH_TIMEOUT_MS = 3e3;
23609
23675
  var RETRY_BASE_MS = 5e3;
@@ -23676,8 +23742,8 @@ function useDedicatedMatrixProvider({
23676
23742
  enableExperimentalWebrtcSync = true,
23677
23743
  enabled = true
23678
23744
  }) {
23679
- const [matrixProvider, setProvider] = useState92(null);
23680
- const [status, setStatus] = useState92("disconnected");
23745
+ const [matrixProvider, setProvider] = useState93(null);
23746
+ const [status, setStatus] = useState93("disconnected");
23681
23747
  const isMountedRef = useRef26(true);
23682
23748
  const providerRef = useRef26(null);
23683
23749
  const retryTimeoutRef = useRef26(null);
@@ -23700,22 +23766,22 @@ function useDedicatedMatrixProvider({
23700
23766
  }),
23701
23767
  [enableExperimentalWebrtcSync, eventTypes?.snapshotEventType, eventTypes?.snapshotV2EventType, eventTypes?.updateEventType]
23702
23768
  );
23703
- const handleDocumentAvailable = useCallback80(() => {
23769
+ const handleDocumentAvailable = useCallback81(() => {
23704
23770
  if (isMountedRef.current) {
23705
23771
  setStatus("connected");
23706
23772
  }
23707
23773
  }, []);
23708
- const handleDocumentUnavailable = useCallback80(() => {
23774
+ const handleDocumentUnavailable = useCallback81(() => {
23709
23775
  if (isMountedRef.current) {
23710
23776
  setStatus("failed");
23711
23777
  }
23712
23778
  }, []);
23713
- const handleCanWriteChanged = useCallback80(() => {
23779
+ const handleCanWriteChanged = useCallback81(() => {
23714
23780
  if (isMountedRef.current && providerRef.current) {
23715
23781
  setStatus(providerRef.current.canWrite ? "connected" : "failed");
23716
23782
  }
23717
23783
  }, []);
23718
- const initProvider = useCallback80(async () => {
23784
+ const initProvider = useCallback81(async () => {
23719
23785
  if (!isMountedRef.current) return;
23720
23786
  if (retryTimeoutRef.current) {
23721
23787
  clearTimeout(retryTimeoutRef.current);
@@ -23755,7 +23821,7 @@ function useDedicatedMatrixProvider({
23755
23821
  }, retryDelayMs(attempt));
23756
23822
  }
23757
23823
  }, [providerClient, providerOptions, roomId, handleDocumentAvailable, handleDocumentUnavailable, handleCanWriteChanged]);
23758
- const reconnect = useCallback80(() => {
23824
+ const reconnect = useCallback81(() => {
23759
23825
  if (retryTimeoutRef.current) {
23760
23826
  clearTimeout(retryTimeoutRef.current);
23761
23827
  retryTimeoutRef.current = null;
@@ -23817,7 +23883,7 @@ function useCollaborativeYDoc(options) {
23817
23883
  }
23818
23884
 
23819
23885
  // src/mantine/hooks/useCollaborativeIxoEditor.ts
23820
- import { useMemo as useMemo100, useEffect as useEffect81, useState as useState93, useRef as useRef28 } from "react";
23886
+ import { useMemo as useMemo100, useEffect as useEffect81, useState as useState94, useRef as useRef28 } from "react";
23821
23887
 
23822
23888
  // src/core/lib/matrixMetadata.ts
23823
23889
  var COVER_IMAGE_EVENT_TYPE = "ixo.page.cover_image";
@@ -24071,7 +24137,7 @@ function logInvocation(matrixClient, roomId, invocation) {
24071
24137
  }
24072
24138
 
24073
24139
  // src/mantine/hooks/useFlowLifecycle.ts
24074
- import { useEffect as useEffect80, useCallback as useCallback81, useRef as useRef27 } from "react";
24140
+ import { useEffect as useEffect80, useCallback as useCallback82, useRef as useRef27 } from "react";
24075
24141
 
24076
24142
  // src/mantine/hooks/useFlowTTLCleanup.ts
24077
24143
  function performTTLCleanup(editor, sessionRunId) {
@@ -24270,7 +24336,7 @@ var DEFAULT_INTERVAL_MS = 3e4;
24270
24336
  function useFlowLifecycle({ editor, connectionStatus, sessionRunId, enabled = true }) {
24271
24337
  const hasRunInitialRef = useRef27(false);
24272
24338
  const runningRef = useRef27(false);
24273
- const runPipeline = useCallback81(async () => {
24339
+ const runPipeline = useCallback82(async () => {
24274
24340
  if (!editor || runningRef.current) return;
24275
24341
  runningRef.current = true;
24276
24342
  try {
@@ -24506,7 +24572,7 @@ function useCreateCollaborativeIxoEditor(options) {
24506
24572
  }),
24507
24573
  [theme, editable, sideMenu, slashMenu, formattingToolbar, linkToolbar, filePanel, tableHandles]
24508
24574
  );
24509
- const [providerReady, setProviderReady] = useState93(false);
24575
+ const [providerReady, setProviderReady] = useState94(false);
24510
24576
  useEffect81(() => {
24511
24577
  if (matrixProvider && !providerReady) setProviderReady(true);
24512
24578
  }, [matrixProvider, providerReady]);
@@ -24564,9 +24630,7 @@ function useCreateCollaborativeIxoEditor(options) {
24564
24630
  result.title = titleText.toString() || result.title || "";
24565
24631
  return result;
24566
24632
  };
24567
- ixoEditor.getFlowOwnerDid = () => {
24568
- return root.get("flowOwnerDid") || "";
24569
- };
24633
+ ixoEditor.getFlowOwnerDid = () => bindFlowOwnerFromRoom(yDoc, matrixClient, options.roomId);
24570
24634
  ixoEditor.updateFlowMetadata = (updates) => {
24571
24635
  if (!permissions.write) {
24572
24636
  return;
@@ -24624,21 +24688,10 @@ function useCreateCollaborativeIxoEditor(options) {
24624
24688
  console.warn("Cannot set delegation: write permission denied");
24625
24689
  return;
24626
24690
  }
24627
- if (delegation.cid) {
24691
+ if (delegation?.cid && typeof delegation.delegation === "string" && delegation.delegation) {
24628
24692
  ucanDelegationStore.set(delegation);
24629
- } else if (delegation.id) {
24630
- const stored = {
24631
- cid: delegation.id,
24632
- delegation: "",
24633
- issuerDid: delegation.issuer,
24634
- audienceDid: delegation.audience,
24635
- capabilities: delegation.capabilities,
24636
- expiration: delegation.expiration,
24637
- createdAt: delegation.issuedAt ? new Date(delegation.issuedAt).getTime() : Date.now(),
24638
- format: "car",
24639
- proofCids: delegation.proofs || []
24640
- };
24641
- ucanDelegationStore.set(stored);
24693
+ } else {
24694
+ console.warn("Refusing to store a delegation with no signed CAR");
24642
24695
  }
24643
24696
  };
24644
24697
  ixoEditor.getRootCapability = () => {
@@ -24745,6 +24798,9 @@ function useCreateCollaborativeIxoEditor(options) {
24745
24798
  ixoEditor.isEditable = editable;
24746
24799
  }
24747
24800
  }, [ixoEditor, editable]);
24801
+ useEffect81(() => {
24802
+ bindFlowOwnerFromRoom(yDoc, matrixClient, options.roomId);
24803
+ }, [yDoc, matrixClient, options.roomId, connectionStatus]);
24748
24804
  useEffect81(() => {
24749
24805
  if (connectionStatus !== "connected") {
24750
24806
  return;
@@ -24759,23 +24815,28 @@ function useCreateCollaborativeIxoEditor(options) {
24759
24815
  root.set("@context", `https://ixo.world/flow/${LATEST_VERSION}`);
24760
24816
  root.set("_type", "ixo.flow.crdt");
24761
24817
  root.set("schema_version", LATEST_VERSION);
24762
- root.set("doc_id", options.docId || `flow_${Date.now()}`);
24818
+ const docId = options.docId || `flow_${Date.now()}`;
24819
+ root.set("doc_id", docId);
24820
+ writeFlowIdentity(matrixClient, options.roomId, docId).catch((error) => {
24821
+ console.warn("Could not write the flow identity event:", error);
24822
+ });
24763
24823
  root.set("createdAt", (/* @__PURE__ */ new Date()).toISOString());
24764
24824
  root.set("createdBy", memoizedUser.id || "anonymous");
24765
- root.set("flowOwnerDid", memoizedUser.did || "");
24825
+ const creatorDid = bindFlowOwnerFromRoom(yDoc, matrixClient, options.roomId);
24826
+ if (creatorDid) root.set("flowOwnerDid", creatorDid);
24766
24827
  if (options.sourceTemplateId && !root.get("source_template_id")) {
24767
24828
  root.set("source_template_id", options.sourceTemplateId);
24768
24829
  }
24769
24830
  if (titleText.length === 0 && options.title) {
24770
24831
  titleText.insert(0, options.title);
24771
24832
  }
24772
- }, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, options.sourceTemplateId, memoizedUser.id]);
24833
+ }, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, options.sourceTemplateId, memoizedUser.id, yDoc, matrixClient, options.roomId]);
24773
24834
  useEffect81(() => {
24774
24835
  if (connectionStatus !== "connected") return;
24775
24836
  if (!permissions.write) return;
24776
24837
  collectPhantomLegacyRun(yDoc);
24777
24838
  }, [connectionStatus, permissions.write, yDoc]);
24778
- const [connectedUsers, setConnectedUsers] = useState93([]);
24839
+ const [connectedUsers, setConnectedUsers] = useState94([]);
24779
24840
  const activeBlockIdRef = useRef28(null);
24780
24841
  const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
24781
24842
  useEffect81(() => {
@@ -24848,15 +24909,15 @@ function useCreateCollaborativeIxoEditor(options) {
24848
24909
  }
24849
24910
 
24850
24911
  // src/mantine/components/Base/BaseIconPicker.tsx
24851
- import React227, { useState as useState95, useMemo as useMemo101, useEffect as useEffect82 } from "react";
24912
+ import React227, { useState as useState96, useMemo as useMemo101, useEffect as useEffect82 } from "react";
24852
24913
  import { TextInput as TextInput5, Tabs as Tabs3, Box as Box51, Stack as Stack138, UnstyledButton as UnstyledButton3, Text as Text137, Center as Center11, ScrollArea as ScrollArea4, Group as Group85, Popover as Popover4 } from "@mantine/core";
24853
24914
  import { IconSearch as IconSearch6, IconX as IconX13, IconChevronLeft, IconChevronRight as IconChevronRight11 } from "@tabler/icons-react";
24854
24915
 
24855
24916
  // src/mantine/components/Base/CoverImageButton.tsx
24856
- import React226, { forwardRef, useState as useState94 } from "react";
24917
+ import React226, { forwardRef, useState as useState95 } from "react";
24857
24918
  import { UnstyledButton as UnstyledButton2, Group as Group84, Text as Text136 } from "@mantine/core";
24858
24919
  var CoverImageButton = forwardRef(function CoverImageButton2({ isActive = false, onClick, icon: icon2, children, style }, ref) {
24859
- const [hovered, setHovered] = useState94(false);
24920
+ const [hovered, setHovered] = useState95(false);
24860
24921
  return /* @__PURE__ */ React226.createElement(
24861
24922
  UnstyledButton2,
24862
24923
  {
@@ -24925,10 +24986,10 @@ var localStorageService = {
24925
24986
  var iconsKey = "editor_recent_icons";
24926
24987
  var ICONS_PER_PAGE = 100;
24927
24988
  function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove, children, currentIcon }) {
24928
- const [searchQuery, setSearchQuery] = useState95("");
24929
- const [activeTab, setActiveTab] = useState95("icons");
24930
- const [currentPage, setCurrentPage] = useState95(1);
24931
- const [allIcons, setAllIcons] = useState95([]);
24989
+ const [searchQuery, setSearchQuery] = useState96("");
24990
+ const [activeTab, setActiveTab] = useState96("icons");
24991
+ const [currentPage, setCurrentPage] = useState96(1);
24992
+ const [allIcons, setAllIcons] = useState96([]);
24932
24993
  useEffect82(() => {
24933
24994
  if (!opened || allIcons.length) return;
24934
24995
  let cancelled = false;
@@ -25075,7 +25136,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
25075
25136
  }
25076
25137
 
25077
25138
  // src/mantine/components/CoverImage.tsx
25078
- import React230, { useState as useState98, useRef as useRef29, useEffect as useEffect85, useMemo as useMemo102 } from "react";
25139
+ import React230, { useState as useState99, useRef as useRef29, useEffect as useEffect85, useMemo as useMemo102 } from "react";
25079
25140
  import { Box as Box54, Group as Group87 } from "@mantine/core";
25080
25141
  import { IconMoodSmile, IconPhoto as IconPhoto4, IconSettings as IconSettings24, IconArrowsMove, IconTrash as IconTrash12, IconRefresh as IconRefresh7 } from "@tabler/icons-react";
25081
25142
 
@@ -25210,11 +25271,11 @@ function transformIconImage(sourceUrl, size = "default", customOptions) {
25210
25271
  }
25211
25272
 
25212
25273
  // src/mantine/components/Base/PageIcon.tsx
25213
- import React228, { useEffect as useEffect83, useState as useState96 } from "react";
25274
+ import React228, { useEffect as useEffect83, useState as useState97 } from "react";
25214
25275
  import { Center as Center12, Box as Box52 } from "@mantine/core";
25215
25276
  function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
25216
25277
  const isIconName = src && !src.startsWith("http");
25217
- const [loaded, setLoaded] = useState96();
25278
+ const [loaded, setLoaded] = useState97();
25218
25279
  useEffect83(() => {
25219
25280
  if (!isIconName || !src || pageIcons[src]) return;
25220
25281
  let cancelled = false;
@@ -25272,14 +25333,14 @@ function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
25272
25333
  import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
25273
25334
 
25274
25335
  // src/mantine/components/FlowSettingsPanel.tsx
25275
- import React229, { useState as useState97, useEffect as useEffect84, useCallback as useCallback82 } from "react";
25336
+ import React229, { useState as useState98, useEffect as useEffect84, useCallback as useCallback83 } from "react";
25276
25337
  import { Stack as Stack139, Group as Group86, Button as Button40, ActionIcon as ActionIcon35, Text as Text138, Box as Box53 } from "@mantine/core";
25277
25338
  import { IconPlus as IconPlus9, IconTrash as IconTrash11 } from "@tabler/icons-react";
25278
25339
  var SYSTEM_KEYS = /* @__PURE__ */ new Set(["@context", "_type", "schema_version", "doc_id", "title", "createdAt", "createdBy", "flowOwnerDid"]);
25279
25340
  var FlowSettingsPanel = ({ editor }) => {
25280
25341
  const { closePanel } = usePanelStore();
25281
- const [rows, setRows] = useState97([]);
25282
- const loadSettings = useCallback82(() => {
25342
+ const [rows, setRows] = useState98([]);
25343
+ const loadSettings = useCallback83(() => {
25283
25344
  const metadata = editor.getFlowMetadata?.();
25284
25345
  if (!metadata) return;
25285
25346
  const customRows = [];
@@ -25293,7 +25354,7 @@ var FlowSettingsPanel = ({ editor }) => {
25293
25354
  useEffect84(() => {
25294
25355
  loadSettings();
25295
25356
  }, [loadSettings]);
25296
- const handleKeyChange = useCallback82(
25357
+ const handleKeyChange = useCallback83(
25297
25358
  (index, newKey) => {
25298
25359
  setRows((prev) => {
25299
25360
  const updated = [...prev];
@@ -25310,7 +25371,7 @@ var FlowSettingsPanel = ({ editor }) => {
25310
25371
  },
25311
25372
  [editor]
25312
25373
  );
25313
- const handleValueChange = useCallback82(
25374
+ const handleValueChange = useCallback83(
25314
25375
  (index, newValue) => {
25315
25376
  setRows((prev) => {
25316
25377
  const updated = [...prev];
@@ -25324,10 +25385,10 @@ var FlowSettingsPanel = ({ editor }) => {
25324
25385
  },
25325
25386
  [editor]
25326
25387
  );
25327
- const handleAdd = useCallback82(() => {
25388
+ const handleAdd = useCallback83(() => {
25328
25389
  setRows((prev) => [...prev, { key: "", value: "" }]);
25329
25390
  }, []);
25330
- const handleDelete = useCallback82(
25391
+ const handleDelete = useCallback83(
25331
25392
  (index) => {
25332
25393
  setRows((prev) => {
25333
25394
  const row = prev[index];
@@ -25346,13 +25407,13 @@ var FlowSettingsPanel = ({ editor }) => {
25346
25407
  // src/mantine/components/CoverImage.tsx
25347
25408
  function CoverImage({ coverImageUrl, logoUrl }) {
25348
25409
  const { editor, handlers, editable } = useBlocknoteContext();
25349
- const [isHovering, setIsHovering] = useState98(false);
25350
- const [isRepositioning, setIsRepositioning] = useState98(false);
25351
- const [coverPosition, setCoverPosition] = useState98(() => editor?.getPageMetadata?.()?.coverPosition ?? 50);
25410
+ const [isHovering, setIsHovering] = useState99(false);
25411
+ const [isRepositioning, setIsRepositioning] = useState99(false);
25412
+ const [coverPosition, setCoverPosition] = useState99(() => editor?.getPageMetadata?.()?.coverPosition ?? 50);
25352
25413
  const coverFileInputRef = useRef29(null);
25353
25414
  const logoFileInputRef = useRef29(null);
25354
25415
  const [opened, { open, close }] = useDisclosure6(false);
25355
- const [metadata, setMetadata] = useState98(() => editor?.getPageMetadata?.() || null);
25416
+ const [metadata, setMetadata] = useState99(() => editor?.getPageMetadata?.() || null);
25356
25417
  const settingsPanelContent = useMemo102(() => editor ? /* @__PURE__ */ React230.createElement(FlowSettingsPanel, { editor }) : null, [editor]);
25357
25418
  const { open: openSettings } = usePanel("flow-settings-panel", settingsPanelContent);
25358
25419
  useEffect85(() => {
@@ -25645,7 +25706,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
25645
25706
  }
25646
25707
 
25647
25708
  // src/mantine/components/PageTitle.tsx
25648
- import React231, { useState as useState99, useEffect as useEffect86, useRef as useRef30, useCallback as useCallback83 } from "react";
25709
+ import React231, { useState as useState100, useEffect as useEffect86, useRef as useRef30, useCallback as useCallback84 } from "react";
25649
25710
  import { Box as Box55 } from "@mantine/core";
25650
25711
  var DEFAULT_TITLE = "New page";
25651
25712
  function isUserTitle(name) {
@@ -25690,8 +25751,8 @@ function insertPlainTextAtSelection(root, text) {
25690
25751
  }
25691
25752
  function PageTitle({ editor, editable }) {
25692
25753
  const t = useTranslate();
25693
- const [title, setTitle] = useState99("");
25694
- const [hasIcon, setHasIcon] = useState99(false);
25754
+ const [title, setTitle] = useState100("");
25755
+ const [hasIcon, setHasIcon] = useState100(false);
25695
25756
  const titleRef = useRef30(null);
25696
25757
  const isComposing = useRef30(false);
25697
25758
  useEffect86(() => {
@@ -25719,7 +25780,7 @@ function PageTitle({ editor, editable }) {
25719
25780
  titleRef.current.textContent = title;
25720
25781
  }
25721
25782
  }, [title]);
25722
- const saveTitle = useCallback83(
25783
+ const saveTitle = useCallback84(
25723
25784
  async (newTitle) => {
25724
25785
  const trimmed = newTitle.trim();
25725
25786
  const toSave = trimmed || DEFAULT_TITLE;
@@ -25735,19 +25796,19 @@ function PageTitle({ editor, editable }) {
25735
25796
  },
25736
25797
  [editor]
25737
25798
  );
25738
- const handleInput = useCallback83(() => {
25799
+ const handleInput = useCallback84(() => {
25739
25800
  if (titleRef.current) {
25740
25801
  cleanEmptyEditable(titleRef.current);
25741
25802
  setTitle(titleRef.current.textContent || "");
25742
25803
  }
25743
25804
  }, []);
25744
- const handleBlur = useCallback83(() => {
25805
+ const handleBlur = useCallback84(() => {
25745
25806
  if (titleRef.current) {
25746
25807
  cleanEmptyEditable(titleRef.current);
25747
25808
  saveTitle(titleRef.current.textContent || "");
25748
25809
  }
25749
25810
  }, [saveTitle]);
25750
- const handleKeyDown = useCallback83(
25811
+ const handleKeyDown = useCallback84(
25751
25812
  (e) => {
25752
25813
  if (isComposing.current) return;
25753
25814
  if (e.key === "Enter" || e.key === "ArrowDown") {
@@ -25782,7 +25843,7 @@ function PageTitle({ editor, editable }) {
25782
25843
  container?.removeEventListener("keydown", handleEditorKeyDown, true);
25783
25844
  };
25784
25845
  }, [editor]);
25785
- const handlePaste = useCallback83((e) => {
25846
+ const handlePaste = useCallback84((e) => {
25786
25847
  e.preventDefault();
25787
25848
  const text = e.clipboardData.getData("text/plain").replace(/\r?\n/g, " ");
25788
25849
  if (titleRef.current) {
@@ -25848,7 +25909,7 @@ if (typeof document !== "undefined") {
25848
25909
  }
25849
25910
 
25850
25911
  // src/mantine/components/ExternalDropZone.tsx
25851
- import React232, { useCallback as useCallback84, useEffect as useEffect87, useRef as useRef31, useState as useState100 } from "react";
25912
+ import React232, { useCallback as useCallback85, useEffect as useEffect87, useRef as useRef31, useState as useState101 } from "react";
25852
25913
  import { Box as Box56 } from "@mantine/core";
25853
25914
  var SCROLL_ZONE_SIZE = 80;
25854
25915
  var SCROLL_SPEED = 12;
@@ -25862,19 +25923,19 @@ var ExternalDropZone = ({
25862
25923
  children
25863
25924
  }) => {
25864
25925
  const containerRef = useRef31(null);
25865
- const [isValidDrag, setIsValidDrag] = useState100(false);
25866
- const [isHoveringInPlacementMode, setIsHoveringInPlacementMode] = useState100(false);
25867
- const [indicatorStyle, setIndicatorStyle] = useState100({});
25926
+ const [isValidDrag, setIsValidDrag] = useState101(false);
25927
+ const [isHoveringInPlacementMode, setIsHoveringInPlacementMode] = useState101(false);
25928
+ const [indicatorStyle, setIndicatorStyle] = useState101({});
25868
25929
  const dropPositionRef = useRef31(null);
25869
25930
  const scrollAnimationRef = useRef31(null);
25870
25931
  const scrollDirectionRef = useRef31(null);
25871
25932
  const scrollContainerRef = useRef31(null);
25872
- const getBlockElements = useCallback84(() => {
25933
+ const getBlockElements = useCallback85(() => {
25873
25934
  if (!containerRef.current) return [];
25874
25935
  const blocks = containerRef.current.querySelectorAll('[data-node-type="blockContainer"]');
25875
25936
  return Array.from(blocks);
25876
25937
  }, []);
25877
- const getScrollContainer = useCallback84(() => {
25938
+ const getScrollContainer = useCallback85(() => {
25878
25939
  if (scrollContainerRef.current) return scrollContainerRef.current;
25879
25940
  let element = containerRef.current;
25880
25941
  while (element) {
@@ -25889,7 +25950,7 @@ var ExternalDropZone = ({
25889
25950
  scrollContainerRef.current = window;
25890
25951
  return window;
25891
25952
  }, []);
25892
- const performScroll = useCallback84(() => {
25953
+ const performScroll = useCallback85(() => {
25893
25954
  const container = getScrollContainer();
25894
25955
  const direction = scrollDirectionRef.current;
25895
25956
  if (!direction) {
@@ -25904,7 +25965,7 @@ var ExternalDropZone = ({
25904
25965
  }
25905
25966
  scrollAnimationRef.current = requestAnimationFrame(performScroll);
25906
25967
  }, [getScrollContainer]);
25907
- const startAutoScroll = useCallback84(
25968
+ const startAutoScroll = useCallback85(
25908
25969
  (direction) => {
25909
25970
  if (scrollDirectionRef.current === direction) return;
25910
25971
  scrollDirectionRef.current = direction;
@@ -25914,14 +25975,14 @@ var ExternalDropZone = ({
25914
25975
  },
25915
25976
  [performScroll]
25916
25977
  );
25917
- const stopAutoScroll = useCallback84(() => {
25978
+ const stopAutoScroll = useCallback85(() => {
25918
25979
  scrollDirectionRef.current = null;
25919
25980
  if (scrollAnimationRef.current) {
25920
25981
  cancelAnimationFrame(scrollAnimationRef.current);
25921
25982
  scrollAnimationRef.current = null;
25922
25983
  }
25923
25984
  }, []);
25924
- const checkAutoScroll = useCallback84(
25985
+ const checkAutoScroll = useCallback85(
25925
25986
  (clientY) => {
25926
25987
  const container = getScrollContainer();
25927
25988
  let containerTop;
@@ -25944,7 +26005,7 @@ var ExternalDropZone = ({
25944
26005
  },
25945
26006
  [getScrollContainer, startAutoScroll, stopAutoScroll]
25946
26007
  );
25947
- const findDropPosition = useCallback84(
26008
+ const findDropPosition = useCallback85(
25948
26009
  (clientY) => {
25949
26010
  const blocks = getBlockElements();
25950
26011
  if (blocks.length === 0 || !editor?.document) return null;
@@ -25977,7 +26038,7 @@ var ExternalDropZone = ({
25977
26038
  },
25978
26039
  [getBlockElements, editor]
25979
26040
  );
25980
- const handleDragOver = useCallback84(
26041
+ const handleDragOver = useCallback85(
25981
26042
  (e) => {
25982
26043
  if (!e.dataTransfer.types.includes(acceptedType)) return;
25983
26044
  e.preventDefault();
@@ -26000,7 +26061,7 @@ var ExternalDropZone = ({
26000
26061
  },
26001
26062
  [acceptedType, findDropPosition, checkAutoScroll]
26002
26063
  );
26003
- const handleDragLeave = useCallback84(
26064
+ const handleDragLeave = useCallback85(
26004
26065
  (e) => {
26005
26066
  if (containerRef.current && !containerRef.current.contains(e.relatedTarget)) {
26006
26067
  setIsValidDrag(false);
@@ -26010,7 +26071,7 @@ var ExternalDropZone = ({
26010
26071
  },
26011
26072
  [stopAutoScroll]
26012
26073
  );
26013
- const handleDrop = useCallback84(
26074
+ const handleDrop = useCallback85(
26014
26075
  (e) => {
26015
26076
  e.preventDefault();
26016
26077
  e.stopPropagation();
@@ -26033,7 +26094,7 @@ var ExternalDropZone = ({
26033
26094
  window.addEventListener("dragend", handleGlobalDragEnd);
26034
26095
  return () => window.removeEventListener("dragend", handleGlobalDragEnd);
26035
26096
  }, [stopAutoScroll]);
26036
- const handleOverlayMouseMove = useCallback84(
26097
+ const handleOverlayMouseMove = useCallback85(
26037
26098
  (e) => {
26038
26099
  setIsHoveringInPlacementMode(true);
26039
26100
  checkAutoScroll(e.clientY);
@@ -26052,12 +26113,12 @@ var ExternalDropZone = ({
26052
26113
  },
26053
26114
  [findDropPosition, checkAutoScroll]
26054
26115
  );
26055
- const handleOverlayMouseLeave = useCallback84(() => {
26116
+ const handleOverlayMouseLeave = useCallback85(() => {
26056
26117
  setIsHoveringInPlacementMode(false);
26057
26118
  dropPositionRef.current = null;
26058
26119
  stopAutoScroll();
26059
26120
  }, [stopAutoScroll]);
26060
- const handleOverlayClick = useCallback84(
26121
+ const handleOverlayClick = useCallback85(
26061
26122
  (e) => {
26062
26123
  e.preventDefault();
26063
26124
  e.stopPropagation();
@@ -26071,7 +26132,7 @@ var ExternalDropZone = ({
26071
26132
  },
26072
26133
  [onDrop, stopAutoScroll]
26073
26134
  );
26074
- const handleOverlayWheel = useCallback84(
26135
+ const handleOverlayWheel = useCallback85(
26075
26136
  (e) => {
26076
26137
  const container = getScrollContainer();
26077
26138
  if (container === window) {
@@ -26219,7 +26280,7 @@ function sanitizeThemeForMantine7(theme) {
26219
26280
  }
26220
26281
 
26221
26282
  // src/mantine/components/CommandPalette.tsx
26222
- import React233, { useEffect as useEffect88, useRef as useRef32, useState as useState101, useMemo as useMemo103, useCallback as useCallback85 } from "react";
26283
+ import React233, { useEffect as useEffect88, useRef as useRef32, useState as useState102, useMemo as useMemo103, useCallback as useCallback86 } from "react";
26223
26284
  import { Box as Box57, Text as Text139, Stack as Stack140 } from "@mantine/core";
26224
26285
  var GROUP_ORDER = {
26225
26286
  Headings: 0,
@@ -26250,7 +26311,7 @@ function translateGroupLabel(groupKey, t) {
26250
26311
  }
26251
26312
  function PaletteItem({ item, isSelected, onClick, id }) {
26252
26313
  const ref = useRef32(null);
26253
- const [hovered, setHovered] = useState101(false);
26314
+ const [hovered, setHovered] = useState102(false);
26254
26315
  useEffect88(() => {
26255
26316
  if (isSelected && ref.current) {
26256
26317
  ref.current.scrollIntoView({ block: "nearest" });
@@ -26335,7 +26396,7 @@ function CommandPalette({ items, onItemClick, loadingState, selectedIndex }) {
26335
26396
  }
26336
26397
  return groups;
26337
26398
  }, [items]);
26338
- const handleItemClick = useCallback85(
26399
+ const handleItemClick = useCallback86(
26339
26400
  (item) => {
26340
26401
  onItemClick?.(item);
26341
26402
  },
@@ -26768,7 +26829,7 @@ function IxoEditor({
26768
26829
  }
26769
26830
 
26770
26831
  // src/mantine/components/DevUcanGrantButton.tsx
26771
- import React236, { useEffect as useEffect90, useMemo as useMemo105, useState as useState102 } from "react";
26832
+ import React236, { useEffect as useEffect90, useMemo as useMemo105, useState as useState103 } from "react";
26772
26833
  import { Alert as Alert28, Badge as Badge40, Button as Button41, Checkbox as Checkbox7, Divider as Divider21, Group as Group88, Loader as Loader37, Modal as Modal3, Paper as Paper18, Select as Select5, Stack as Stack141, Text as Text140 } from "@mantine/core";
26773
26834
  import { IconKey as IconKey6, IconShieldPlus as IconShieldPlus4 } from "@tabler/icons-react";
26774
26835
  var FLOW_AGENT_COMMAND_TYPES = [
@@ -26848,21 +26909,21 @@ function DevUcanGrantButton({
26848
26909
  const editorHandlers = getHandlersFromEditor(editor);
26849
26910
  const handlers = propHandlers || contextHandlers || editorHandlers;
26850
26911
  const isControlled = controlledOpened !== void 0;
26851
- const [uncontrolledOpened, setUncontrolledOpened] = useState102(false);
26912
+ const [uncontrolledOpened, setUncontrolledOpened] = useState103(false);
26852
26913
  const opened = isControlled ? controlledOpened : uncontrolledOpened;
26853
26914
  const setOpened = (next) => {
26854
26915
  if (!isControlled) setUncontrolledOpened(next);
26855
26916
  onOpenedChange?.(next);
26856
26917
  };
26857
- const [members, setMembers] = useState102([]);
26858
- const [selectedMemberDid, setSelectedMemberDid] = useState102(null);
26859
- const [selectedCapabilities, setSelectedCapabilities] = useState102([]);
26860
- const [loadingMembers, setLoadingMembers] = useState102(false);
26861
- const [signing, setSigning] = useState102(false);
26862
- const [message, setMessage] = useState102(null);
26918
+ const [members, setMembers] = useState103([]);
26919
+ const [selectedMemberDid, setSelectedMemberDid] = useState103(null);
26920
+ const [selectedCapabilities, setSelectedCapabilities] = useState103([]);
26921
+ const [loadingMembers, setLoadingMembers] = useState103(false);
26922
+ const [signing, setSigning] = useState103(false);
26923
+ const [message, setMessage] = useState103(null);
26863
26924
  const roomId = editor.getRoomId?.() || "";
26864
26925
  const matrixClient = editor.getMatrixClient?.();
26865
- const flowOwnerDid = editor.getFlowOwnerDid?.() || editor.user?.id || "";
26926
+ const flowOwnerDid = editor.getFlowOwnerDid?.() || "";
26866
26927
  const rootCapability = editor.getRootCapability?.();
26867
26928
  const rootProofCid = getProofCid(rootCapability);
26868
26929
  const rootProofDelegation = typeof rootCapability?.delegation === "string" && rootCapability.delegation ? rootCapability.delegation : "";
@@ -27056,15 +27117,15 @@ function DevUcanGrantButton({
27056
27117
  }
27057
27118
 
27058
27119
  // src/mantine/components/EntitySigningSetup.tsx
27059
- import React237, { useState as useState103 } from "react";
27120
+ import React237, { useState as useState104 } from "react";
27060
27121
  import { Modal as Modal4, Stack as Stack142, Text as Text141, TextInput as TextInput6, Button as Button42, Alert as Alert29, Group as Group89 } from "@mantine/core";
27061
27122
  import { IconAlertCircle as IconAlertCircle17, IconCheck as IconCheck20, IconKey as IconKey7 } from "@tabler/icons-react";
27062
27123
  var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) => {
27063
- const [pin, setPin] = useState103("");
27064
- const [confirmPin, setConfirmPin] = useState103("");
27065
- const [loading, setLoading] = useState103(false);
27066
- const [error, setError] = useState103(null);
27067
- const [success, setSuccess] = useState103(false);
27124
+ const [pin, setPin] = useState104("");
27125
+ const [confirmPin, setConfirmPin] = useState104("");
27126
+ const [loading, setLoading] = useState104(false);
27127
+ const [error, setError] = useState104(null);
27128
+ const [success, setSuccess] = useState104(false);
27068
27129
  const handleSetup = async () => {
27069
27130
  if (pin.length < 4) {
27070
27131
  setError("PIN must be at least 4 characters");
@@ -27128,13 +27189,13 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
27128
27189
  };
27129
27190
 
27130
27191
  // src/mantine/components/FlowPermissionsPanel.tsx
27131
- import React238, { useState as useState104, useEffect as useEffect91, useMemo as useMemo106 } from "react";
27192
+ import React238, { useState as useState105, useEffect as useEffect91, useMemo as useMemo106 } from "react";
27132
27193
  import { Stack as Stack143, Text as Text142, Paper as Paper19, Group as Group90, Badge as Badge41, Button as Button43, ActionIcon as ActionIcon36, Loader as Loader38, Alert as Alert30, Divider as Divider22 } from "@mantine/core";
27133
27194
  import { IconPlus as IconPlus10, IconTrash as IconTrash13, IconShieldCheck as IconShieldCheck15, IconUser as IconUser14, IconRobot as IconRobot5, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
27134
27195
  var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
27135
- const [delegations, setDelegations] = useState104([]);
27136
- const [loading, setLoading] = useState104(true);
27137
- const [revoking, setRevoking] = useState104(null);
27196
+ const [delegations, setDelegations] = useState105([]);
27197
+ const [loading, setLoading] = useState105(true);
27198
+ const [revoking, setRevoking] = useState105(null);
27138
27199
  const rootDelegation = useMemo106(() => {
27139
27200
  if (editor.getUcanService) {
27140
27201
  return editor.getUcanService()?.getRootDelegation() || null;
@@ -27215,28 +27276,27 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
27215
27276
  };
27216
27277
 
27217
27278
  // src/mantine/components/GrantPermissionModal.tsx
27218
- import React239, { useState as useState105, useCallback as useCallback86 } from "react";
27279
+ import React239, { useState as useState106, useCallback as useCallback87 } from "react";
27219
27280
  import { Modal as Modal5, Stack as Stack144, Text as Text143, TextInput as TextInput7, Button as Button44, Group as Group91, Radio as Radio2, Checkbox as Checkbox8, Alert as Alert31, Paper as Paper20, Loader as Loader39, Badge as Badge42, ActionIcon as ActionIcon37, Divider as Divider23, NumberInput as NumberInput2 } from "@mantine/core";
27220
27281
  import { IconSearch as IconSearch7, IconUser as IconUser15, IconRobot as IconRobot6, IconX as IconX14, IconShieldPlus as IconShieldPlus5 } from "@tabler/icons-react";
27282
+ var MAX_GRANT_DAYS2 = 30;
27221
27283
  var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, searchUsers, getOracles, onGrant }) => {
27222
27284
  const singleBlockMode = !!targetBlockId || blocks.length === 1;
27223
27285
  const fixedBlockId = targetBlockId || (blocks.length === 1 ? blocks[0].id : null);
27224
27286
  const fixedBlock = fixedBlockId ? blocks.find((b) => b.id === fixedBlockId) || blocks[0] : null;
27225
- const [recipientType, setRecipientType] = useState105("user");
27226
- const [searchQuery, setSearchQuery] = useState105("");
27227
- const [searchResults, setSearchResults] = useState105([]);
27228
- const [searching, setSearching] = useState105(false);
27229
- const [selectedRecipient, setSelectedRecipient] = useState105(null);
27230
- const [manualDid, setManualDid] = useState105("");
27231
- const [scopeType, setScopeType] = useState105("full");
27232
- const [selectedBlocks, setSelectedBlocks] = useState105([]);
27233
- const [expirationEnabled, setExpirationEnabled] = useState105(false);
27234
- const [expirationDays, setExpirationDays] = useState105(30);
27235
- const [canDelegate, setCanDelegate] = useState105(false);
27236
- const [pin, setPin] = useState105("");
27237
- const [loading, setLoading] = useState105(false);
27238
- const [error, setError] = useState105(null);
27239
- const handleSearch = useCallback86(async () => {
27287
+ const [recipientType, setRecipientType] = useState106("user");
27288
+ const [searchQuery, setSearchQuery] = useState106("");
27289
+ const [searchResults, setSearchResults] = useState106([]);
27290
+ const [searching, setSearching] = useState106(false);
27291
+ const [selectedRecipient, setSelectedRecipient] = useState106(null);
27292
+ const [manualDid, setManualDid] = useState106("");
27293
+ const [scopeType, setScopeType] = useState106("full");
27294
+ const [selectedBlocks, setSelectedBlocks] = useState106([]);
27295
+ const [expirationDays, setExpirationDays] = useState106(MAX_GRANT_DAYS2);
27296
+ const [pin, setPin] = useState106("");
27297
+ const [loading, setLoading] = useState106(false);
27298
+ const [error, setError] = useState106(null);
27299
+ const handleSearch = useCallback87(async () => {
27240
27300
  if (searchQuery.length < 2) return;
27241
27301
  setSearching(true);
27242
27302
  try {
@@ -27277,15 +27337,19 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
27277
27337
  setError("Please select at least one block or use full access");
27278
27338
  return;
27279
27339
  }
27280
- const expiration = expirationEnabled && expirationDays ? Date.now() + Number(expirationDays) * 24 * 60 * 60 * 1e3 : void 0;
27340
+ const days = Number(expirationDays);
27341
+ if (!Number.isFinite(days) || days < 1 || days > MAX_GRANT_DAYS2) {
27342
+ setError(`Pick an expiry between 1 and ${MAX_GRANT_DAYS2} days.`);
27343
+ return;
27344
+ }
27345
+ const expiration = Date.now() + Math.floor(days) * 24 * 60 * 60 * 1e3;
27281
27346
  const grant = {
27282
27347
  audience,
27283
27348
  audienceDisplayName: recipientType === "manual" ? manualDid : selectedRecipient?.displayName,
27284
27349
  capabilities,
27285
27350
  proofs: [],
27286
27351
  // Will be filled by parent component
27287
- expiration,
27288
- canDelegate
27352
+ expiration
27289
27353
  };
27290
27354
  setLoading(true);
27291
27355
  setError(null);
@@ -27311,9 +27375,7 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
27311
27375
  setManualDid("");
27312
27376
  setScopeType("full");
27313
27377
  setSelectedBlocks([]);
27314
- setExpirationEnabled(false);
27315
- setExpirationDays(30);
27316
- setCanDelegate(false);
27378
+ setExpirationDays(MAX_GRANT_DAYS2);
27317
27379
  setPin("");
27318
27380
  setError(null);
27319
27381
  };
@@ -27372,15 +27434,7 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
27372
27434
  }
27373
27435
  }
27374
27436
  )))))
27375
- )), /* @__PURE__ */ React239.createElement(Divider23, null), /* @__PURE__ */ React239.createElement(Stack144, { gap: "xs" }, /* @__PURE__ */ React239.createElement(Checkbox8, { label: "Set expiration", checked: expirationEnabled, onChange: (e) => setExpirationEnabled(e.currentTarget.checked) }), expirationEnabled && /* @__PURE__ */ React239.createElement(NumberInput2, { label: "Expires in (days)", placeholder: "30", value: expirationDays, onChange: setExpirationDays, min: 1, max: 365 })), /* @__PURE__ */ React239.createElement(
27376
- Checkbox8,
27377
- {
27378
- label: "Recipient can grant permissions to others",
27379
- description: "Allow this recipient to delegate their permissions",
27380
- checked: canDelegate,
27381
- onChange: (e) => setCanDelegate(e.currentTarget.checked)
27382
- }
27383
- ), /* @__PURE__ */ React239.createElement(Divider23, null), /* @__PURE__ */ React239.createElement(TextInput7, { label: "Enter your PIN to sign this delegation", type: "password", placeholder: "PIN", value: pin, onChange: (e) => setPin(e.currentTarget.value) }), error && /* @__PURE__ */ React239.createElement(Alert31, { color: "red" }, error), /* @__PURE__ */ React239.createElement(Group91, { justify: "flex-end" }, /* @__PURE__ */ React239.createElement(Button44, { variant: "subtle", onClick: handleClose, disabled: loading }, "Cancel"), /* @__PURE__ */ React239.createElement(Button44, { onClick: handleGrant, loading }, "Grant Permission")))
27437
+ )), /* @__PURE__ */ React239.createElement(Divider23, null), /* @__PURE__ */ React239.createElement(Stack144, { gap: "xs" }, /* @__PURE__ */ React239.createElement(NumberInput2, { label: "Expires in (days)", description: "Every grant expires. The flow's owner renews it before it runs out.", placeholder: "30", value: expirationDays, onChange: setExpirationDays, min: 1, max: MAX_GRANT_DAYS2, allowDecimal: false })), /* @__PURE__ */ React239.createElement(Divider23, null), /* @__PURE__ */ React239.createElement(TextInput7, { label: "Enter your PIN to sign this delegation", type: "password", placeholder: "PIN", value: pin, onChange: (e) => setPin(e.currentTarget.value) }), error && /* @__PURE__ */ React239.createElement(Alert31, { color: "red" }, error), /* @__PURE__ */ React239.createElement(Group91, { justify: "flex-end" }, /* @__PURE__ */ React239.createElement(Button44, { variant: "subtle", onClick: handleClose, disabled: loading }, "Cancel"), /* @__PURE__ */ React239.createElement(Button44, { onClick: handleGrant, loading }, "Grant Permission")))
27384
27438
  );
27385
27439
  };
27386
27440
 
@@ -27507,4 +27561,4 @@ export {
27507
27561
  ixoGraphQLClient,
27508
27562
  getEntity
27509
27563
  };
27510
- //# sourceMappingURL=chunk-UHH7KCNX.js.map
27564
+ //# sourceMappingURL=chunk-VDEWPLOB.js.map