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