@ixo/editor 6.35.5 → 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-4AQPVSPC.js → BidConfig-ZH625SNZ.js} +12 -13
- package/dist/{BidConfig-4AQPVSPC.js.map → BidConfig-ZH625SNZ.js.map} +1 -1
- package/dist/{BidFlowDetail-ET3TZUFV.js → BidFlowDetail-SZMKY75S.js} +18 -19
- package/dist/{BidFlowDetail-ET3TZUFV.js.map → BidFlowDetail-SZMKY75S.js.map} +1 -1
- package/dist/{CalendarEventCreateConfig-IRPEASQE.js → CalendarEventCreateConfig-F7EYC4VL.js} +13 -14
- package/dist/{CalendarEventCreateConfig-IRPEASQE.js.map → CalendarEventCreateConfig-F7EYC4VL.js.map} +1 -1
- package/dist/{CalendarEventCreateFlowDetail-XGSRNIDZ.js → CalendarEventCreateFlowDetail-JMYDUZRK.js} +14 -15
- package/dist/{CalendarEventCreateFlowDetail-XGSRNIDZ.js.map → CalendarEventCreateFlowDetail-JMYDUZRK.js.map} +1 -1
- package/dist/{CalendarEventListConfig-I3BQR3DL.js → CalendarEventListConfig-RRIV7IZG.js} +13 -14
- package/dist/{CalendarEventListConfig-I3BQR3DL.js.map → CalendarEventListConfig-RRIV7IZG.js.map} +1 -1
- package/dist/{CalendarEventListFlowDetail-SSRTOXIX.js → CalendarEventListFlowDetail-6LN4I3SI.js} +7 -5
- package/dist/{CalendarEventListFlowDetail-SSRTOXIX.js.map → CalendarEventListFlowDetail-6LN4I3SI.js.map} +1 -1
- package/dist/{CalendarEventUpdateConfig-O3YZKZIM.js → CalendarEventUpdateConfig-SARWZZG4.js} +13 -14
- package/dist/{CalendarEventUpdateConfig-O3YZKZIM.js.map → CalendarEventUpdateConfig-SARWZZG4.js.map} +1 -1
- package/dist/{CalendarEventUpdateFlowDetail-K4DSHL6C.js → CalendarEventUpdateFlowDetail-KZ2FG76Z.js} +14 -15
- package/dist/{CalendarEventUpdateFlowDetail-K4DSHL6C.js.map → CalendarEventUpdateFlowDetail-KZ2FG76Z.js.map} +1 -1
- package/dist/{ClaimConfig-2Q5W3Y4C.js → ClaimConfig-PMRVROQ7.js} +12 -13
- package/dist/{ClaimConfig-2Q5W3Y4C.js.map → ClaimConfig-PMRVROQ7.js.map} +1 -1
- package/dist/{ClaimFlowDetail-PKXLVOXC.js → ClaimFlowDetail-3364FIDU.js} +18 -19
- package/dist/{ClaimFlowDetail-PKXLVOXC.js.map → ClaimFlowDetail-3364FIDU.js.map} +1 -1
- package/dist/{CollectionLifecycleConfig-LCCGZ3CJ.js → CollectionLifecycleConfig-YPTZZJ3S.js} +6 -4
- package/dist/{CollectionLifecycleConfig-LCCGZ3CJ.js.map → CollectionLifecycleConfig-YPTZZJ3S.js.map} +1 -1
- package/dist/{CollectionLifecycleFlowDetail-IZCKERFC.js → CollectionLifecycleFlowDetail-OD7OZH6W.js} +17 -18
- package/dist/{CollectionLifecycleFlowDetail-IZCKERFC.js.map → CollectionLifecycleFlowDetail-OD7OZH6W.js.map} +1 -1
- package/dist/{CollectionUsersConfig-WVS7JE2F.js → CollectionUsersConfig-ETJM2G23.js} +15 -16
- package/dist/{CollectionUsersConfig-WVS7JE2F.js.map → CollectionUsersConfig-ETJM2G23.js.map} +1 -1
- package/dist/{CollectionUsersFlowDetail-Y2UH3TU7.js → CollectionUsersFlowDetail-AMPT7UEV.js} +19 -20
- package/dist/{CollectionUsersFlowDetail-Y2UH3TU7.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-FL7QAM3S.js → CredentialStoreFlowDetail-5LRH7NH5.js} +9 -10
- package/dist/{CredentialStoreFlowDetail-FL7QAM3S.js.map → CredentialStoreFlowDetail-5LRH7NH5.js.map} +1 -1
- package/dist/{DesignPodFlowDetail-JHJWGNVY.js → DesignPodFlowDetail-ECFMDZZ3.js} +7 -8
- package/dist/{DesignPodFlowDetail-JHJWGNVY.js.map → DesignPodFlowDetail-ECFMDZZ3.js.map} +1 -1
- package/dist/{DomainCardPreviewFlowDetail-Y2FE7O5Z.js → DomainCardPreviewFlowDetail-M7FPXS4N.js} +9 -10
- package/dist/{DomainCardPreviewFlowDetail-Y2FE7O5Z.js.map → DomainCardPreviewFlowDetail-M7FPXS4N.js.map} +1 -1
- package/dist/{DomainIndexerLookupFlowDetail-GJ7WWK7I.js → DomainIndexerLookupFlowDetail-L6GSDWLI.js} +7 -5
- package/dist/{DomainIndexerLookupFlowDetail-GJ7WWK7I.js.map → DomainIndexerLookupFlowDetail-L6GSDWLI.js.map} +1 -1
- package/dist/{DomainSignFlowDetail-BXZ6JBPR.js → DomainSignFlowDetail-5ERYSTPG.js} +10 -11
- package/dist/{DomainSignFlowDetail-BXZ6JBPR.js.map → DomainSignFlowDetail-5ERYSTPG.js.map} +1 -1
- package/dist/{DomainSingleSelectionConfig-ZNKIXB4P.js → DomainSingleSelectionConfig-DTHYPZBO.js} +6 -4
- package/dist/{DomainSingleSelectionConfig-ZNKIXB4P.js.map → DomainSingleSelectionConfig-DTHYPZBO.js.map} +1 -1
- package/dist/{DomainSingleSelectionFlowDetail-HWTQXSLA.js → DomainSingleSelectionFlowDetail-JKNAC2RY.js} +7 -5
- package/dist/{DomainSingleSelectionFlowDetail-HWTQXSLA.js.map → DomainSingleSelectionFlowDetail-JKNAC2RY.js.map} +1 -1
- package/dist/{EmailSendConfig-OQVXHNAF.js → EmailSendConfig-O3XDS5IE.js} +12 -13
- package/dist/{EmailSendConfig-OQVXHNAF.js.map → EmailSendConfig-O3XDS5IE.js.map} +1 -1
- package/dist/{EntityCreateOracleFlowDetail-H2X7CPYU.js → EntityCreateOracleFlowDetail-6XJ4UEL5.js} +9 -10
- package/dist/{EntityCreateOracleFlowDetail-H2X7CPYU.js.map → EntityCreateOracleFlowDetail-6XJ4UEL5.js.map} +1 -1
- package/dist/{EntitySingleSelectionFlowDetail-GFQGX3GA.js → EntitySingleSelectionFlowDetail-5BDIVHQV.js} +8 -6
- package/dist/{EntitySingleSelectionFlowDetail-GFQGX3GA.js.map → EntitySingleSelectionFlowDetail-5BDIVHQV.js.map} +1 -1
- package/dist/{EntityTransferFlowDetail-XEXM34XB.js → EntityTransferFlowDetail-DY2UZ5VA.js} +9 -10
- package/dist/{EntityTransferFlowDetail-XEXM34XB.js.map → EntityTransferFlowDetail-DY2UZ5VA.js.map} +1 -1
- package/dist/{EvalEngineConfig-6B5EXETY.js → EvalEngineConfig-5ZBXA3Q6.js} +17 -18
- package/dist/{EvalEngineConfig-6B5EXETY.js.map → EvalEngineConfig-5ZBXA3Q6.js.map} +1 -1
- package/dist/{EvalEngineFlowDetail-PUFRNO4U.js → EvalEngineFlowDetail-YL3FFONH.js} +11 -10
- package/dist/{EvalEngineFlowDetail-PUFRNO4U.js.map → EvalEngineFlowDetail-YL3FFONH.js.map} +1 -1
- package/dist/{EvaluateBidConfig-FGCVB3YR.js → EvaluateBidConfig-ZU7QUFXL.js} +12 -13
- package/dist/{EvaluateBidConfig-FGCVB3YR.js.map → EvaluateBidConfig-ZU7QUFXL.js.map} +1 -1
- package/dist/{EvaluateBidFlowDetail-4C3K2QVH.js → EvaluateBidFlowDetail-IATWBOE5.js} +17 -18
- package/dist/{EvaluateBidFlowDetail-4C3K2QVH.js.map → EvaluateBidFlowDetail-IATWBOE5.js.map} +1 -1
- package/dist/{EvaluateClaimConfig-LG47V642.js → EvaluateClaimConfig-HEYNWGSN.js} +12 -13
- package/dist/{EvaluateClaimConfig-LG47V642.js.map → EvaluateClaimConfig-HEYNWGSN.js.map} +1 -1
- package/dist/{EvaluateClaimFlowDetail-ITMCSEZT.js → EvaluateClaimFlowDetail-TOX53BGP.js} +18 -19
- package/dist/{EvaluateClaimFlowDetail-ITMCSEZT.js.map → EvaluateClaimFlowDetail-TOX53BGP.js.map} +1 -1
- package/dist/{FormSubmitFlowDetail-IAHDJS6P.js → FormSubmitFlowDetail-CVSUWEAW.js} +9 -10
- package/dist/{FormSubmitFlowDetail-IAHDJS6P.js.map → FormSubmitFlowDetail-CVSUWEAW.js.map} +1 -1
- package/dist/{GovernanceAuthzExecFlowDetail-SQBGU5BX.js → GovernanceAuthzExecFlowDetail-GWKPT7QW.js} +10 -11
- package/dist/{GovernanceAuthzExecFlowDetail-SQBGU5BX.js.map → GovernanceAuthzExecFlowDetail-GWKPT7QW.js.map} +1 -1
- package/dist/{GovernanceAuthzGrantFlowDetail-DZPNLANT.js → GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js} +11 -12
- package/dist/{GovernanceAuthzGrantFlowDetail-DZPNLANT.js.map → GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js.map} +1 -1
- package/dist/{GovernanceAuthzRevokeFlowDetail-3JZ4IUJG.js → GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js} +11 -12
- package/dist/{GovernanceAuthzRevokeFlowDetail-3JZ4IUJG.js.map → GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js.map} +1 -1
- package/dist/{GovernanceChainVoteFlowDetail-475UDNG6.js → GovernanceChainVoteFlowDetail-BO3DJNDF.js} +10 -11
- package/dist/{GovernanceChainVoteFlowDetail-475UDNG6.js.map → GovernanceChainVoteFlowDetail-BO3DJNDF.js.map} +1 -1
- package/dist/{GovernanceConfigFlowDetail-SQ5PPDRX.js → GovernanceConfigFlowDetail-FZB4R54G.js} +7 -5
- package/dist/{GovernanceConfigFlowDetail-SQ5PPDRX.js.map → GovernanceConfigFlowDetail-FZB4R54G.js.map} +1 -1
- package/dist/{GovernanceContractExecuteFlowDetail-H2ZV6W2E.js → GovernanceContractExecuteFlowDetail-JHIXCNXS.js} +11 -12
- package/dist/{GovernanceContractExecuteFlowDetail-H2ZV6W2E.js.map → GovernanceContractExecuteFlowDetail-JHIXCNXS.js.map} +1 -1
- package/dist/{GovernanceContractInstantiateFlowDetail-YJJMGM54.js → GovernanceContractInstantiateFlowDetail-XWSI2HXG.js} +11 -12
- package/dist/{GovernanceContractInstantiateFlowDetail-YJJMGM54.js.map → GovernanceContractInstantiateFlowDetail-XWSI2HXG.js.map} +1 -1
- package/dist/{GovernanceContractManageCw20FlowDetail-OCBMW3YJ.js → GovernanceContractManageCw20FlowDetail-5QI3FBNT.js} +10 -11
- package/dist/{GovernanceContractManageCw20FlowDetail-OCBMW3YJ.js.map → GovernanceContractManageCw20FlowDetail-5QI3FBNT.js.map} +1 -1
- package/dist/{GovernanceContractMigrateFlowDetail-JDNIKTT3.js → GovernanceContractMigrateFlowDetail-W2DEBKKU.js} +11 -12
- package/dist/{GovernanceContractMigrateFlowDetail-JDNIKTT3.js.map → GovernanceContractMigrateFlowDetail-W2DEBKKU.js.map} +1 -1
- package/dist/{GovernanceContractUpdateAdminFlowDetail-SZBOAOCC.js → GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js} +10 -11
- package/dist/{GovernanceContractUpdateAdminFlowDetail-SZBOAOCC.js.map → GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js.map} +1 -1
- package/dist/{GovernanceCustomMessageFlowDetail-CXD4ZATO.js → GovernanceCustomMessageFlowDetail-NNTHVM5D.js} +11 -12
- package/dist/{GovernanceCustomMessageFlowDetail-CXD4ZATO.js.map → GovernanceCustomMessageFlowDetail-NNTHVM5D.js.map} +1 -1
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-Q6ZBNY7Z.js → GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js} +11 -12
- package/dist/{GovernanceDaoAcceptToMarketplaceFlowDetail-Q6ZBNY7Z.js.map → GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js.map} +1 -1
- package/dist/{GovernanceDaoAdminExecFlowDetail-JAEAY2US.js → GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js} +12 -13
- package/dist/{GovernanceDaoAdminExecFlowDetail-JAEAY2US.js.map → GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js.map} +1 -1
- package/dist/{GovernanceDaoCreateEntityFlowDetail-7RVNTVAB.js → GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js} +11 -12
- package/dist/{GovernanceDaoCreateEntityFlowDetail-7RVNTVAB.js.map → GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js.map} +1 -1
- package/dist/{GovernanceDaoJoinFlowDetail-XYCTCNHO.js → GovernanceDaoJoinFlowDetail-GJWWQPD2.js} +11 -12
- package/dist/{GovernanceDaoJoinFlowDetail-XYCTCNHO.js.map → GovernanceDaoJoinFlowDetail-GJWWQPD2.js.map} +1 -1
- package/dist/{GovernanceDaoManageStorageFlowDetail-LMLYLYYC.js → GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js} +10 -11
- package/dist/{GovernanceDaoManageStorageFlowDetail-LMLYLYYC.js.map → GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js.map} +1 -1
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-YUFQ67JN.js → GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js} +11 -12
- package/dist/{GovernanceDaoManageSubDaosFlowDetail-YUFQ67JN.js.map → GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js.map} +1 -1
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-G5FIBY4L.js → GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js} +10 -11
- package/dist/{GovernanceDaoUpdateInfoFlowDetail-G5FIBY4L.js.map → GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js.map} +1 -1
- package/dist/{GovernanceMemberProposalConfig-IGPXEFDB.js → GovernanceMemberProposalConfig-LW6KNHVY.js} +7 -5
- package/dist/{GovernanceMemberProposalConfig-IGPXEFDB.js.map → GovernanceMemberProposalConfig-LW6KNHVY.js.map} +1 -1
- package/dist/{GovernanceMemberProposalFlowDetail-T3VURONF.js → GovernanceMemberProposalFlowDetail-JNO3RPDW.js} +11 -12
- package/dist/{GovernanceMemberProposalFlowDetail-T3VURONF.js.map → GovernanceMemberProposalFlowDetail-JNO3RPDW.js.map} +1 -1
- package/dist/{GovernanceNftBurnFlowDetail-AG4I2O7H.js → GovernanceNftBurnFlowDetail-MG3S2DZB.js} +10 -11
- package/dist/{GovernanceNftBurnFlowDetail-AG4I2O7H.js.map → GovernanceNftBurnFlowDetail-MG3S2DZB.js.map} +1 -1
- package/dist/{GovernanceNftManageCollectionsFlowDetail-UAAGO3Q6.js → GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js} +10 -11
- package/dist/{GovernanceNftManageCollectionsFlowDetail-UAAGO3Q6.js.map → GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js.map} +1 -1
- package/dist/{GovernanceNftTransferFlowDetail-KXM7DTOV.js → GovernanceNftTransferFlowDetail-27CRQVTA.js} +11 -12
- package/dist/{GovernanceNftTransferFlowDetail-KXM7DTOV.js.map → GovernanceNftTransferFlowDetail-27CRQVTA.js.map} +1 -1
- package/dist/{GovernanceSettingsProposalConfig-4SLJTBLW.js → GovernanceSettingsProposalConfig-WBOTSKNF.js} +7 -5
- package/dist/{GovernanceSettingsProposalConfig-4SLJTBLW.js.map → GovernanceSettingsProposalConfig-WBOTSKNF.js.map} +1 -1
- package/dist/{GovernanceSettingsProposalFlowDetail-VFZPSCLR.js → GovernanceSettingsProposalFlowDetail-W2KXBQM2.js} +10 -11
- package/dist/{GovernanceSettingsProposalFlowDetail-VFZPSCLR.js.map → GovernanceSettingsProposalFlowDetail-W2KXBQM2.js.map} +1 -1
- package/dist/{GovernanceStakingStakeFlowDetail-ULLJ7FLM.js → GovernanceStakingStakeFlowDetail-Z7MCDZDV.js} +10 -11
- package/dist/{GovernanceStakingStakeFlowDetail-ULLJ7FLM.js.map → GovernanceStakingStakeFlowDetail-Z7MCDZDV.js.map} +1 -1
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-CSPKJA3H.js → GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js} +10 -11
- package/dist/{GovernanceStakingStakeToGroupFlowDetail-CSPKJA3H.js.map → GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js.map} +1 -1
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-MZCPSZF2.js → GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js} +10 -11
- package/dist/{GovernanceSubmissionConfigProposalFlowDetail-MZCPSZF2.js.map → GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js.map} +1 -1
- package/dist/{GovernanceTransactionMintFlowDetail-Y2WRAODH.js → GovernanceTransactionMintFlowDetail-K6PPDCH6.js} +11 -12
- package/dist/{GovernanceTransactionMintFlowDetail-Y2WRAODH.js.map → GovernanceTransactionMintFlowDetail-K6PPDCH6.js.map} +1 -1
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-GEK6PMMI.js → GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js} +10 -11
- package/dist/{GovernanceTransactionPerformTokenSwapFlowDetail-GEK6PMMI.js.map → GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js.map} +1 -1
- package/dist/{GovernanceTransactionSendFundsConfig-VBKMLSF3.js → GovernanceTransactionSendFundsConfig-JRROE44J.js} +7 -5
- package/dist/{GovernanceTransactionSendFundsConfig-VBKMLSF3.js.map → GovernanceTransactionSendFundsConfig-JRROE44J.js.map} +1 -1
- package/dist/{GovernanceTransactionSendFundsFlowDetail-5TZB64VL.js → GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js} +11 -12
- package/dist/{GovernanceTransactionSendFundsFlowDetail-5TZB64VL.js.map → GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js.map} +1 -1
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-EGOWVZM2.js → GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js} +11 -12
- package/dist/{GovernanceTransactionSendGroupTokenFlowDetail-EGOWVZM2.js.map → GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js.map} +1 -1
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-6XWVO5O6.js → GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js} +10 -11
- package/dist/{GovernanceTransactionWithdrawTokenSwapFlowDetail-6XWVO5O6.js.map → GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js.map} +1 -1
- package/dist/{GovernanceValidatorActionsFlowDetail-ZMLPAFUB.js → GovernanceValidatorActionsFlowDetail-3YSPIIVG.js} +10 -11
- package/dist/{GovernanceValidatorActionsFlowDetail-ZMLPAFUB.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-X3RUH3X3.js → HarvestFlowDetail-Y2AJWJKR.js} +9 -10
- package/dist/{HarvestFlowDetail-X3RUH3X3.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-JVLV533Z.js → HttpRequestFlowDetail-VWD64O3P.js} +7 -5
- package/dist/{HttpRequestFlowDetail-JVLV533Z.js.map → HttpRequestFlowDetail-VWD64O3P.js.map} +1 -1
- package/dist/{IdentityCreateFlowDetail-EXJ3Y36S.js → IdentityCreateFlowDetail-DXUI6S4I.js} +17 -18
- package/dist/{IdentityCreateFlowDetail-EXJ3Y36S.js.map → IdentityCreateFlowDetail-DXUI6S4I.js.map} +1 -1
- package/dist/{IidCreateFlowDetail-4BVQYOFR.js → IidCreateFlowDetail-INISHT4R.js} +17 -18
- package/dist/{IidCreateFlowDetail-4BVQYOFR.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-DTK3GB6S.js → KycVerifyFlowDetail-ZLDIZ4HC.js} +16 -17
- package/dist/{KycVerifyFlowDetail-DTK3GB6S.js.map → KycVerifyFlowDetail-ZLDIZ4HC.js.map} +1 -1
- package/dist/{ListDomainFlowsFlowDetail-XX5AXDZZ.js → ListDomainFlowsFlowDetail-PJQCAY3I.js} +7 -5
- package/dist/{ListDomainFlowsFlowDetail-XX5AXDZZ.js.map → ListDomainFlowsFlowDetail-PJQCAY3I.js.map} +1 -1
- package/dist/{LoadBatchesFlowDetail-GB24T76O.js → LoadBatchesFlowDetail-TL4TQDZ5.js} +9 -10
- package/dist/{LoadBatchesFlowDetail-GB24T76O.js.map → LoadBatchesFlowDetail-TL4TQDZ5.js.map} +1 -1
- package/dist/{MatrixDmConfig-NBII27CS.js → MatrixDmConfig-DRY27FAM.js} +6 -4
- package/dist/{MatrixDmConfig-NBII27CS.js.map → MatrixDmConfig-DRY27FAM.js.map} +1 -1
- package/dist/{MatrixRegisterFlowDetail-D5YNL5QX.js → MatrixRegisterFlowDetail-RXHGTTQF.js} +9 -10
- package/dist/{MatrixRegisterFlowDetail-D5YNL5QX.js.map → MatrixRegisterFlowDetail-RXHGTTQF.js.map} +1 -1
- package/dist/{MemberMultiSelectFlowDetail-6C4ZMSDR.js → MemberMultiSelectFlowDetail-N64ZK7GE.js} +7 -5
- package/dist/{MemberMultiSelectFlowDetail-6C4ZMSDR.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-R3JOT72V.js → OracleConfigureOracleFlowDetail-L7GRKOSV.js} +17 -18
- package/dist/{OracleConfigureOracleFlowDetail-R3JOT72V.js.map → OracleConfigureOracleFlowDetail-L7GRKOSV.js.map} +1 -1
- package/dist/{OracleContractFlowDetail-M3PM4AU4.js → OracleContractFlowDetail-D2XZYWVG.js} +9 -10
- package/dist/{OracleContractFlowDetail-M3PM4AU4.js.map → OracleContractFlowDetail-D2XZYWVG.js.map} +1 -1
- package/dist/{OracleDeployFlowDetail-WKTMD2AD.js → OracleDeployFlowDetail-TCFIJYP7.js} +9 -10
- package/dist/{OracleDeployFlowDetail-WKTMD2AD.js.map → OracleDeployFlowDetail-TCFIJYP7.js.map} +1 -1
- package/dist/{OracleDeploySetupFlowDetail-R3BQ7EAU.js → OracleDeploySetupFlowDetail-KMGBPIND.js} +9 -10
- package/dist/{OracleDeploySetupFlowDetail-R3BQ7EAU.js.map → OracleDeploySetupFlowDetail-KMGBPIND.js.map} +1 -1
- package/dist/{OracleDeployStartFlowDetail-EL3CMDMG.js → OracleDeployStartFlowDetail-DTK5PLC5.js} +9 -10
- package/dist/{OracleDeployStartFlowDetail-EL3CMDMG.js.map → OracleDeployStartFlowDetail-DTK5PLC5.js.map} +1 -1
- package/dist/{OracleFlowDetail-5JCJK3GH.js → OracleFlowDetail-FEPE3YYU.js} +9 -10
- package/dist/{OracleFlowDetail-5JCJK3GH.js.map → OracleFlowDetail-FEPE3YYU.js.map} +1 -1
- package/dist/{OraclePromptFlowDetail-O3XNK7HY.js → OraclePromptFlowDetail-2B55RVOO.js} +9 -10
- package/dist/{OraclePromptFlowDetail-O3XNK7HY.js.map → OraclePromptFlowDetail-2B55RVOO.js.map} +1 -1
- package/dist/{OracleStoreConfigFlowDetail-Q6AUUSUL.js → OracleStoreConfigFlowDetail-Q6PTB2TR.js} +9 -10
- package/dist/{OracleStoreConfigFlowDetail-Q6AUUSUL.js.map → OracleStoreConfigFlowDetail-Q6PTB2TR.js.map} +1 -1
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-EIQPZQMF.js → OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js} +17 -18
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-EIQPZQMF.js.map → OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js.map} +1 -1
- package/dist/{OracleStoreSecretsFlowDetail-WJXCPYSN.js → OracleStoreSecretsFlowDetail-DHNXG3CZ.js} +17 -18
- package/dist/{OracleStoreSecretsFlowDetail-WJXCPYSN.js.map → OracleStoreSecretsFlowDetail-DHNXG3CZ.js.map} +1 -1
- package/dist/{ProposalCreateConfig-7C5W2UHX.js → ProposalCreateConfig-W3XNV7SH.js} +12 -13
- package/dist/{ProposalCreateConfig-7C5W2UHX.js.map → ProposalCreateConfig-W3XNV7SH.js.map} +1 -1
- package/dist/{ProposalCreateFlowDetail-PJB2ANZM.js → ProposalCreateFlowDetail-2ZNJZMSY.js} +19 -20
- package/dist/{ProposalCreateFlowDetail-PJB2ANZM.js.map → ProposalCreateFlowDetail-2ZNJZMSY.js.map} +1 -1
- package/dist/{ProposalVoteConfig-AUU6QCSN.js → ProposalVoteConfig-DDEF76CL.js} +12 -13
- package/dist/{ProposalVoteConfig-AUU6QCSN.js.map → ProposalVoteConfig-DDEF76CL.js.map} +1 -1
- package/dist/{ProposalVoteFlowDetail-IJJ3OHAB.js → ProposalVoteFlowDetail-6BOYU4XJ.js} +10 -11
- package/dist/{ProposalVoteFlowDetail-IJJ3OHAB.js.map → ProposalVoteFlowDetail-6BOYU4XJ.js.map} +1 -1
- package/dist/{ProtocolSelectFlowDetail-XBSJIEIH.js → ProtocolSelectFlowDetail-IKYJQZAO.js} +6 -4
- package/dist/{ProtocolSelectFlowDetail-XBSJIEIH.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-VZ5O4SXI.js → RetireFlowDetail-SP5GBJSA.js} +9 -10
- package/dist/{RetireFlowDetail-VZ5O4SXI.js.map → RetireFlowDetail-SP5GBJSA.js.map} +1 -1
- package/dist/{SandboxProvisionFlowDetail-RUY64INV.js → SandboxProvisionFlowDetail-CQ7XZWNA.js} +9 -10
- package/dist/{SandboxProvisionFlowDetail-RUY64INV.js.map → SandboxProvisionFlowDetail-CQ7XZWNA.js.map} +1 -1
- package/dist/{WalletFundConfig-CMM3EP3B.js → WalletFundConfig-T5S6B2HH.js} +7 -5
- package/dist/{WalletFundConfig-CMM3EP3B.js.map → WalletFundConfig-T5S6B2HH.js.map} +1 -1
- package/dist/{WalletFundFlowDetail-TXWCZA4K.js → WalletFundFlowDetail-WLQLJS34.js} +10 -11
- package/dist/{WalletFundFlowDetail-TXWCZA4K.js.map → WalletFundFlowDetail-WLQLJS34.js.map} +1 -1
- package/dist/{WalletGenerateAndFundFlowDetail-C2LZW3NO.js → WalletGenerateAndFundFlowDetail-7LEBWWEA.js} +7 -5
- package/dist/{WalletGenerateAndFundFlowDetail-C2LZW3NO.js.map → WalletGenerateAndFundFlowDetail-7LEBWWEA.js.map} +1 -1
- package/dist/{WalletGenerateFlowDetail-CQCNDGJA.js → WalletGenerateFlowDetail-CBAVDW7Z.js} +7 -5
- package/dist/{WalletGenerateFlowDetail-CQCNDGJA.js.map → WalletGenerateFlowDetail-CBAVDW7Z.js.map} +1 -1
- package/dist/{XeroContactCreateConfig-MGXISMDB.js → XeroContactCreateConfig-TKJKZAC4.js} +13 -14
- package/dist/{XeroContactCreateConfig-MGXISMDB.js.map → XeroContactCreateConfig-TKJKZAC4.js.map} +1 -1
- package/dist/{XeroContactCreateFlowDetail-45CMV27U.js → XeroContactCreateFlowDetail-O3ZITUCC.js} +14 -15
- package/dist/{XeroContactCreateFlowDetail-45CMV27U.js.map → XeroContactCreateFlowDetail-O3ZITUCC.js.map} +1 -1
- package/dist/{XeroInvoiceCreateConfig-MQBUY5KV.js → XeroInvoiceCreateConfig-LAMB7Q3J.js} +16 -17
- package/dist/{XeroInvoiceCreateConfig-MQBUY5KV.js.map → XeroInvoiceCreateConfig-LAMB7Q3J.js.map} +1 -1
- package/dist/{XeroInvoiceCreateFlowDetail-N6ZLSOFL.js → XeroInvoiceCreateFlowDetail-KIYWUT2B.js} +16 -17
- package/dist/{XeroInvoiceCreateFlowDetail-N6ZLSOFL.js.map → XeroInvoiceCreateFlowDetail-KIYWUT2B.js.map} +1 -1
- package/dist/{XeroInvoiceListConfig-UNX4VEOG.js → XeroInvoiceListConfig-PUUQP4UP.js} +13 -14
- package/dist/{XeroInvoiceListConfig-UNX4VEOG.js.map → XeroInvoiceListConfig-PUUQP4UP.js.map} +1 -1
- package/dist/{XeroInvoiceListFlowDetail-LYHODWH6.js → XeroInvoiceListFlowDetail-YPU6MFSX.js} +7 -5
- package/dist/{XeroInvoiceListFlowDetail-LYHODWH6.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-6D5K4Z5O.js → XeroPaymentCreateFlowDetail-CB55SP6X.js} +15 -16
- package/dist/{XeroPaymentCreateFlowDetail-6D5K4Z5O.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-STH2HPZK.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-PFF6VY35.js → chunk-A7L3NJK6.js} +2 -2
- package/dist/{chunk-4DGCCXD6.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-DSAOXGJH.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-676HDB7K.js → chunk-EH7EYO4N.js} +4 -4
- package/dist/{chunk-QND2IQ67.js → chunk-EWDTMHPF.js} +702 -647
- package/dist/chunk-EWDTMHPF.js.map +1 -0
- package/dist/{chunk-5IH3VC5I.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-IFWKRCFF.js → chunk-J6AWMFEF.js} +2 -2
- package/dist/{chunk-ZP4D73DO.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-EGVS23DR.js → chunk-L7WHIPGC.js} +2 -2
- package/dist/{chunk-IVOOK475.js → chunk-LSWKBCB3.js} +5 -5
- package/dist/{chunk-NJAII6CO.js → chunk-M3GHFF5N.js} +2 -2
- package/dist/{chunk-ILSFU3WD.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-VRZ5LMOW.js → chunk-RQS3KQLQ.js} +2 -2
- package/dist/{chunk-SEJJ7CRI.js → chunk-RV7QJFSE.js} +2 -2
- package/dist/{chunk-GR4SIU32.js → chunk-S2ETTOE5.js} +2 -2
- package/dist/{chunk-YLNEKJQ5.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-BZ7UPUTY.js → chunk-X23SZR5N.js} +2 -2
- package/dist/{chunk-ZZ7FDJKJ.js → chunk-YMGLWNV5.js} +2 -2
- package/dist/{chunk-SB5UCPZH.js → chunk-ZIT2N7CI.js} +2 -2
- package/dist/{connections-CEcurtWI.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-B2tREsx6.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-Dqk5MTfW.d.ts → types-CYtPUWc7.d.ts} +889 -400
- package/package.json +3 -2
- package/dist/chunk-4DGCCXD6.js.map +0 -1
- 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-P7OBLJAG.js.map +0 -1
- package/dist/chunk-QND2IQ67.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-STH2HPZK.js.map → chunk-6JOBSAZF.js.map} +0 -0
- /package/dist/{chunk-PFF6VY35.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-DSAOXGJH.js.map → chunk-DMXZIAAW.js.map} +0 -0
- /package/dist/{chunk-676HDB7K.js.map → chunk-EH7EYO4N.js.map} +0 -0
- /package/dist/{chunk-5IH3VC5I.js.map → chunk-FJ36VM6S.js.map} +0 -0
- /package/dist/{chunk-IFWKRCFF.js.map → chunk-J6AWMFEF.js.map} +0 -0
- /package/dist/{chunk-ZP4D73DO.js.map → chunk-JDNOVB6L.js.map} +0 -0
- /package/dist/{chunk-NIXT2SBH.js.map → chunk-JK6RAKE3.js.map} +0 -0
- /package/dist/{chunk-EGVS23DR.js.map → chunk-L7WHIPGC.js.map} +0 -0
- /package/dist/{chunk-IVOOK475.js.map → chunk-LSWKBCB3.js.map} +0 -0
- /package/dist/{chunk-NJAII6CO.js.map → chunk-M3GHFF5N.js.map} +0 -0
- /package/dist/{chunk-ILSFU3WD.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-VRZ5LMOW.js.map → chunk-RQS3KQLQ.js.map} +0 -0
- /package/dist/{chunk-SEJJ7CRI.js.map → chunk-RV7QJFSE.js.map} +0 -0
- /package/dist/{chunk-GR4SIU32.js.map → chunk-S2ETTOE5.js.map} +0 -0
- /package/dist/{chunk-YLNEKJQ5.js.map → chunk-SRSVMD6E.js.map} +0 -0
- /package/dist/{chunk-BZ7UPUTY.js.map → chunk-X23SZR5N.js.map} +0 -0
- /package/dist/{chunk-ZZ7FDJKJ.js.map → chunk-YMGLWNV5.js.map} +0 -0
- /package/dist/{chunk-SB5UCPZH.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
|
}
|
|
@@ -15575,7 +15571,7 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
|
|
|
15575
15571
|
const extractEntityType = (type) => {
|
|
15576
15572
|
return type.replace(/^schema:/i, "").toLowerCase();
|
|
15577
15573
|
};
|
|
15578
|
-
const
|
|
15574
|
+
const entityType2 = block.props.entityType || (domainCardData2.credentialSubject?.type?.[0] ? extractEntityType(domainCardData2.credentialSubject.type[0]) : "dao");
|
|
15579
15575
|
const issuerDid = handlers.getEntityDid?.() || handlers.getCurrentUser?.()?.address;
|
|
15580
15576
|
if (!issuerDid) {
|
|
15581
15577
|
throw new Error("Unable to determine issuer DID");
|
|
@@ -15628,7 +15624,7 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
|
|
|
15628
15624
|
updateRuntime({ state: "running", output: { domain: { step: "creating" } } });
|
|
15629
15625
|
const endDate = domainCardData2.endDate || validUntil;
|
|
15630
15626
|
const { entityDid: newEntityDid, transactionHash } = await handlers.createDomain({
|
|
15631
|
-
entityType,
|
|
15627
|
+
entityType: entityType2,
|
|
15632
15628
|
linkedResource: [domainCardLinkedResource],
|
|
15633
15629
|
linkedEntity: governanceGroupLinkedEntities.length > 0 ? governanceGroupLinkedEntities : void 0,
|
|
15634
15630
|
startDate: validFrom,
|
|
@@ -15665,13 +15661,13 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
|
|
|
15665
15661
|
}
|
|
15666
15662
|
return {
|
|
15667
15663
|
entityDid: newEntityDid,
|
|
15668
|
-
entityType,
|
|
15664
|
+
entityType: entityType2,
|
|
15669
15665
|
transactionHash,
|
|
15670
15666
|
groupAddress,
|
|
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,13 +15689,13 @@ 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 =
|
|
15700
|
-
const
|
|
15695
|
+
const handleVisitEntity = useCallback58(() => {
|
|
15696
|
+
const entityType2 = block.props.entityType || "dao";
|
|
15701
15697
|
if (createdEntityDid && handlers?.redirectToEntityOverview) {
|
|
15702
|
-
handlers.redirectToEntityOverview(createdEntityDid,
|
|
15698
|
+
handlers.redirectToEntityOverview(createdEntityDid, entityType2);
|
|
15703
15699
|
}
|
|
15704
15700
|
}, [createdEntityDid, block.props.entityType, handlers]);
|
|
15705
15701
|
if (flowStep === "signing" || flowStep === "uploading" || flowStep === "creating" || flowStep === "creatingGroup") {
|
|
@@ -15718,6 +15714,8 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
|
|
|
15718
15714
|
return /* @__PURE__ */ React160.createElement(BaseRightPanelLayout, { onClose: handleClose, title: block.props.title || "Sign to Create", isTemplate: false, context: { editor, block } }, /* @__PURE__ */ React160.createElement(Stack103, { gap: "md" }, /* @__PURE__ */ React160.createElement(Alert23, { icon: /* @__PURE__ */ React160.createElement(IconAlertCircle14, { size: 16 }), title: "Domain Creation Failed", color: "red" }, /* @__PURE__ */ React160.createElement(Text103, { size: "sm" }, error || "An unexpected error occurred")), /* @__PURE__ */ React160.createElement(Group58, null, /* @__PURE__ */ React160.createElement(Button27, { variant: "outline", onClick: handleRetry }, "Try Again"), /* @__PURE__ */ React160.createElement(Button27, { variant: "subtle", onClick: handleClose }, "Close"))));
|
|
15719
15715
|
}
|
|
15720
15716
|
const domainCardData = getDomainCardData();
|
|
15717
|
+
const entityType = block.props.entityType || (domainCardData?.credentialSubject?.type?.[0]?.replace(/^schema:/i, "").toLowerCase() ?? "dao");
|
|
15718
|
+
const entityTypeLabel = handlers?.getEntityDisplayName?.(entityType) ?? entityType;
|
|
15721
15719
|
return /* @__PURE__ */ React160.createElement(
|
|
15722
15720
|
BaseRightPanelLayout,
|
|
15723
15721
|
{
|
|
@@ -15727,7 +15725,7 @@ var SignPanel = ({ editor, block, onComplete, onError }) => {
|
|
|
15727
15725
|
isTemplate: false,
|
|
15728
15726
|
context: { editor, block }
|
|
15729
15727
|
},
|
|
15730
|
-
/* @__PURE__ */ React160.createElement(Stack103, { gap: "xs", mb: "md", p: "md", style: { backgroundColor: "var(--mantine-color-dark-6)", borderRadius: 8 } }, /* @__PURE__ */ React160.createElement(Text103, { fw: 600, size: "sm" }, "Domain Card Summary"), /* @__PURE__ */ React160.createElement(Group58, { gap: "xs" }, /* @__PURE__ */ React160.createElement(Text103, { size: "xs", c: "dimmed", style: { width: 80 } }, "Name:"), /* @__PURE__ */ React160.createElement(Text103, { size: "xs" }, domainCardData?.credentialSubject?.name || "Not set")), /* @__PURE__ */ React160.createElement(Group58, { gap: "xs" }, /* @__PURE__ */ React160.createElement(Text103, { size: "xs", c: "dimmed", style: { width: 80 } }, "Type:"), /* @__PURE__ */ React160.createElement(Text103, { size: "xs" },
|
|
15728
|
+
/* @__PURE__ */ React160.createElement(Stack103, { gap: "xs", mb: "md", p: "md", style: { backgroundColor: "var(--mantine-color-dark-6)", borderRadius: 8 } }, /* @__PURE__ */ React160.createElement(Text103, { fw: 600, size: "sm" }, "Domain Card Summary"), /* @__PURE__ */ React160.createElement(Group58, { gap: "xs" }, /* @__PURE__ */ React160.createElement(Text103, { size: "xs", c: "dimmed", style: { width: 80 } }, "Name:"), /* @__PURE__ */ React160.createElement(Text103, { size: "xs" }, domainCardData?.credentialSubject?.name || "Not set")), /* @__PURE__ */ React160.createElement(Group58, { gap: "xs" }, /* @__PURE__ */ React160.createElement(Text103, { size: "xs", c: "dimmed", style: { width: 80 } }, "Type:"), /* @__PURE__ */ React160.createElement(Text103, { size: "xs" }, entityTypeLabel)), domainCardData?.credentialSubject?.description && /* @__PURE__ */ React160.createElement(Group58, { gap: "xs", align: "flex-start" }, /* @__PURE__ */ React160.createElement(Text103, { size: "xs", c: "dimmed", style: { width: 80 } }, "Description:"), /* @__PURE__ */ React160.createElement(Text103, { size: "xs", lineClamp: 2, style: { flex: 1 } }, domainCardData.credentialSubject.description))),
|
|
15731
15729
|
/* @__PURE__ */ React160.createElement(BaseSigning, { handleSign })
|
|
15732
15730
|
);
|
|
15733
15731
|
};
|
|
@@ -15754,7 +15752,7 @@ var DomainCreatorSignFlowView = ({ editor, block }) => {
|
|
|
15754
15752
|
updateRuntime({ state: "idle" });
|
|
15755
15753
|
}
|
|
15756
15754
|
}, [isDataReady, runtimeState, updateRuntime]);
|
|
15757
|
-
const handleComplete =
|
|
15755
|
+
const handleComplete = useCallback59(
|
|
15758
15756
|
(result) => {
|
|
15759
15757
|
updateRuntime({
|
|
15760
15758
|
state: "completed",
|
|
@@ -15767,7 +15765,7 @@ var DomainCreatorSignFlowView = ({ editor, block }) => {
|
|
|
15767
15765
|
},
|
|
15768
15766
|
[updateRuntime]
|
|
15769
15767
|
);
|
|
15770
|
-
const handleError =
|
|
15768
|
+
const handleError = useCallback59(
|
|
15771
15769
|
(errorMessage) => {
|
|
15772
15770
|
updateRuntime({
|
|
15773
15771
|
state: "failed",
|
|
@@ -15904,7 +15902,7 @@ import React166, { useMemo as useMemo71 } from "react";
|
|
|
15904
15902
|
import { Badge as Badge30, Group as Group60, Stack as Stack105, Text as Text105 } from "@mantine/core";
|
|
15905
15903
|
|
|
15906
15904
|
// src/mantine/blocks/domainCardViewer/template/TemplateConfig.tsx
|
|
15907
|
-
import React165, { useCallback as
|
|
15905
|
+
import React165, { useCallback as useCallback60 } from "react";
|
|
15908
15906
|
|
|
15909
15907
|
// src/mantine/blocks/domainCardViewer/template/GeneralTab.tsx
|
|
15910
15908
|
import React164, { useEffect as useEffect58, useState as useState67 } from "react";
|
|
@@ -15961,7 +15959,7 @@ import { IconSettings as IconSettings16 } from "@tabler/icons-react";
|
|
|
15961
15959
|
var TemplateConfig13 = ({ editor, block: blockProp }) => {
|
|
15962
15960
|
const { closePanel } = usePanelStore();
|
|
15963
15961
|
const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
|
|
15964
|
-
const updateProp =
|
|
15962
|
+
const updateProp = useCallback60(
|
|
15965
15963
|
(key, value) => {
|
|
15966
15964
|
editor.updateBlock(readLiveBlock(), {
|
|
15967
15965
|
props: {
|
|
@@ -16002,7 +16000,7 @@ var DomainCardViewerTemplateView = ({ editor, block }) => {
|
|
|
16002
16000
|
};
|
|
16003
16001
|
|
|
16004
16002
|
// src/mantine/blocks/domainCardViewer/flow/FlowView.tsx
|
|
16005
|
-
import React168, { useMemo as useMemo73, useCallback as
|
|
16003
|
+
import React168, { useMemo as useMemo73, useCallback as useCallback61, useEffect as useEffect59 } from "react";
|
|
16006
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";
|
|
16007
16005
|
import { IconChevronRight as IconChevronRight8, IconLoader, IconTestPipe, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
|
16008
16006
|
|
|
@@ -16327,7 +16325,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
|
|
|
16327
16325
|
});
|
|
16328
16326
|
}
|
|
16329
16327
|
}, [isDataReady, status, editor, block]);
|
|
16330
|
-
const handleApprove =
|
|
16328
|
+
const handleApprove = useCallback61(() => {
|
|
16331
16329
|
editor.updateBlock(block, {
|
|
16332
16330
|
props: {
|
|
16333
16331
|
...block.props,
|
|
@@ -16338,7 +16336,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
|
|
|
16338
16336
|
const panelId = `${DOMAIN_CARD_VIEWER_FLOW_PANEL_ID}-${block.id}`;
|
|
16339
16337
|
const panelContent = useMemo73(() => /* @__PURE__ */ React168.createElement(ViewerPanel, { editor, block, onApprove: handleApprove }), [editor, block, handleApprove]);
|
|
16340
16338
|
const { open } = usePanel(panelId, panelContent);
|
|
16341
|
-
const handleInjectDummyData =
|
|
16339
|
+
const handleInjectDummyData = useCallback61(
|
|
16342
16340
|
(e) => {
|
|
16343
16341
|
e.stopPropagation();
|
|
16344
16342
|
editor.updateBlock(block, {
|
|
@@ -16354,7 +16352,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
|
|
|
16354
16352
|
},
|
|
16355
16353
|
[editor, block]
|
|
16356
16354
|
);
|
|
16357
|
-
const handleSetLoading =
|
|
16355
|
+
const handleSetLoading = useCallback61(
|
|
16358
16356
|
(e) => {
|
|
16359
16357
|
e.stopPropagation();
|
|
16360
16358
|
editor.updateBlock(block, {
|
|
@@ -16367,7 +16365,7 @@ var DomainCardViewerFlowView = ({ editor, block }) => {
|
|
|
16367
16365
|
},
|
|
16368
16366
|
[editor, block]
|
|
16369
16367
|
);
|
|
16370
|
-
const handleClearData =
|
|
16368
|
+
const handleClearData = useCallback61(
|
|
16371
16369
|
(e) => {
|
|
16372
16370
|
e.stopPropagation();
|
|
16373
16371
|
editor.updateBlock(block, {
|
|
@@ -16470,7 +16468,7 @@ import React173, { useMemo as useMemo74 } from "react";
|
|
|
16470
16468
|
import { Badge as Badge32, Group as Group62, Stack as Stack109, Text as Text109 } from "@mantine/core";
|
|
16471
16469
|
|
|
16472
16470
|
// src/mantine/blocks/governanceGroup/template/TemplateConfig.tsx
|
|
16473
|
-
import React172, { useCallback as
|
|
16471
|
+
import React172, { useCallback as useCallback62 } from "react";
|
|
16474
16472
|
import { IconSettings as IconSettings17, IconBolt as IconBolt6, IconShieldCheck as IconShieldCheck11 } from "@tabler/icons-react";
|
|
16475
16473
|
|
|
16476
16474
|
// src/mantine/blocks/governanceGroup/template/GeneralTab.tsx
|
|
@@ -17302,8 +17300,8 @@ var getSurveyForGroupType = (groupType) => {
|
|
|
17302
17300
|
var TemplateConfig14 = ({ editor, block: blockProp }) => {
|
|
17303
17301
|
const { closePanel } = usePanelStore();
|
|
17304
17302
|
const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
|
|
17305
|
-
const updateProp =
|
|
17306
|
-
const handleGroupTypeChange =
|
|
17303
|
+
const updateProp = useCallback62((key, value) => editor.updateBlock(readLiveBlock(), { props: { [key]: value } }), [editor, readLiveBlock]);
|
|
17304
|
+
const handleGroupTypeChange = useCallback62(
|
|
17307
17305
|
(groupType) => {
|
|
17308
17306
|
const surveySchema = getSurveyForGroupType(groupType);
|
|
17309
17307
|
editor.updateBlock(readLiveBlock(), { props: { groupType, surveySchema: JSON.stringify(surveySchema), answers: "" } });
|
|
@@ -17360,12 +17358,12 @@ var GovernanceGroupTemplateView = ({ editor, block }) => {
|
|
|
17360
17358
|
};
|
|
17361
17359
|
|
|
17362
17360
|
// src/mantine/blocks/governanceGroup/flow/FlowView.tsx
|
|
17363
|
-
import React175, { useCallback as
|
|
17361
|
+
import React175, { useCallback as useCallback64, useEffect as useEffect62, useMemo as useMemo76, useRef as useRef17, useState as useState70 } from "react";
|
|
17364
17362
|
import { ActionIcon as ActionIcon27, Badge as Badge33, Group as Group64, Stack as Stack111, Text as Text111, Tooltip as Tooltip19 } from "@mantine/core";
|
|
17365
17363
|
import { IconChevronRight as IconChevronRight9 } from "@tabler/icons-react";
|
|
17366
17364
|
|
|
17367
17365
|
// src/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel.tsx
|
|
17368
|
-
import React174, { useCallback as
|
|
17366
|
+
import React174, { useCallback as useCallback63, useEffect as useEffect61, useMemo as useMemo75, useRef as useRef16, useState as useState69 } from "react";
|
|
17369
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";
|
|
17370
17368
|
import { useDebouncedCallback as useDebouncedCallback3 } from "@mantine/hooks";
|
|
17371
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";
|
|
@@ -17423,7 +17421,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
|
|
|
17423
17421
|
model.questionsOnPageMode = "singlePage";
|
|
17424
17422
|
return model;
|
|
17425
17423
|
}, [selectedGroupType, computedColorScheme]);
|
|
17426
|
-
const syncPropToSurvey =
|
|
17424
|
+
const syncPropToSurvey = useCallback63(
|
|
17427
17425
|
(answersJson) => {
|
|
17428
17426
|
if (!answersJson || answersJson === lastSyncedAnswers.current || !surveyModel) return;
|
|
17429
17427
|
try {
|
|
@@ -17486,7 +17484,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
|
|
|
17486
17484
|
lastSyncedAnswers.current = "";
|
|
17487
17485
|
setFlowStep("survey");
|
|
17488
17486
|
};
|
|
17489
|
-
const processGroupCreation =
|
|
17487
|
+
const processGroupCreation = useCallback63(
|
|
17490
17488
|
async (data) => {
|
|
17491
17489
|
if (!handlers) {
|
|
17492
17490
|
throw new Error("Handlers not available");
|
|
@@ -17508,7 +17506,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
|
|
|
17508
17506
|
},
|
|
17509
17507
|
[handlers, selectedGroupType]
|
|
17510
17508
|
);
|
|
17511
|
-
const handleSurveyComplete =
|
|
17509
|
+
const handleSurveyComplete = useCallback63(
|
|
17512
17510
|
async (sender) => {
|
|
17513
17511
|
const data = sender.data || {};
|
|
17514
17512
|
try {
|
|
@@ -17552,12 +17550,12 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
|
|
|
17552
17550
|
surveyModel.onComplete.remove(handleSurveyComplete);
|
|
17553
17551
|
};
|
|
17554
17552
|
}, [handleSurveyComplete, surveyModel]);
|
|
17555
|
-
const handleRetry =
|
|
17553
|
+
const handleRetry = useCallback63(() => {
|
|
17556
17554
|
setFlowStep("survey");
|
|
17557
17555
|
setError(null);
|
|
17558
17556
|
surveyModel?.clear();
|
|
17559
17557
|
}, [surveyModel]);
|
|
17560
|
-
const handleBackToTypeSelection =
|
|
17558
|
+
const handleBackToTypeSelection = useCallback63(() => {
|
|
17561
17559
|
setSelectedGroupType(null);
|
|
17562
17560
|
setFlowStep("typeSelection");
|
|
17563
17561
|
editor.updateBlock(block, {
|
|
@@ -17569,7 +17567,7 @@ var GovernanceGroupPanel = ({ editor, block, onComplete }) => {
|
|
|
17569
17567
|
}
|
|
17570
17568
|
});
|
|
17571
17569
|
}, [editor, block]);
|
|
17572
|
-
const handleClose =
|
|
17570
|
+
const handleClose = useCallback63(() => {
|
|
17573
17571
|
closePanel();
|
|
17574
17572
|
}, [closePanel]);
|
|
17575
17573
|
if (flowStep === "typeSelection") {
|
|
@@ -17643,7 +17641,7 @@ var GovernanceGroupFlowView = ({ editor, block }) => {
|
|
|
17643
17641
|
[]
|
|
17644
17642
|
);
|
|
17645
17643
|
const handleCompleteRef = useRef17();
|
|
17646
|
-
const handleComplete =
|
|
17644
|
+
const handleComplete = useCallback64((data) => {
|
|
17647
17645
|
const currentEditor = editorRef.current;
|
|
17648
17646
|
const currentBlock = blockRef.current;
|
|
17649
17647
|
currentEditor.updateBlock(currentBlock, {
|
|
@@ -17666,7 +17664,7 @@ var GovernanceGroupFlowView = ({ editor, block }) => {
|
|
|
17666
17664
|
useEffect62(() => {
|
|
17667
17665
|
handleCompleteRef.current = handleComplete;
|
|
17668
17666
|
});
|
|
17669
|
-
const stableHandleComplete =
|
|
17667
|
+
const stableHandleComplete = useCallback64(
|
|
17670
17668
|
(data) => {
|
|
17671
17669
|
handleCompleteRef.current?.(data);
|
|
17672
17670
|
},
|
|
@@ -17957,7 +17955,7 @@ import React183, { useMemo as useMemo79 } from "react";
|
|
|
17957
17955
|
import { Badge as Badge35, Group as Group68, Stack as Stack116, Text as Text115, Tooltip as Tooltip21 } from "@mantine/core";
|
|
17958
17956
|
|
|
17959
17957
|
// src/mantine/blocks/flowLink/flow/FlowLinkPanel.tsx
|
|
17960
|
-
import React182, { useState as useState72, useEffect as useEffect64, useCallback as
|
|
17958
|
+
import React182, { useState as useState72, useEffect as useEffect64, useCallback as useCallback65 } from "react";
|
|
17961
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";
|
|
17962
17960
|
import { IconRefresh as IconRefresh4, IconCheck as IconCheck14, IconClock as IconClock10, IconCircleDashed as IconCircleDashed3 } from "@tabler/icons-react";
|
|
17963
17961
|
var FlowLinkPanel = ({ editor, block }) => {
|
|
@@ -17965,7 +17963,7 @@ var FlowLinkPanel = ({ editor, block }) => {
|
|
|
17965
17963
|
const handlers = useBlocknoteHandlers();
|
|
17966
17964
|
const links = safeParseJSONArray(block.props.links).sort((a, b) => a.position - b.position);
|
|
17967
17965
|
const [linksWithStatus, setLinksWithStatus] = useState72(links.map((link) => ({ ...link })));
|
|
17968
|
-
const fetchStatuses =
|
|
17966
|
+
const fetchStatuses = useCallback65(async () => {
|
|
17969
17967
|
if (!handlers.getFlowStatus) {
|
|
17970
17968
|
return;
|
|
17971
17969
|
}
|
|
@@ -18135,7 +18133,7 @@ import React199 from "react";
|
|
|
18135
18133
|
import React189, { useMemo as useMemo82 } from "react";
|
|
18136
18134
|
|
|
18137
18135
|
// src/mantine/blocks/action/template/TemplateConfig.tsx
|
|
18138
|
-
import React188, { useCallback as
|
|
18136
|
+
import React188, { useCallback as useCallback66, useContext as useContext2, useMemo as useMemo81 } from "react";
|
|
18139
18137
|
import { Stack as Stack119, Text as Text118 } from "@mantine/core";
|
|
18140
18138
|
import { IconCheck as IconCheck15, IconClock as IconClock11, IconContract as IconContract4, IconSettings as IconSettings19, IconShieldCheck as IconShieldCheck12, IconUserCheck as IconUserCheck4 } from "@tabler/icons-react";
|
|
18141
18139
|
|
|
@@ -18575,7 +18573,7 @@ var TemplateConfig16 = ({ editor, block: blockProp }) => {
|
|
|
18575
18573
|
}
|
|
18576
18574
|
return true;
|
|
18577
18575
|
}, [block.props]);
|
|
18578
|
-
const updateProp =
|
|
18576
|
+
const updateProp = useCallback66(
|
|
18579
18577
|
(key, value) => {
|
|
18580
18578
|
const current = readLiveBlock();
|
|
18581
18579
|
editor.updateBlock(current, { props: { [key]: value } });
|
|
@@ -18705,7 +18703,7 @@ var ActionTemplateView = ({ editor, block }) => {
|
|
|
18705
18703
|
};
|
|
18706
18704
|
|
|
18707
18705
|
// src/mantine/blocks/action/flow/FlowView.tsx
|
|
18708
|
-
import React192, { useCallback as
|
|
18706
|
+
import React192, { useCallback as useCallback69, useMemo as useMemo86, useRef as useRef20, useState as useState78 } from "react";
|
|
18709
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";
|
|
18710
18708
|
import { IconAlertTriangle as IconAlertTriangle3, IconUser as IconUser13, IconBolt as IconBolt9, IconShieldCheck as IconShieldCheck13, IconPlayerPlay } from "@tabler/icons-react";
|
|
18711
18709
|
|
|
@@ -18761,7 +18759,7 @@ function useAutoCommitOnExecute(editor, block, runtimeState) {
|
|
|
18761
18759
|
}
|
|
18762
18760
|
|
|
18763
18761
|
// src/mantine/blocks/action/PendingInvocationList.tsx
|
|
18764
|
-
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";
|
|
18765
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";
|
|
18766
18764
|
import { IconBolt as IconBolt8, IconClock as IconClock12, IconRefresh as IconRefresh5, IconX as IconX11 } from "@tabler/icons-react";
|
|
18767
18765
|
var PendingInvocationList = ({ editor, blockId, actionType: _actionType, onInvoke, autoResolve }) => {
|
|
@@ -18779,7 +18777,7 @@ var PendingInvocationList = ({ editor, blockId, actionType: _actionType, onInvok
|
|
|
18779
18777
|
outer.unobserveDeep(refresh);
|
|
18780
18778
|
};
|
|
18781
18779
|
}, [yDoc, blockId]);
|
|
18782
|
-
const handleDismiss =
|
|
18780
|
+
const handleDismiss = useCallback67(
|
|
18783
18781
|
(id) => {
|
|
18784
18782
|
if (!yDoc) return;
|
|
18785
18783
|
removePendingInvocation(yDoc, blockId, id);
|
|
@@ -18873,7 +18871,7 @@ function formatTimestamp2(iso) {
|
|
|
18873
18871
|
}
|
|
18874
18872
|
|
|
18875
18873
|
// src/mantine/blocks/action/useExecuteActionBlock.ts
|
|
18876
|
-
import { useCallback as
|
|
18874
|
+
import { useCallback as useCallback68, useMemo as useMemo84, useState as useState76 } from "react";
|
|
18877
18875
|
function executionNeedsPin(params) {
|
|
18878
18876
|
return (params.policyRequiresPin || params.actionRequiresSignedInvocation) && !params.suppliedPin && !params.hasActiveSignerSession;
|
|
18879
18877
|
}
|
|
@@ -18887,7 +18885,7 @@ function getActorDid(handlers) {
|
|
|
18887
18885
|
return "";
|
|
18888
18886
|
}
|
|
18889
18887
|
}
|
|
18890
|
-
function createUiFlowRunService(editor, eventLog, designPodService, verifyTerminalInvocation) {
|
|
18888
|
+
function createUiFlowRunService(editor, eventLog, designPodService, verifyTerminalInvocation, requests) {
|
|
18891
18889
|
const requireHost = () => {
|
|
18892
18890
|
const yDoc = resolveEditorYDoc(editor);
|
|
18893
18891
|
if (!yDoc) throw new Error("Flow session lifecycle requires a collaborative Y.Doc.");
|
|
@@ -18900,7 +18898,14 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
|
|
|
18900
18898
|
definition: buildRunDefinitionSnapshot(document2)
|
|
18901
18899
|
};
|
|
18902
18900
|
};
|
|
18903
|
-
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
|
+
};
|
|
18904
18909
|
return {
|
|
18905
18910
|
async start(params) {
|
|
18906
18911
|
const host = requireHost();
|
|
@@ -18912,6 +18917,7 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
|
|
|
18912
18917
|
document: host.document,
|
|
18913
18918
|
eventLog: host.eventLog,
|
|
18914
18919
|
authorize,
|
|
18920
|
+
...requestProof("run.start", params.actorDid) ? { requestProof: requestProof("run.start", params.actorDid) } : {},
|
|
18915
18921
|
...params.label ? { label: params.label } : {}
|
|
18916
18922
|
});
|
|
18917
18923
|
return {
|
|
@@ -18930,6 +18936,7 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
|
|
|
18930
18936
|
actionTypes: host.definition.actionTypes,
|
|
18931
18937
|
eventLog: host.eventLog,
|
|
18932
18938
|
authorize,
|
|
18939
|
+
...requestProof("run.close", params.actorDid) ? { requestProof: requestProof("run.close", params.actorDid) } : {},
|
|
18933
18940
|
...params.authorization ? { terminalAuthorization: params.authorization } : {},
|
|
18934
18941
|
...verifyTerminalInvocation ? { verifyTerminalInvocation } : {},
|
|
18935
18942
|
...designPodService ? {
|
|
@@ -18956,6 +18963,7 @@ function createUiFlowRunService(editor, eventLog, designPodService, verifyTermin
|
|
|
18956
18963
|
actionTypes: host.definition.actionTypes,
|
|
18957
18964
|
eventLog: host.eventLog,
|
|
18958
18965
|
authorize,
|
|
18966
|
+
...requestProof("run.close", params.actorDid) ? { requestProof: requestProof("run.close", params.actorDid) } : {},
|
|
18959
18967
|
...params.authorization ? { terminalAuthorization: params.authorization } : {},
|
|
18960
18968
|
...verifyTerminalInvocation ? { verifyTerminalInvocation } : {},
|
|
18961
18969
|
...designPodService ? {
|
|
@@ -18991,7 +18999,7 @@ function useExecuteActionBlock({ editor, block }) {
|
|
|
18991
18999
|
const [isExecuting, setIsExecuting] = useState76(false);
|
|
18992
19000
|
const [error, setError] = useState76(null);
|
|
18993
19001
|
const [result, setResult] = useState76(null);
|
|
18994
|
-
const executeAction =
|
|
19002
|
+
const executeAction = useCallback68(
|
|
18995
19003
|
async ({ runtimeInputs, pendingInvocationId, pin, handlers: executionHandlers } = {}) => {
|
|
18996
19004
|
if (sessionPreview) {
|
|
18997
19005
|
throw new Error("This flow is rendered as a pre-session preview. Start or select a session to run actions.");
|
|
@@ -19004,17 +19012,14 @@ function useExecuteActionBlock({ editor, block }) {
|
|
|
19004
19012
|
const actionHandlers = mergeActionHandlers(handlers, executionHandlers);
|
|
19005
19013
|
const actionServices = executionHandlers ? buildServicesFromHandlers(actionHandlers) : services;
|
|
19006
19014
|
if (topicActionRuntime?.topicService) actionServices.topic = topicActionRuntime.topicService;
|
|
19007
|
-
const
|
|
19008
|
-
const schemaVersion = metadata?.schema_version || "0.3";
|
|
19009
|
-
const policy = getVersionPolicy(schemaVersion);
|
|
19015
|
+
const schemaVersion = metadata?.schema_version;
|
|
19010
19016
|
const actionType = typeof block.props?.actionType === "string" ? block.props.actionType : "";
|
|
19011
19017
|
const requiresSignedInvocation = getAction(actionType)?.requiresSignedInvocation === true;
|
|
19012
19018
|
let effectivePin = pin || "";
|
|
19013
|
-
const signatureRequired = policy?.ui?.requirePinForExecution || requiresSignedInvocation;
|
|
19014
19019
|
const actorDid = getActorDid(actionHandlers);
|
|
19015
|
-
const activeSignerSession =
|
|
19020
|
+
const activeSignerSession = !effectivePin && actorDid && actionHandlers?.getActiveSignerSession ? await actionHandlers.getActiveSignerSession({ did: actorDid }) : null;
|
|
19016
19021
|
if (executionNeedsPin({
|
|
19017
|
-
policyRequiresPin:
|
|
19022
|
+
policyRequiresPin: true,
|
|
19018
19023
|
actionRequiresSignedInvocation: requiresSignedInvocation,
|
|
19019
19024
|
suppliedPin: effectivePin,
|
|
19020
19025
|
hasActiveSignerSession: !!activeSignerSession
|
|
@@ -19027,6 +19032,13 @@ function useExecuteActionBlock({ editor, block }) {
|
|
|
19027
19032
|
throw new Error("This action requires a PIN to create its signed Flow invocation, and none was provided.");
|
|
19028
19033
|
}
|
|
19029
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
|
+
);
|
|
19030
19042
|
const outcome = await executeActionBlock({
|
|
19031
19043
|
editorOrYDoc: editor,
|
|
19032
19044
|
block,
|
|
@@ -19042,7 +19054,7 @@ function useExecuteActionBlock({ editor, block }) {
|
|
|
19042
19054
|
pin: effectivePin,
|
|
19043
19055
|
flowId,
|
|
19044
19056
|
flowUri: `ixo:flow:${flowId}`,
|
|
19045
|
-
flowOwnerDid: editor?.getFlowOwnerDid?.() ||
|
|
19057
|
+
flowOwnerDid: editor?.getFlowOwnerDid?.() || "",
|
|
19046
19058
|
schemaVersion,
|
|
19047
19059
|
runId: sessionRunId,
|
|
19048
19060
|
designPodAuthority,
|
|
@@ -19076,13 +19088,64 @@ function useExecuteActionBlock({ editor, block }) {
|
|
|
19076
19088
|
}
|
|
19077
19089
|
|
|
19078
19090
|
// src/mantine/blocks/action/flow/NeedsVerificationAlert.tsx
|
|
19079
|
-
import React191, { useMemo as useMemo85 } from "react";
|
|
19091
|
+
import React191, { useMemo as useMemo85, useState as useState77 } from "react";
|
|
19080
19092
|
import { Button as Button33, Code as Code7, Group as Group73, Stack as Stack122, Text as Text121 } from "@mantine/core";
|
|
19081
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
|
|
19082
19142
|
function NeedsVerificationAlert({ editor, block }) {
|
|
19083
19143
|
const t = useTranslate();
|
|
19084
19144
|
const handlers = useBlocknoteHandlers();
|
|
19085
19145
|
const [runtime, updateRuntime] = useNodeRuntime(editor, block.id);
|
|
19146
|
+
const sessionRunId = useRunSessionId();
|
|
19147
|
+
const [signing, setSigning] = useState77(false);
|
|
19148
|
+
const [signError, setSignError] = useState77(null);
|
|
19086
19149
|
const payloadJson = useMemo85(() => {
|
|
19087
19150
|
if (!runtime.output || Object.keys(runtime.output).length === 0) return "";
|
|
19088
19151
|
try {
|
|
@@ -19100,21 +19163,25 @@ function NeedsVerificationAlert({ editor, block }) {
|
|
|
19100
19163
|
return void 0;
|
|
19101
19164
|
}
|
|
19102
19165
|
})();
|
|
19103
|
-
const handleConfirm = () => {
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
})
|
|
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
|
+
}
|
|
19111
19178
|
};
|
|
19112
19179
|
const handleReject = () => {
|
|
19113
19180
|
updateRuntime({ state: "idle", error: void 0, output: {} });
|
|
19114
19181
|
};
|
|
19115
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", {
|
|
19116
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."
|
|
19117
|
-
})), 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" })))));
|
|
19118
19185
|
}
|
|
19119
19186
|
|
|
19120
19187
|
// src/mantine/blocks/action/flow/FlowView.tsx
|
|
@@ -19325,21 +19392,21 @@ function ActionPanelContent({
|
|
|
19325
19392
|
disabledMessage
|
|
19326
19393
|
}) {
|
|
19327
19394
|
const t = useTranslate();
|
|
19328
|
-
const [isLoading] =
|
|
19395
|
+
const [isLoading] = useState78(false);
|
|
19329
19396
|
const [runtime, updateRuntime] = useNodeRuntime(editor, block.id);
|
|
19330
19397
|
const executeFnRef = useRef20(null);
|
|
19331
|
-
const [canSign, setCanSign] =
|
|
19332
|
-
const [runtimeInputs, setRuntimeInputs] =
|
|
19333
|
-
const [showFlowDetail, setShowFlowDetail] =
|
|
19334
|
-
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);
|
|
19335
19402
|
const { executeAction } = useExecuteActionBlock({ editor, block });
|
|
19336
|
-
const provideSigningHandler =
|
|
19403
|
+
const provideSigningHandler = useCallback69((fn) => {
|
|
19337
19404
|
executeFnRef.current = fn;
|
|
19338
19405
|
}, []);
|
|
19339
|
-
const unlockSigning =
|
|
19406
|
+
const unlockSigning = useCallback69((value) => {
|
|
19340
19407
|
setCanSign(value);
|
|
19341
19408
|
}, []);
|
|
19342
|
-
const registerRuntimeInputs =
|
|
19409
|
+
const registerRuntimeInputs = useCallback69((inputs) => {
|
|
19343
19410
|
setRuntimeInputs(inputs);
|
|
19344
19411
|
}, []);
|
|
19345
19412
|
const actionTypeUI = actionType ? getActionTypeUI(actionType) : void 0;
|
|
@@ -19347,11 +19414,11 @@ function ActionPanelContent({
|
|
|
19347
19414
|
const isSlideToSign = executionMode === "slide-to-sign";
|
|
19348
19415
|
const isXeroWorkQueueAction = actionType === "qi/xero.invoice.create" || actionType === "qi/xero.payment.create";
|
|
19349
19416
|
const autoResolvePending = !!actionTypeUI?.autoResolvePendingInvocation;
|
|
19350
|
-
const handlePendingInvocationCompleted =
|
|
19417
|
+
const handlePendingInvocationCompleted = useCallback69((_invocationId) => {
|
|
19351
19418
|
setActiveInvocation(null);
|
|
19352
19419
|
setShowFlowDetail(false);
|
|
19353
19420
|
}, []);
|
|
19354
|
-
const handleInvoke =
|
|
19421
|
+
const handleInvoke = useCallback69((invocation) => {
|
|
19355
19422
|
if (invocation?.id) {
|
|
19356
19423
|
setActiveInvocation(invocation);
|
|
19357
19424
|
}
|
|
@@ -19531,7 +19598,7 @@ function lazyActionComponent(load) {
|
|
|
19531
19598
|
// src/mantine/blocks/action/actionTypes/pod/domainIndexerLookup/index.ts
|
|
19532
19599
|
import { IconSearch as IconSearch5 } from "@tabler/icons-react";
|
|
19533
19600
|
var DomainIndexerLookupConfig = lazyActionComponent(() => import("./DomainIndexerLookupConfig-N4VONQUY.js").then((module) => ({ default: module.DomainIndexerLookupConfig })));
|
|
19534
|
-
var DomainIndexerLookupFlowDetail = lazyActionComponent(() => import("./DomainIndexerLookupFlowDetail-
|
|
19601
|
+
var DomainIndexerLookupFlowDetail = lazyActionComponent(() => import("./DomainIndexerLookupFlowDetail-L6GSDWLI.js").then((module) => ({ default: module.DomainIndexerLookupFlowDetail })));
|
|
19535
19602
|
registerActionTypeUI("qi/pod.domain-indexer-lookup", {
|
|
19536
19603
|
label: "Define Purpose",
|
|
19537
19604
|
description: "Capture intent and find matching Blueprint candidates",
|
|
@@ -19542,9 +19609,9 @@ registerActionTypeUI("qi/pod.domain-indexer-lookup", {
|
|
|
19542
19609
|
|
|
19543
19610
|
// src/mantine/blocks/action/actionTypes/pod/domainSingleSelection/index.ts
|
|
19544
19611
|
import { IconLayoutGrid } from "@tabler/icons-react";
|
|
19545
|
-
var DomainSingleSelectionConfig = lazyActionComponent(() => import("./DomainSingleSelectionConfig-
|
|
19612
|
+
var DomainSingleSelectionConfig = lazyActionComponent(() => import("./DomainSingleSelectionConfig-DTHYPZBO.js").then((module) => ({ default: module.DomainSingleSelectionConfig })));
|
|
19546
19613
|
var DomainSingleSelectionFlowDetail = lazyActionComponent(
|
|
19547
|
-
() => import("./DomainSingleSelectionFlowDetail-
|
|
19614
|
+
() => import("./DomainSingleSelectionFlowDetail-JKNAC2RY.js").then((module) => ({ default: module.DomainSingleSelectionFlowDetail }))
|
|
19548
19615
|
);
|
|
19549
19616
|
registerActionTypeUI("qi/pod.domain-single-selection", {
|
|
19550
19617
|
label: "Select Blueprint",
|
|
@@ -19558,7 +19625,7 @@ registerActionTypeUI("qi/pod.domain-single-selection", {
|
|
|
19558
19625
|
import { IconBuildingEstate } from "@tabler/icons-react";
|
|
19559
19626
|
var EntitySingleSelectionConfig = lazyActionComponent(() => import("./EntitySingleSelectionConfig-DL57KNKM.js").then((module) => ({ default: module.EntitySingleSelectionConfig })));
|
|
19560
19627
|
var EntitySingleSelectionFlowDetail = lazyActionComponent(
|
|
19561
|
-
() => import("./EntitySingleSelectionFlowDetail-
|
|
19628
|
+
() => import("./EntitySingleSelectionFlowDetail-5BDIVHQV.js").then((module) => ({ default: module.EntitySingleSelectionFlowDetail }))
|
|
19562
19629
|
);
|
|
19563
19630
|
registerActionTypeUI("qi/pod.entity-single-selection", {
|
|
19564
19631
|
label: "Select Parent Organisation",
|
|
@@ -19571,7 +19638,7 @@ registerActionTypeUI("qi/pod.entity-single-selection", {
|
|
|
19571
19638
|
// src/mantine/blocks/action/actionTypes/pod/memberMultiSelect/index.ts
|
|
19572
19639
|
import { IconUsers as IconUsers5 } from "@tabler/icons-react";
|
|
19573
19640
|
var MemberMultiSelectConfig = lazyActionComponent(() => import("./MemberMultiSelectConfig-E7WUB2WD.js").then((module) => ({ default: module.MemberMultiSelectConfig })));
|
|
19574
|
-
var MemberMultiSelectFlowDetail = lazyActionComponent(() => import("./MemberMultiSelectFlowDetail-
|
|
19641
|
+
var MemberMultiSelectFlowDetail = lazyActionComponent(() => import("./MemberMultiSelectFlowDetail-N64ZK7GE.js").then((module) => ({ default: module.MemberMultiSelectFlowDetail })));
|
|
19575
19642
|
registerActionTypeUI("qi/pod.member-multi-select", {
|
|
19576
19643
|
label: "Configure Membership",
|
|
19577
19644
|
description: "Define POD members, roles, and voting power",
|
|
@@ -19583,7 +19650,7 @@ registerActionTypeUI("qi/pod.member-multi-select", {
|
|
|
19583
19650
|
// src/mantine/blocks/action/actionTypes/pod/governanceConfig/index.ts
|
|
19584
19651
|
import { IconGavel } from "@tabler/icons-react";
|
|
19585
19652
|
var GovernanceConfigConfig = lazyActionComponent(() => import("./GovernanceConfigConfig-V3WM4WBP.js").then((module) => ({ default: module.GovernanceConfigConfig })));
|
|
19586
|
-
var GovernanceConfigFlowDetail = lazyActionComponent(() => import("./GovernanceConfigFlowDetail-
|
|
19653
|
+
var GovernanceConfigFlowDetail = lazyActionComponent(() => import("./GovernanceConfigFlowDetail-FZB4R54G.js").then((module) => ({ default: module.GovernanceConfigFlowDetail })));
|
|
19587
19654
|
registerActionTypeUI("qi/pod.governance-config", {
|
|
19588
19655
|
label: "Configure Governance",
|
|
19589
19656
|
description: "Set the governance group type and decision policy",
|
|
@@ -19595,7 +19662,7 @@ registerActionTypeUI("qi/pod.governance-config", {
|
|
|
19595
19662
|
// src/mantine/blocks/action/actionTypes/pod/listDomainFlows/index.ts
|
|
19596
19663
|
import { IconTemplate } from "@tabler/icons-react";
|
|
19597
19664
|
var ListDomainFlowsConfig = lazyActionComponent(() => import("./ListDomainFlowsConfig-3JZEPTOJ.js").then((module) => ({ default: module.ListDomainFlowsConfig })));
|
|
19598
|
-
var ListDomainFlowsFlowDetail = lazyActionComponent(() => import("./ListDomainFlowsFlowDetail-
|
|
19665
|
+
var ListDomainFlowsFlowDetail = lazyActionComponent(() => import("./ListDomainFlowsFlowDetail-PJQCAY3I.js").then((module) => ({ default: module.ListDomainFlowsFlowDetail })));
|
|
19599
19666
|
registerActionTypeUI("qi/pod.list-domain-flows", {
|
|
19600
19667
|
label: "Select Flow Templates",
|
|
19601
19668
|
description: "Choose protocol flow templates to import",
|
|
@@ -19618,7 +19685,7 @@ var ACTIONS = [
|
|
|
19618
19685
|
];
|
|
19619
19686
|
for (const [actionType, label, description] of ACTIONS) {
|
|
19620
19687
|
const DesignPodConfig = lazyActionComponent(() => import("./DesignPodConfig-LJ7H2CZ6.js").then((module) => ({ default: module.DesignPodConfig })));
|
|
19621
|
-
const DesignPodFlowDetail = lazyActionComponent(() => import("./DesignPodFlowDetail-
|
|
19688
|
+
const DesignPodFlowDetail = lazyActionComponent(() => import("./DesignPodFlowDetail-ECFMDZZ3.js").then((module) => ({ default: module.DesignPodFlowDetail })));
|
|
19622
19689
|
registerActionTypeUI(actionType, {
|
|
19623
19690
|
label,
|
|
19624
19691
|
description,
|
|
@@ -19630,9 +19697,9 @@ for (const [actionType, label, description] of ACTIONS) {
|
|
|
19630
19697
|
|
|
19631
19698
|
// src/mantine/blocks/action/actionTypes/governance/memberProposal/index.ts
|
|
19632
19699
|
import { IconUsersGroup as IconUsersGroup3 } from "@tabler/icons-react";
|
|
19633
|
-
var GovernanceMemberProposalConfig = lazyActionComponent(() => import("./GovernanceMemberProposalConfig-
|
|
19700
|
+
var GovernanceMemberProposalConfig = lazyActionComponent(() => import("./GovernanceMemberProposalConfig-LW6KNHVY.js").then((module) => ({ default: module.GovernanceMemberProposalConfig })));
|
|
19634
19701
|
var GovernanceMemberProposalFlowDetail = lazyActionComponent(
|
|
19635
|
-
() => import("./GovernanceMemberProposalFlowDetail-
|
|
19702
|
+
() => import("./GovernanceMemberProposalFlowDetail-JNO3RPDW.js").then((module) => ({ default: module.GovernanceMemberProposalFlowDetail }))
|
|
19636
19703
|
);
|
|
19637
19704
|
registerActionTypeUI("qi/governance.member-proposal", {
|
|
19638
19705
|
label: "Membership Proposal",
|
|
@@ -19645,10 +19712,10 @@ registerActionTypeUI("qi/governance.member-proposal", {
|
|
|
19645
19712
|
// src/mantine/blocks/action/actionTypes/governance/settingsProposal/index.ts
|
|
19646
19713
|
import { IconScale } from "@tabler/icons-react";
|
|
19647
19714
|
var GovernanceSettingsProposalConfig = lazyActionComponent(
|
|
19648
|
-
() => import("./GovernanceSettingsProposalConfig-
|
|
19715
|
+
() => import("./GovernanceSettingsProposalConfig-WBOTSKNF.js").then((module) => ({ default: module.GovernanceSettingsProposalConfig }))
|
|
19649
19716
|
);
|
|
19650
19717
|
var GovernanceSettingsProposalFlowDetail = lazyActionComponent(
|
|
19651
|
-
() => import("./GovernanceSettingsProposalFlowDetail-
|
|
19718
|
+
() => import("./GovernanceSettingsProposalFlowDetail-W2KXBQM2.js").then((module) => ({ default: module.GovernanceSettingsProposalFlowDetail }))
|
|
19652
19719
|
);
|
|
19653
19720
|
registerActionTypeUI("qi/governance.settings-proposal", {
|
|
19654
19721
|
label: "Governance Settings Proposal",
|
|
@@ -19662,7 +19729,7 @@ registerActionTypeUI("qi/governance.settings-proposal", {
|
|
|
19662
19729
|
import { IconGavel as IconGavel2 } from "@tabler/icons-react";
|
|
19663
19730
|
|
|
19664
19731
|
// src/mantine/blocks/action/actionTypes/governance/_shared/createGovernanceProposalConfig.tsx
|
|
19665
|
-
import React194, { useCallback as
|
|
19732
|
+
import React194, { useCallback as useCallback70, useEffect as useEffect68, useState as useState79 } from "react";
|
|
19666
19733
|
import { Alert as Alert26, Stack as Stack124, Text as Text123 } from "@mantine/core";
|
|
19667
19734
|
function parseGovernanceProposalConfigInputs(json) {
|
|
19668
19735
|
try {
|
|
@@ -19674,11 +19741,11 @@ function parseGovernanceProposalConfigInputs(json) {
|
|
|
19674
19741
|
}
|
|
19675
19742
|
function createGovernanceProposalConfig(options) {
|
|
19676
19743
|
const GovernanceProposalConfig = ({ inputs, onInputsChange }) => {
|
|
19677
|
-
const [local, setLocal] =
|
|
19744
|
+
const [local, setLocal] = useState79(() => parseGovernanceProposalConfigInputs(inputs));
|
|
19678
19745
|
useEffect68(() => {
|
|
19679
19746
|
setLocal(parseGovernanceProposalConfigInputs(inputs));
|
|
19680
19747
|
}, [inputs]);
|
|
19681
|
-
const update =
|
|
19748
|
+
const update = useCallback70(
|
|
19682
19749
|
(patch) => {
|
|
19683
19750
|
setLocal((prev) => {
|
|
19684
19751
|
const updated = { ...prev, ...patch };
|
|
@@ -19695,7 +19762,7 @@ function createGovernanceProposalConfig(options) {
|
|
|
19695
19762
|
|
|
19696
19763
|
// src/mantine/blocks/action/actionTypes/governance/submissionConfigProposal/index.ts
|
|
19697
19764
|
var GovernanceSubmissionConfigProposalFlowDetail = lazyActionComponent(
|
|
19698
|
-
() => import("./GovernanceSubmissionConfigProposalFlowDetail-
|
|
19765
|
+
() => import("./GovernanceSubmissionConfigProposalFlowDetail-YHO3F7TI.js").then((module) => ({ default: module.GovernanceSubmissionConfigProposalFlowDetail }))
|
|
19699
19766
|
);
|
|
19700
19767
|
registerActionTypeUI("qi/governance.submission-config-proposal", {
|
|
19701
19768
|
label: "Proposal Submission Rules",
|
|
@@ -19711,10 +19778,10 @@ registerActionTypeUI("qi/governance.submission-config-proposal", {
|
|
|
19711
19778
|
// src/mantine/blocks/action/actionTypes/governance/transactionSendFunds/index.ts
|
|
19712
19779
|
import { IconCoin as IconCoin3 } from "@tabler/icons-react";
|
|
19713
19780
|
var GovernanceTransactionSendFundsConfig = lazyActionComponent(
|
|
19714
|
-
() => import("./GovernanceTransactionSendFundsConfig-
|
|
19781
|
+
() => import("./GovernanceTransactionSendFundsConfig-JRROE44J.js").then((module) => ({ default: module.GovernanceTransactionSendFundsConfig }))
|
|
19715
19782
|
);
|
|
19716
19783
|
var GovernanceTransactionSendFundsFlowDetail = lazyActionComponent(
|
|
19717
|
-
() => import("./GovernanceTransactionSendFundsFlowDetail-
|
|
19784
|
+
() => import("./GovernanceTransactionSendFundsFlowDetail-Z57XAY3D.js").then((module) => ({ default: module.GovernanceTransactionSendFundsFlowDetail }))
|
|
19718
19785
|
);
|
|
19719
19786
|
registerActionTypeUI("qi/governance.transaction.send-funds", {
|
|
19720
19787
|
label: "Send Funds",
|
|
@@ -19727,7 +19794,7 @@ registerActionTypeUI("qi/governance.transaction.send-funds", {
|
|
|
19727
19794
|
// src/mantine/blocks/action/actionTypes/governance/transactionSendGroupToken/index.ts
|
|
19728
19795
|
import { IconCoins as IconCoins2 } from "@tabler/icons-react";
|
|
19729
19796
|
var GovernanceTransactionSendGroupTokenFlowDetail = lazyActionComponent(
|
|
19730
|
-
() => import("./GovernanceTransactionSendGroupTokenFlowDetail-
|
|
19797
|
+
() => import("./GovernanceTransactionSendGroupTokenFlowDetail-OSEHM66P.js").then((module) => ({ default: module.GovernanceTransactionSendGroupTokenFlowDetail }))
|
|
19731
19798
|
);
|
|
19732
19799
|
registerActionTypeUI("qi/governance.transaction.send-group-token", {
|
|
19733
19800
|
label: "Send POD Tokens",
|
|
@@ -19743,7 +19810,7 @@ registerActionTypeUI("qi/governance.transaction.send-group-token", {
|
|
|
19743
19810
|
// src/mantine/blocks/action/actionTypes/governance/transactionMint/index.ts
|
|
19744
19811
|
import { IconCirclePlus } from "@tabler/icons-react";
|
|
19745
19812
|
var GovernanceTransactionMintFlowDetail = lazyActionComponent(
|
|
19746
|
-
() => import("./GovernanceTransactionMintFlowDetail-
|
|
19813
|
+
() => import("./GovernanceTransactionMintFlowDetail-K6PPDCH6.js").then((module) => ({ default: module.GovernanceTransactionMintFlowDetail }))
|
|
19747
19814
|
);
|
|
19748
19815
|
registerActionTypeUI("qi/governance.transaction.mint", {
|
|
19749
19816
|
label: "Mint Governance Tokens",
|
|
@@ -19759,7 +19826,7 @@ registerActionTypeUI("qi/governance.transaction.mint", {
|
|
|
19759
19826
|
// src/mantine/blocks/action/actionTypes/governance/transactionPerformTokenSwap/index.ts
|
|
19760
19827
|
import { IconArrowsExchange as IconArrowsExchange3 } from "@tabler/icons-react";
|
|
19761
19828
|
var GovernanceTransactionPerformTokenSwapFlowDetail = lazyActionComponent(
|
|
19762
|
-
() => import("./GovernanceTransactionPerformTokenSwapFlowDetail-
|
|
19829
|
+
() => import("./GovernanceTransactionPerformTokenSwapFlowDetail-6PEN4FED.js").then((module) => ({ default: module.GovernanceTransactionPerformTokenSwapFlowDetail }))
|
|
19763
19830
|
);
|
|
19764
19831
|
registerActionTypeUI("qi/governance.transaction.perform-token-swap", {
|
|
19765
19832
|
label: "Fund Token Swap",
|
|
@@ -19775,7 +19842,7 @@ registerActionTypeUI("qi/governance.transaction.perform-token-swap", {
|
|
|
19775
19842
|
// src/mantine/blocks/action/actionTypes/governance/transactionWithdrawTokenSwap/index.ts
|
|
19776
19843
|
import { IconArrowBackUp } from "@tabler/icons-react";
|
|
19777
19844
|
var GovernanceTransactionWithdrawTokenSwapFlowDetail = lazyActionComponent(
|
|
19778
|
-
() => import("./GovernanceTransactionWithdrawTokenSwapFlowDetail-
|
|
19845
|
+
() => import("./GovernanceTransactionWithdrawTokenSwapFlowDetail-AZFHSIBD.js").then((module) => ({ default: module.GovernanceTransactionWithdrawTokenSwapFlowDetail }))
|
|
19779
19846
|
);
|
|
19780
19847
|
registerActionTypeUI("qi/governance.transaction.withdraw-token-swap", {
|
|
19781
19848
|
label: "Withdraw Token Swap",
|
|
@@ -19791,7 +19858,7 @@ registerActionTypeUI("qi/governance.transaction.withdraw-token-swap", {
|
|
|
19791
19858
|
// src/mantine/blocks/action/actionTypes/governance/stakingStake/index.ts
|
|
19792
19859
|
import { IconStack2 } from "@tabler/icons-react";
|
|
19793
19860
|
var GovernanceStakingStakeFlowDetail = lazyActionComponent(
|
|
19794
|
-
() => import("./GovernanceStakingStakeFlowDetail-
|
|
19861
|
+
() => import("./GovernanceStakingStakeFlowDetail-Z7MCDZDV.js").then((module) => ({ default: module.GovernanceStakingStakeFlowDetail }))
|
|
19795
19862
|
);
|
|
19796
19863
|
registerActionTypeUI("qi/governance.staking.stake", {
|
|
19797
19864
|
label: "Stake Treasury Tokens",
|
|
@@ -19807,7 +19874,7 @@ registerActionTypeUI("qi/governance.staking.stake", {
|
|
|
19807
19874
|
// src/mantine/blocks/action/actionTypes/governance/stakingStakeToGroup/index.ts
|
|
19808
19875
|
import { IconStack3 } from "@tabler/icons-react";
|
|
19809
19876
|
var GovernanceStakingStakeToGroupFlowDetail = lazyActionComponent(
|
|
19810
|
-
() => import("./GovernanceStakingStakeToGroupFlowDetail-
|
|
19877
|
+
() => import("./GovernanceStakingStakeToGroupFlowDetail-EC6JGRMB.js").then((module) => ({ default: module.GovernanceStakingStakeToGroupFlowDetail }))
|
|
19811
19878
|
);
|
|
19812
19879
|
registerActionTypeUI("qi/governance.staking.stake-to-group", {
|
|
19813
19880
|
label: "Stake to POD",
|
|
@@ -19822,7 +19889,7 @@ registerActionTypeUI("qi/governance.staking.stake-to-group", {
|
|
|
19822
19889
|
|
|
19823
19890
|
// src/mantine/blocks/action/actionTypes/governance/authzGrant/index.ts
|
|
19824
19891
|
import { IconKey as IconKey2 } from "@tabler/icons-react";
|
|
19825
|
-
var GovernanceAuthzGrantFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzGrantFlowDetail-
|
|
19892
|
+
var GovernanceAuthzGrantFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzGrantFlowDetail-L7EPQQZ6.js").then((module) => ({ default: module.GovernanceAuthzGrantFlowDetail })));
|
|
19826
19893
|
registerActionTypeUI("qi/governance.authz.grant", {
|
|
19827
19894
|
label: "Grant Authorization",
|
|
19828
19895
|
description: "Propose granting an address authorization to act for the POD",
|
|
@@ -19837,7 +19904,7 @@ registerActionTypeUI("qi/governance.authz.grant", {
|
|
|
19837
19904
|
// src/mantine/blocks/action/actionTypes/governance/authzRevoke/index.ts
|
|
19838
19905
|
import { IconKeyOff } from "@tabler/icons-react";
|
|
19839
19906
|
var GovernanceAuthzRevokeFlowDetail = lazyActionComponent(
|
|
19840
|
-
() => import("./GovernanceAuthzRevokeFlowDetail-
|
|
19907
|
+
() => import("./GovernanceAuthzRevokeFlowDetail-X2VQHRCB.js").then((module) => ({ default: module.GovernanceAuthzRevokeFlowDetail }))
|
|
19841
19908
|
);
|
|
19842
19909
|
registerActionTypeUI("qi/governance.authz.revoke", {
|
|
19843
19910
|
label: "Revoke Authorization",
|
|
@@ -19852,7 +19919,7 @@ registerActionTypeUI("qi/governance.authz.revoke", {
|
|
|
19852
19919
|
|
|
19853
19920
|
// src/mantine/blocks/action/actionTypes/governance/authzExec/index.ts
|
|
19854
19921
|
import { IconPlayerPlay as IconPlayerPlay2 } from "@tabler/icons-react";
|
|
19855
|
-
var GovernanceAuthzExecFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzExecFlowDetail-
|
|
19922
|
+
var GovernanceAuthzExecFlowDetail = lazyActionComponent(() => import("./GovernanceAuthzExecFlowDetail-GWKPT7QW.js").then((module) => ({ default: module.GovernanceAuthzExecFlowDetail })));
|
|
19856
19923
|
registerActionTypeUI("qi/governance.authz.exec", {
|
|
19857
19924
|
label: "Execute Authorized Action",
|
|
19858
19925
|
description: "Propose executing a message the POD was authorized to run",
|
|
@@ -19866,7 +19933,7 @@ registerActionTypeUI("qi/governance.authz.exec", {
|
|
|
19866
19933
|
|
|
19867
19934
|
// src/mantine/blocks/action/actionTypes/governance/chainGovernanceVote/index.ts
|
|
19868
19935
|
import { IconBuildingBank } from "@tabler/icons-react";
|
|
19869
|
-
var GovernanceChainVoteFlowDetail = lazyActionComponent(() => import("./GovernanceChainVoteFlowDetail-
|
|
19936
|
+
var GovernanceChainVoteFlowDetail = lazyActionComponent(() => import("./GovernanceChainVoteFlowDetail-BO3DJNDF.js").then((module) => ({ default: module.GovernanceChainVoteFlowDetail })));
|
|
19870
19937
|
registerActionTypeUI("qi/governance.chain-governance-vote", {
|
|
19871
19938
|
label: "Chain Governance Vote",
|
|
19872
19939
|
description: "Propose casting the POD's vote on a chain governance proposal",
|
|
@@ -19880,7 +19947,7 @@ registerActionTypeUI("qi/governance.chain-governance-vote", {
|
|
|
19880
19947
|
|
|
19881
19948
|
// src/mantine/blocks/action/actionTypes/governance/daoJoin/index.ts
|
|
19882
19949
|
import { IconPlugConnected } from "@tabler/icons-react";
|
|
19883
|
-
var GovernanceDaoJoinFlowDetail = lazyActionComponent(() => import("./GovernanceDaoJoinFlowDetail-
|
|
19950
|
+
var GovernanceDaoJoinFlowDetail = lazyActionComponent(() => import("./GovernanceDaoJoinFlowDetail-GJWWQPD2.js").then((module) => ({ default: module.GovernanceDaoJoinFlowDetail })));
|
|
19884
19951
|
registerActionTypeUI("qi/governance.dao.join", {
|
|
19885
19952
|
label: "Join Entity",
|
|
19886
19953
|
description: "Propose linking this POD as a member of another entity",
|
|
@@ -19895,7 +19962,7 @@ registerActionTypeUI("qi/governance.dao.join", {
|
|
|
19895
19962
|
// src/mantine/blocks/action/actionTypes/governance/daoUpdateInfo/index.ts
|
|
19896
19963
|
import { IconIdBadge2 } from "@tabler/icons-react";
|
|
19897
19964
|
var GovernanceDaoUpdateInfoFlowDetail = lazyActionComponent(
|
|
19898
|
-
() => import("./GovernanceDaoUpdateInfoFlowDetail-
|
|
19965
|
+
() => import("./GovernanceDaoUpdateInfoFlowDetail-2DCOJGYV.js").then((module) => ({ default: module.GovernanceDaoUpdateInfoFlowDetail }))
|
|
19899
19966
|
);
|
|
19900
19967
|
registerActionTypeUI("qi/governance.dao.update-info", {
|
|
19901
19968
|
label: "Update DAO Info",
|
|
@@ -19911,7 +19978,7 @@ registerActionTypeUI("qi/governance.dao.update-info", {
|
|
|
19911
19978
|
// src/mantine/blocks/action/actionTypes/governance/daoManageSubDaos/index.ts
|
|
19912
19979
|
import { IconSitemap } from "@tabler/icons-react";
|
|
19913
19980
|
var GovernanceDaoManageSubDaosFlowDetail = lazyActionComponent(
|
|
19914
|
-
() => import("./GovernanceDaoManageSubDaosFlowDetail-
|
|
19981
|
+
() => import("./GovernanceDaoManageSubDaosFlowDetail-3WTI6AX7.js").then((module) => ({ default: module.GovernanceDaoManageSubDaosFlowDetail }))
|
|
19915
19982
|
);
|
|
19916
19983
|
registerActionTypeUI("qi/governance.dao.manage-subdaos", {
|
|
19917
19984
|
label: "Manage SubDAOs",
|
|
@@ -19927,7 +19994,7 @@ registerActionTypeUI("qi/governance.dao.manage-subdaos", {
|
|
|
19927
19994
|
// src/mantine/blocks/action/actionTypes/governance/daoManageStorage/index.ts
|
|
19928
19995
|
import { IconDatabase as IconDatabase3 } from "@tabler/icons-react";
|
|
19929
19996
|
var GovernanceDaoManageStorageFlowDetail = lazyActionComponent(
|
|
19930
|
-
() => import("./GovernanceDaoManageStorageFlowDetail-
|
|
19997
|
+
() => import("./GovernanceDaoManageStorageFlowDetail-KGMWUB4Z.js").then((module) => ({ default: module.GovernanceDaoManageStorageFlowDetail }))
|
|
19931
19998
|
);
|
|
19932
19999
|
registerActionTypeUI("qi/governance.dao.manage-storage", {
|
|
19933
20000
|
label: "Manage Storage Items",
|
|
@@ -19943,7 +20010,7 @@ registerActionTypeUI("qi/governance.dao.manage-storage", {
|
|
|
19943
20010
|
// src/mantine/blocks/action/actionTypes/governance/daoAdminExec/index.ts
|
|
19944
20011
|
import { IconShieldCog } from "@tabler/icons-react";
|
|
19945
20012
|
var GovernanceDaoAdminExecFlowDetail = lazyActionComponent(
|
|
19946
|
-
() => import("./GovernanceDaoAdminExecFlowDetail-
|
|
20013
|
+
() => import("./GovernanceDaoAdminExecFlowDetail-YQCDUW2V.js").then((module) => ({ default: module.GovernanceDaoAdminExecFlowDetail }))
|
|
19947
20014
|
);
|
|
19948
20015
|
registerActionTypeUI("qi/governance.dao.admin-exec", {
|
|
19949
20016
|
label: "DAO Admin Execute",
|
|
@@ -19959,7 +20026,7 @@ registerActionTypeUI("qi/governance.dao.admin-exec", {
|
|
|
19959
20026
|
// src/mantine/blocks/action/actionTypes/governance/daoAcceptToMarketplace/index.ts
|
|
19960
20027
|
import { IconRosetteDiscountCheck } from "@tabler/icons-react";
|
|
19961
20028
|
var GovernanceDaoAcceptToMarketplaceFlowDetail = lazyActionComponent(
|
|
19962
|
-
() => import("./GovernanceDaoAcceptToMarketplaceFlowDetail-
|
|
20029
|
+
() => import("./GovernanceDaoAcceptToMarketplaceFlowDetail-EO3CFNLA.js").then((module) => ({ default: module.GovernanceDaoAcceptToMarketplaceFlowDetail }))
|
|
19963
20030
|
);
|
|
19964
20031
|
registerActionTypeUI("qi/governance.dao.accept-to-marketplace", {
|
|
19965
20032
|
label: "Accept to Marketplace",
|
|
@@ -19975,7 +20042,7 @@ registerActionTypeUI("qi/governance.dao.accept-to-marketplace", {
|
|
|
19975
20042
|
// src/mantine/blocks/action/actionTypes/governance/daoCreateEntity/index.ts
|
|
19976
20043
|
import { IconCubePlus } from "@tabler/icons-react";
|
|
19977
20044
|
var GovernanceDaoCreateEntityFlowDetail = lazyActionComponent(
|
|
19978
|
-
() => import("./GovernanceDaoCreateEntityFlowDetail-
|
|
20045
|
+
() => import("./GovernanceDaoCreateEntityFlowDetail-RSFFRATK.js").then((module) => ({ default: module.GovernanceDaoCreateEntityFlowDetail }))
|
|
19979
20046
|
);
|
|
19980
20047
|
registerActionTypeUI("qi/governance.dao.create-entity", {
|
|
19981
20048
|
label: "Create Entity",
|
|
@@ -19990,7 +20057,7 @@ registerActionTypeUI("qi/governance.dao.create-entity", {
|
|
|
19990
20057
|
|
|
19991
20058
|
// src/mantine/blocks/action/actionTypes/governance/nftBurn/index.ts
|
|
19992
20059
|
import { IconFlame } from "@tabler/icons-react";
|
|
19993
|
-
var GovernanceNftBurnFlowDetail = lazyActionComponent(() => import("./GovernanceNftBurnFlowDetail-
|
|
20060
|
+
var GovernanceNftBurnFlowDetail = lazyActionComponent(() => import("./GovernanceNftBurnFlowDetail-MG3S2DZB.js").then((module) => ({ default: module.GovernanceNftBurnFlowDetail })));
|
|
19994
20061
|
registerActionTypeUI("qi/governance.nft.burn", {
|
|
19995
20062
|
label: "Burn NFT",
|
|
19996
20063
|
description: "Propose permanently burning an NFT held by the treasury",
|
|
@@ -20005,7 +20072,7 @@ registerActionTypeUI("qi/governance.nft.burn", {
|
|
|
20005
20072
|
// src/mantine/blocks/action/actionTypes/governance/nftTransfer/index.ts
|
|
20006
20073
|
import { IconSend as IconSend5 } from "@tabler/icons-react";
|
|
20007
20074
|
var GovernanceNftTransferFlowDetail = lazyActionComponent(
|
|
20008
|
-
() => import("./GovernanceNftTransferFlowDetail-
|
|
20075
|
+
() => import("./GovernanceNftTransferFlowDetail-27CRQVTA.js").then((module) => ({ default: module.GovernanceNftTransferFlowDetail }))
|
|
20009
20076
|
);
|
|
20010
20077
|
registerActionTypeUI("qi/governance.nft.transfer", {
|
|
20011
20078
|
label: "Transfer NFT",
|
|
@@ -20021,7 +20088,7 @@ registerActionTypeUI("qi/governance.nft.transfer", {
|
|
|
20021
20088
|
// src/mantine/blocks/action/actionTypes/governance/nftManageCollections/index.ts
|
|
20022
20089
|
import { IconPhotoCog } from "@tabler/icons-react";
|
|
20023
20090
|
var GovernanceNftManageCollectionsFlowDetail = lazyActionComponent(
|
|
20024
|
-
() => import("./GovernanceNftManageCollectionsFlowDetail-
|
|
20091
|
+
() => import("./GovernanceNftManageCollectionsFlowDetail-FB5BRSLF.js").then((module) => ({ default: module.GovernanceNftManageCollectionsFlowDetail }))
|
|
20025
20092
|
);
|
|
20026
20093
|
registerActionTypeUI("qi/governance.nft.manage-collections", {
|
|
20027
20094
|
label: "Manage NFT Collections",
|
|
@@ -20037,7 +20104,7 @@ registerActionTypeUI("qi/governance.nft.manage-collections", {
|
|
|
20037
20104
|
// src/mantine/blocks/action/actionTypes/governance/contractExecute/index.ts
|
|
20038
20105
|
import { IconTerminal2 } from "@tabler/icons-react";
|
|
20039
20106
|
var GovernanceContractExecuteFlowDetail = lazyActionComponent(
|
|
20040
|
-
() => import("./GovernanceContractExecuteFlowDetail-
|
|
20107
|
+
() => import("./GovernanceContractExecuteFlowDetail-JHIXCNXS.js").then((module) => ({ default: module.GovernanceContractExecuteFlowDetail }))
|
|
20041
20108
|
);
|
|
20042
20109
|
registerActionTypeUI("qi/governance.contract.execute", {
|
|
20043
20110
|
label: "Execute Contract",
|
|
@@ -20053,7 +20120,7 @@ registerActionTypeUI("qi/governance.contract.execute", {
|
|
|
20053
20120
|
// src/mantine/blocks/action/actionTypes/governance/contractInstantiate/index.ts
|
|
20054
20121
|
import { IconRocket } from "@tabler/icons-react";
|
|
20055
20122
|
var GovernanceContractInstantiateFlowDetail = lazyActionComponent(
|
|
20056
|
-
() => import("./GovernanceContractInstantiateFlowDetail-
|
|
20123
|
+
() => import("./GovernanceContractInstantiateFlowDetail-XWSI2HXG.js").then((module) => ({ default: module.GovernanceContractInstantiateFlowDetail }))
|
|
20057
20124
|
);
|
|
20058
20125
|
registerActionTypeUI("qi/governance.contract.instantiate", {
|
|
20059
20126
|
label: "Instantiate Contract",
|
|
@@ -20069,7 +20136,7 @@ registerActionTypeUI("qi/governance.contract.instantiate", {
|
|
|
20069
20136
|
// src/mantine/blocks/action/actionTypes/governance/contractMigrate/index.ts
|
|
20070
20137
|
import { IconTransform } from "@tabler/icons-react";
|
|
20071
20138
|
var GovernanceContractMigrateFlowDetail = lazyActionComponent(
|
|
20072
|
-
() => import("./GovernanceContractMigrateFlowDetail-
|
|
20139
|
+
() => import("./GovernanceContractMigrateFlowDetail-W2DEBKKU.js").then((module) => ({ default: module.GovernanceContractMigrateFlowDetail }))
|
|
20073
20140
|
);
|
|
20074
20141
|
registerActionTypeUI("qi/governance.contract.migrate", {
|
|
20075
20142
|
label: "Migrate Contract",
|
|
@@ -20085,7 +20152,7 @@ registerActionTypeUI("qi/governance.contract.migrate", {
|
|
|
20085
20152
|
// src/mantine/blocks/action/actionTypes/governance/contractUpdateAdmin/index.ts
|
|
20086
20153
|
import { IconUserShield } from "@tabler/icons-react";
|
|
20087
20154
|
var GovernanceContractUpdateAdminFlowDetail = lazyActionComponent(
|
|
20088
|
-
() => import("./GovernanceContractUpdateAdminFlowDetail-
|
|
20155
|
+
() => import("./GovernanceContractUpdateAdminFlowDetail-VZ6245TK.js").then((module) => ({ default: module.GovernanceContractUpdateAdminFlowDetail }))
|
|
20089
20156
|
);
|
|
20090
20157
|
registerActionTypeUI("qi/governance.contract.update-admin", {
|
|
20091
20158
|
label: "Update Contract Admin",
|
|
@@ -20101,7 +20168,7 @@ registerActionTypeUI("qi/governance.contract.update-admin", {
|
|
|
20101
20168
|
// src/mantine/blocks/action/actionTypes/governance/contractManageCw20/index.ts
|
|
20102
20169
|
import { IconCoinBitcoin } from "@tabler/icons-react";
|
|
20103
20170
|
var GovernanceContractManageCw20FlowDetail = lazyActionComponent(
|
|
20104
|
-
() => import("./GovernanceContractManageCw20FlowDetail-
|
|
20171
|
+
() => import("./GovernanceContractManageCw20FlowDetail-5QI3FBNT.js").then((module) => ({ default: module.GovernanceContractManageCw20FlowDetail }))
|
|
20105
20172
|
);
|
|
20106
20173
|
registerActionTypeUI("qi/governance.contract.manage-cw20", {
|
|
20107
20174
|
label: "Manage Token List",
|
|
@@ -20117,7 +20184,7 @@ registerActionTypeUI("qi/governance.contract.manage-cw20", {
|
|
|
20117
20184
|
// src/mantine/blocks/action/actionTypes/governance/validatorActions/index.ts
|
|
20118
20185
|
import { IconServerBolt } from "@tabler/icons-react";
|
|
20119
20186
|
var GovernanceValidatorActionsFlowDetail = lazyActionComponent(
|
|
20120
|
-
() => import("./GovernanceValidatorActionsFlowDetail-
|
|
20187
|
+
() => import("./GovernanceValidatorActionsFlowDetail-3YSPIIVG.js").then((module) => ({ default: module.GovernanceValidatorActionsFlowDetail }))
|
|
20121
20188
|
);
|
|
20122
20189
|
registerActionTypeUI("qi/governance.validator.actions", {
|
|
20123
20190
|
label: "Validator Actions",
|
|
@@ -20133,7 +20200,7 @@ registerActionTypeUI("qi/governance.validator.actions", {
|
|
|
20133
20200
|
// src/mantine/blocks/action/actionTypes/governance/customMessage/index.ts
|
|
20134
20201
|
import { IconCode as IconCode3 } from "@tabler/icons-react";
|
|
20135
20202
|
var GovernanceCustomMessageFlowDetail = lazyActionComponent(
|
|
20136
|
-
() => import("./GovernanceCustomMessageFlowDetail-
|
|
20203
|
+
() => import("./GovernanceCustomMessageFlowDetail-NNTHVM5D.js").then((module) => ({ default: module.GovernanceCustomMessageFlowDetail }))
|
|
20137
20204
|
);
|
|
20138
20205
|
registerActionTypeUI("qi/governance.custom-message", {
|
|
20139
20206
|
label: "Custom Message",
|
|
@@ -20148,8 +20215,8 @@ registerActionTypeUI("qi/governance.custom-message", {
|
|
|
20148
20215
|
|
|
20149
20216
|
// src/mantine/blocks/action/actionTypes/httpRequest/index.ts
|
|
20150
20217
|
import { IconWorld as IconWorld2 } from "@tabler/icons-react";
|
|
20151
|
-
var HttpRequestConfig = lazyActionComponent(() => import("./HttpRequestConfig-
|
|
20152
|
-
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 })));
|
|
20153
20220
|
registerActionTypeUI("qi/http.request", {
|
|
20154
20221
|
label: "HTTP Request",
|
|
20155
20222
|
description: "Make an HTTP API request",
|
|
@@ -20160,7 +20227,7 @@ registerActionTypeUI("qi/http.request", {
|
|
|
20160
20227
|
|
|
20161
20228
|
// src/mantine/blocks/action/actionTypes/emailSend/index.ts
|
|
20162
20229
|
import { IconMail as IconMail6 } from "@tabler/icons-react";
|
|
20163
|
-
var EmailSendConfig = lazyActionComponent(() => import("./EmailSendConfig-
|
|
20230
|
+
var EmailSendConfig = lazyActionComponent(() => import("./EmailSendConfig-O3XDS5IE.js").then((module) => ({ default: module.EmailSendConfig })));
|
|
20164
20231
|
registerActionTypeUI("qi/email.send", {
|
|
20165
20232
|
label: "Email",
|
|
20166
20233
|
description: "Send an email to a user",
|
|
@@ -20170,8 +20237,8 @@ registerActionTypeUI("qi/email.send", {
|
|
|
20170
20237
|
|
|
20171
20238
|
// src/mantine/blocks/action/actionTypes/bid/index.ts
|
|
20172
20239
|
import { IconBriefcase as IconBriefcase2 } from "@tabler/icons-react";
|
|
20173
|
-
var BidConfig = lazyActionComponent(() => import("./BidConfig-
|
|
20174
|
-
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 })));
|
|
20175
20242
|
registerActionTypeUI("qi/bid.submit", {
|
|
20176
20243
|
label: "Bid",
|
|
20177
20244
|
description: "Submit a bid application",
|
|
@@ -20183,8 +20250,8 @@ registerActionTypeUI("qi/bid.submit", {
|
|
|
20183
20250
|
|
|
20184
20251
|
// src/mantine/blocks/action/actionTypes/evaluateBid/index.ts
|
|
20185
20252
|
import { IconScale as IconScale2 } from "@tabler/icons-react";
|
|
20186
|
-
var EvaluateBidConfig = lazyActionComponent(() => import("./EvaluateBidConfig-
|
|
20187
|
-
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 })));
|
|
20188
20255
|
registerActionTypeUI("qi/bid.evaluate", {
|
|
20189
20256
|
label: "Evaluate Bid",
|
|
20190
20257
|
description: "Approve or reject a bid",
|
|
@@ -20196,8 +20263,8 @@ registerActionTypeUI("qi/bid.evaluate", {
|
|
|
20196
20263
|
|
|
20197
20264
|
// src/mantine/blocks/action/actionTypes/claim/index.ts
|
|
20198
20265
|
import { IconFileText as IconFileText5 } from "@tabler/icons-react";
|
|
20199
|
-
var ClaimConfig = lazyActionComponent(() => import("./ClaimConfig-
|
|
20200
|
-
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 })));
|
|
20201
20268
|
registerActionTypeUI("qi/claim.submit", {
|
|
20202
20269
|
label: "Claim",
|
|
20203
20270
|
description: "Submit a claim",
|
|
@@ -20209,8 +20276,8 @@ registerActionTypeUI("qi/claim.submit", {
|
|
|
20209
20276
|
|
|
20210
20277
|
// src/mantine/blocks/action/actionTypes/collection/index.ts
|
|
20211
20278
|
import { IconFolders } from "@tabler/icons-react";
|
|
20212
|
-
var CollectionLifecycleConfig = lazyActionComponent(() => import("./CollectionLifecycleConfig-
|
|
20213
|
-
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 })));
|
|
20214
20281
|
registerActionTypeUI("qi/collection.lifecycle", {
|
|
20215
20282
|
label: "Claim Collection",
|
|
20216
20283
|
description: "Create and manage a claim collection lifecycle",
|
|
@@ -20222,8 +20289,8 @@ registerActionTypeUI("qi/collection.lifecycle", {
|
|
|
20222
20289
|
|
|
20223
20290
|
// src/mantine/blocks/action/actionTypes/collectionUsers/index.ts
|
|
20224
20291
|
import { IconUsers as IconUsers6 } from "@tabler/icons-react";
|
|
20225
|
-
var CollectionUsersConfig = lazyActionComponent(() => import("./CollectionUsersConfig-
|
|
20226
|
-
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 })));
|
|
20227
20294
|
registerActionTypeUI("qi/collection.users", {
|
|
20228
20295
|
label: "Collection Users",
|
|
20229
20296
|
description: "Add, list and revoke claim collection contributors & evaluators",
|
|
@@ -20245,8 +20312,8 @@ registerActionTypeUI("qi/collection.users", {
|
|
|
20245
20312
|
|
|
20246
20313
|
// src/mantine/blocks/action/actionTypes/evalEngine/index.ts
|
|
20247
20314
|
import { IconClipboardCheck as IconClipboardCheck2 } from "@tabler/icons-react";
|
|
20248
|
-
var EvalEngineConfig = lazyActionComponent(() => import("./EvalEngineConfig-
|
|
20249
|
-
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 })));
|
|
20250
20317
|
registerActionTypeUI(EVAL_ENGINE_ACTION_TYPE, {
|
|
20251
20318
|
label: "Evaluation Engine",
|
|
20252
20319
|
description: "Enroll a collection and publish its claim-approval rules in one step",
|
|
@@ -20260,8 +20327,8 @@ registerActionTypeUI(EVAL_ENGINE_ACTION_TYPE, {
|
|
|
20260
20327
|
|
|
20261
20328
|
// src/mantine/blocks/action/actionTypes/evaluateClaim/index.ts
|
|
20262
20329
|
import { IconChecks as IconChecks4 } from "@tabler/icons-react";
|
|
20263
|
-
var EvaluateClaimConfig = lazyActionComponent(() => import("./EvaluateClaimConfig-
|
|
20264
|
-
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 })));
|
|
20265
20332
|
registerActionTypeUI("qi/claim.evaluate", {
|
|
20266
20333
|
label: "Evaluate Claim",
|
|
20267
20334
|
description: "Approve or reject a claim",
|
|
@@ -20273,8 +20340,8 @@ registerActionTypeUI("qi/claim.evaluate", {
|
|
|
20273
20340
|
|
|
20274
20341
|
// src/mantine/blocks/action/actionTypes/proposalCreate/index.ts
|
|
20275
20342
|
import { IconFileText as IconFileText6 } from "@tabler/icons-react";
|
|
20276
|
-
var ProposalCreateConfig = lazyActionComponent(() => import("./ProposalCreateConfig-
|
|
20277
|
-
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 })));
|
|
20278
20345
|
registerActionTypeUI("qi/proposal.create", {
|
|
20279
20346
|
label: "Create Proposal",
|
|
20280
20347
|
description: "Create an on-chain governance proposal",
|
|
@@ -20285,8 +20352,8 @@ registerActionTypeUI("qi/proposal.create", {
|
|
|
20285
20352
|
|
|
20286
20353
|
// src/mantine/blocks/action/actionTypes/proposalVote/index.ts
|
|
20287
20354
|
import { IconThumbUp as IconThumbUp2 } from "@tabler/icons-react";
|
|
20288
|
-
var ProposalVoteConfig = lazyActionComponent(() => import("./ProposalVoteConfig-
|
|
20289
|
-
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 })));
|
|
20290
20357
|
registerActionTypeUI("qi/proposal.vote", {
|
|
20291
20358
|
label: "Vote on Proposal",
|
|
20292
20359
|
description: "Cast a vote on a governance proposal",
|
|
@@ -20298,7 +20365,7 @@ registerActionTypeUI("qi/proposal.vote", {
|
|
|
20298
20365
|
// src/mantine/blocks/action/actionTypes/protocolSelect/index.ts
|
|
20299
20366
|
import { IconBolt as IconBolt10 } from "@tabler/icons-react";
|
|
20300
20367
|
var ProtocolSelectConfig = lazyActionComponent(() => import("./ProtocolSelectConfig-S5U3P6K7.js").then((module) => ({ default: module.ProtocolSelectConfig })));
|
|
20301
|
-
var ProtocolSelectFlowDetail = lazyActionComponent(() => import("./ProtocolSelectFlowDetail-
|
|
20368
|
+
var ProtocolSelectFlowDetail = lazyActionComponent(() => import("./ProtocolSelectFlowDetail-IKYJQZAO.js").then((module) => ({ default: module.ProtocolSelectFlowDetail })));
|
|
20302
20369
|
registerActionTypeUI("qi/protocol.select", {
|
|
20303
20370
|
label: "Select Protocol",
|
|
20304
20371
|
description: "Select a protocol from a configured list",
|
|
@@ -20310,7 +20377,7 @@ registerActionTypeUI("qi/protocol.select", {
|
|
|
20310
20377
|
// src/mantine/blocks/action/actionTypes/domainSign/index.ts
|
|
20311
20378
|
import { IconSignature as IconSignature3 } from "@tabler/icons-react";
|
|
20312
20379
|
var DomainSignConfig = lazyActionComponent(() => import("./DomainSignConfig-XFIXROVK.js").then((module) => ({ default: module.DomainSignConfig })));
|
|
20313
|
-
var DomainSignFlowDetail = lazyActionComponent(() => import("./DomainSignFlowDetail-
|
|
20380
|
+
var DomainSignFlowDetail = lazyActionComponent(() => import("./DomainSignFlowDetail-5ERYSTPG.js").then((module) => ({ default: module.DomainSignFlowDetail })));
|
|
20314
20381
|
registerActionTypeUI("qi/domain.sign", {
|
|
20315
20382
|
label: "Sign Domain",
|
|
20316
20383
|
description: "Sign the domain card credential and create the entity on-chain",
|
|
@@ -20322,7 +20389,7 @@ registerActionTypeUI("qi/domain.sign", {
|
|
|
20322
20389
|
// src/mantine/blocks/action/actionTypes/domainCardPreview/index.ts
|
|
20323
20390
|
import { IconBuildingEstate as IconBuildingEstate2 } from "@tabler/icons-react";
|
|
20324
20391
|
var DomainCardPreviewConfig = lazyActionComponent(() => import("./DomainCardPreviewConfig-Q3X5M4WF.js").then((module) => ({ default: module.DomainCardPreviewConfig })));
|
|
20325
|
-
var DomainCardPreviewFlowDetail = lazyActionComponent(() => import("./DomainCardPreviewFlowDetail-
|
|
20392
|
+
var DomainCardPreviewFlowDetail = lazyActionComponent(() => import("./DomainCardPreviewFlowDetail-M7FPXS4N.js").then((module) => ({ default: module.DomainCardPreviewFlowDetail })));
|
|
20326
20393
|
registerActionTypeUI("qi/domain.card-preview", {
|
|
20327
20394
|
label: "Preview Domain Card",
|
|
20328
20395
|
description: "Review an oracle-enriched domain card and approve it before signing",
|
|
@@ -20333,8 +20400,8 @@ registerActionTypeUI("qi/domain.card-preview", {
|
|
|
20333
20400
|
|
|
20334
20401
|
// src/mantine/blocks/action/actionTypes/oracle/index.ts
|
|
20335
20402
|
import { IconSparkles as IconSparkles6 } from "@tabler/icons-react";
|
|
20336
|
-
var OracleConfig = lazyActionComponent(() => import("./OracleConfig-
|
|
20337
|
-
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 })));
|
|
20338
20405
|
registerActionTypeUI("oracle", {
|
|
20339
20406
|
label: "Ask your Agent",
|
|
20340
20407
|
description: "Send a prompt to the Personal Agent",
|
|
@@ -20346,7 +20413,7 @@ registerActionTypeUI("oracle", {
|
|
|
20346
20413
|
// src/mantine/blocks/action/actionTypes/oraclePrompt/index.ts
|
|
20347
20414
|
import { IconMessage } from "@tabler/icons-react";
|
|
20348
20415
|
var OraclePromptConfig = lazyActionComponent(() => import("./OraclePromptConfig-YBRESISH.js").then((module) => ({ default: module.OraclePromptConfig })));
|
|
20349
|
-
var OraclePromptFlowDetail = lazyActionComponent(() => import("./OraclePromptFlowDetail-
|
|
20416
|
+
var OraclePromptFlowDetail = lazyActionComponent(() => import("./OraclePromptFlowDetail-2B55RVOO.js").then((module) => ({ default: module.OraclePromptFlowDetail })));
|
|
20350
20417
|
registerActionTypeUI("oracle.prompt", {
|
|
20351
20418
|
label: "Oracle Prompt",
|
|
20352
20419
|
description: "Send a prompt to the Personal Agent",
|
|
@@ -20358,7 +20425,7 @@ registerActionTypeUI("oracle.prompt", {
|
|
|
20358
20425
|
// src/mantine/blocks/action/actionTypes/formSubmit/index.ts
|
|
20359
20426
|
import { IconClipboard, IconClipboardCheck as IconClipboardCheck3 } from "@tabler/icons-react";
|
|
20360
20427
|
var FormSubmitConfig = lazyActionComponent(() => import("./FormSubmitConfig-UFZYMLUN.js").then((module) => ({ default: module.FormSubmitConfig })));
|
|
20361
|
-
var FormSubmitFlowDetail = lazyActionComponent(() => import("./FormSubmitFlowDetail-
|
|
20428
|
+
var FormSubmitFlowDetail = lazyActionComponent(() => import("./FormSubmitFlowDetail-CVSUWEAW.js").then((module) => ({ default: module.FormSubmitFlowDetail })));
|
|
20362
20429
|
registerActionTypeUI("qi/form.submit", {
|
|
20363
20430
|
label: "Form Submit",
|
|
20364
20431
|
description: "Submit a form response",
|
|
@@ -20376,8 +20443,8 @@ registerActionTypeUI("qi/human.form.submit", {
|
|
|
20376
20443
|
|
|
20377
20444
|
// src/mantine/blocks/action/actionTypes/credentialStore/index.ts
|
|
20378
20445
|
import { IconShieldCheck as IconShieldCheck14 } from "@tabler/icons-react";
|
|
20379
|
-
var CredentialStoreConfig = lazyActionComponent(() => import("./CredentialStoreConfig-
|
|
20380
|
-
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 })));
|
|
20381
20448
|
registerActionTypeUI("qi/credential.store", {
|
|
20382
20449
|
label: "Store Credential",
|
|
20383
20450
|
description: "Store a verifiable credential in Matrix room state",
|
|
@@ -20388,7 +20455,7 @@ registerActionTypeUI("qi/credential.store", {
|
|
|
20388
20455
|
|
|
20389
20456
|
// src/mantine/blocks/action/actionTypes/matrixDm/index.ts
|
|
20390
20457
|
import { IconMessageCircle } from "@tabler/icons-react";
|
|
20391
|
-
var MatrixDmConfig = lazyActionComponent(() => import("./MatrixDmConfig-
|
|
20458
|
+
var MatrixDmConfig = lazyActionComponent(() => import("./MatrixDmConfig-DRY27FAM.js").then((module) => ({ default: module.MatrixDmConfig })));
|
|
20392
20459
|
registerActionTypeUI("qi/matrix.dm", {
|
|
20393
20460
|
label: "Matrix DM",
|
|
20394
20461
|
description: "Send a direct message via Matrix",
|
|
@@ -20398,8 +20465,8 @@ registerActionTypeUI("qi/matrix.dm", {
|
|
|
20398
20465
|
|
|
20399
20466
|
// src/mantine/blocks/action/actionTypes/calendar/eventCreate/index.ts
|
|
20400
20467
|
import { IconCalendarPlus } from "@tabler/icons-react";
|
|
20401
|
-
var CalendarEventCreateConfig = lazyActionComponent(() => import("./CalendarEventCreateConfig-
|
|
20402
|
-
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 })));
|
|
20403
20470
|
registerActionTypeUI("qi/googlecalendar.event.create-self", {
|
|
20404
20471
|
label: "Create Calendar event",
|
|
20405
20472
|
description: "Create an event on a connected Calendar",
|
|
@@ -20411,8 +20478,8 @@ registerActionTypeUI("qi/googlecalendar.event.create-self", {
|
|
|
20411
20478
|
|
|
20412
20479
|
// src/mantine/blocks/action/actionTypes/calendar/eventUpdate/index.ts
|
|
20413
20480
|
import { IconCalendarEvent } from "@tabler/icons-react";
|
|
20414
|
-
var CalendarEventUpdateConfig = lazyActionComponent(() => import("./CalendarEventUpdateConfig-
|
|
20415
|
-
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 })));
|
|
20416
20483
|
registerActionTypeUI("qi/googlecalendar.event.update-self", {
|
|
20417
20484
|
label: "Update Calendar event",
|
|
20418
20485
|
description: "Replace an existing Calendar event",
|
|
@@ -20424,8 +20491,8 @@ registerActionTypeUI("qi/googlecalendar.event.update-self", {
|
|
|
20424
20491
|
|
|
20425
20492
|
// src/mantine/blocks/action/actionTypes/calendar/eventList/index.ts
|
|
20426
20493
|
import { IconCalendarStats } from "@tabler/icons-react";
|
|
20427
|
-
var CalendarEventListConfig = lazyActionComponent(() => import("./CalendarEventListConfig-
|
|
20428
|
-
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 })));
|
|
20429
20496
|
registerActionTypeUI("qi/googlecalendar.event.list-self", {
|
|
20430
20497
|
label: "List Calendar events",
|
|
20431
20498
|
description: "Fetch events from a connected Calendar",
|
|
@@ -20437,8 +20504,8 @@ registerActionTypeUI("qi/googlecalendar.event.list-self", {
|
|
|
20437
20504
|
|
|
20438
20505
|
// src/mantine/blocks/action/actionTypes/xero/contactCreate/index.ts
|
|
20439
20506
|
import { IconUserPlus as IconUserPlus3 } from "@tabler/icons-react";
|
|
20440
|
-
var XeroContactCreateConfig = lazyActionComponent(() => import("./XeroContactCreateConfig-
|
|
20441
|
-
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 })));
|
|
20442
20509
|
registerActionTypeUI("qi/xero.contact.create", {
|
|
20443
20510
|
label: "Create Xero contact",
|
|
20444
20511
|
description: "Add a customer or supplier in Xero",
|
|
@@ -20450,8 +20517,8 @@ registerActionTypeUI("qi/xero.contact.create", {
|
|
|
20450
20517
|
|
|
20451
20518
|
// src/mantine/blocks/action/actionTypes/xero/invoiceCreate/index.ts
|
|
20452
20519
|
import { IconReceipt } from "@tabler/icons-react";
|
|
20453
|
-
var XeroInvoiceCreateConfig = lazyActionComponent(() => import("./XeroInvoiceCreateConfig-
|
|
20454
|
-
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 })));
|
|
20455
20522
|
registerActionTypeUI("qi/xero.invoice.create", {
|
|
20456
20523
|
label: "Create Xero invoice",
|
|
20457
20524
|
description: "Draft a new Xero invoice",
|
|
@@ -20463,8 +20530,8 @@ registerActionTypeUI("qi/xero.invoice.create", {
|
|
|
20463
20530
|
|
|
20464
20531
|
// src/mantine/blocks/action/actionTypes/xero/invoiceList/index.ts
|
|
20465
20532
|
import { IconListDetails } from "@tabler/icons-react";
|
|
20466
|
-
var XeroInvoiceListConfig = lazyActionComponent(() => import("./XeroInvoiceListConfig-
|
|
20467
|
-
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 })));
|
|
20468
20535
|
registerActionTypeUI("qi/xero.invoice.list", {
|
|
20469
20536
|
label: "List Xero invoices",
|
|
20470
20537
|
description: "Fetch invoices from Xero",
|
|
@@ -20476,8 +20543,8 @@ registerActionTypeUI("qi/xero.invoice.list", {
|
|
|
20476
20543
|
|
|
20477
20544
|
// src/mantine/blocks/action/actionTypes/xero/paymentCreate/index.ts
|
|
20478
20545
|
import { IconReceipt as IconReceipt2 } from "@tabler/icons-react";
|
|
20479
|
-
var XeroPaymentCreateConfig = lazyActionComponent(() => import("./XeroPaymentCreateConfig-
|
|
20480
|
-
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 })));
|
|
20481
20548
|
registerActionTypeUI("qi/xero.payment.create", {
|
|
20482
20549
|
label: "Record Xero payment",
|
|
20483
20550
|
description: "Settle a Xero bill \u2014 typically wired to capture an on-chain tx hash as the reference",
|
|
@@ -20492,24 +20559,24 @@ import { IconBrandGmail } from "@tabler/icons-react";
|
|
|
20492
20559
|
import { createElement } from "react";
|
|
20493
20560
|
|
|
20494
20561
|
// src/mantine/blocks/action/actionTypes/_shared/DelegatedActionConfig.tsx
|
|
20495
|
-
import React197, { useCallback as
|
|
20562
|
+
import React197, { useCallback as useCallback72, useEffect as useEffect70, useState as useState82 } from "react";
|
|
20496
20563
|
import { Divider as Divider19, Stack as Stack127 } from "@mantine/core";
|
|
20497
20564
|
|
|
20498
20565
|
// src/mantine/blocks/action/actionTypes/_shared/BoundConnectionSelector.tsx
|
|
20499
|
-
import React195, { useCallback as
|
|
20566
|
+
import React195, { useCallback as useCallback71, useEffect as useEffect69, useRef as useRef21, useState as useState80 } from "react";
|
|
20500
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";
|
|
20501
20568
|
import { IconCheck as IconCheck16, IconPlug, IconRefresh as IconRefresh6, IconTrash as IconTrash9 } from "@tabler/icons-react";
|
|
20502
20569
|
var POLL_INTERVAL_MS = 2e3;
|
|
20503
20570
|
var CONNECT_TIMEOUT_MS = 12e4;
|
|
20504
20571
|
var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection, onConnectionChange, mode, disabled }) => {
|
|
20505
20572
|
const handlers = useBlocknoteHandlers();
|
|
20506
|
-
const [manifest, setManifest] =
|
|
20507
|
-
const [loading, setLoading] =
|
|
20508
|
-
const [connecting, setConnecting] =
|
|
20509
|
-
const [binding, setBinding] =
|
|
20510
|
-
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);
|
|
20511
20578
|
const cleanupRef = useRef21(null);
|
|
20512
|
-
const loadManifest =
|
|
20579
|
+
const loadManifest = useCallback71(async () => {
|
|
20513
20580
|
if (mode !== "template") return;
|
|
20514
20581
|
if (!handlers?.integrations?.getIntegration) {
|
|
20515
20582
|
setError(`${toolkitLabel} integration is not configured.`);
|
|
@@ -20531,7 +20598,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
|
|
|
20531
20598
|
void loadManifest();
|
|
20532
20599
|
}, [loadManifest]);
|
|
20533
20600
|
useEffect69(() => () => cleanupRef.current?.(), []);
|
|
20534
|
-
const handleConnect =
|
|
20601
|
+
const handleConnect = useCallback71(async () => {
|
|
20535
20602
|
if (!handlers?.integrations?.startConnection) {
|
|
20536
20603
|
setError(`${toolkitLabel} integration is not configured.`);
|
|
20537
20604
|
return;
|
|
@@ -20613,7 +20680,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
|
|
|
20613
20680
|
setError(err instanceof Error ? err.message : `Failed to start ${toolkitLabel} connection`);
|
|
20614
20681
|
}
|
|
20615
20682
|
}, [handlers, toolkit, toolkitLabel, loadManifest]);
|
|
20616
|
-
const handleBind =
|
|
20683
|
+
const handleBind = useCallback71(async () => {
|
|
20617
20684
|
if (!handlers?.integrations?.bindIntegration) {
|
|
20618
20685
|
setError(`${toolkitLabel} binding is not configured.`);
|
|
20619
20686
|
return;
|
|
@@ -20643,7 +20710,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
|
|
|
20643
20710
|
setBinding(false);
|
|
20644
20711
|
}
|
|
20645
20712
|
}, [handlers, manifest, templateId, toolkit, toolkitLabel, onConnectionChange]);
|
|
20646
|
-
const handleRemove =
|
|
20713
|
+
const handleRemove = useCallback71(async () => {
|
|
20647
20714
|
if (connection?.bindingId && handlers?.integrations?.revokeBinding) {
|
|
20648
20715
|
try {
|
|
20649
20716
|
await handlers.integrations.revokeBinding({ bindingId: connection.bindingId });
|
|
@@ -20671,7 +20738,7 @@ var BoundConnectionSelector = ({ toolkit, toolkitLabel, templateId, connection,
|
|
|
20671
20738
|
};
|
|
20672
20739
|
|
|
20673
20740
|
// src/mantine/blocks/action/actionTypes/_shared/DynamicToolForm.tsx
|
|
20674
|
-
import React196, { useMemo as useMemo87, useState as
|
|
20741
|
+
import React196, { useMemo as useMemo87, useState as useState81 } from "react";
|
|
20675
20742
|
import { Button as Button36, Collapse as Collapse7, Stack as Stack126 } from "@mantine/core";
|
|
20676
20743
|
import { IconChevronDown as IconChevronDown7, IconChevronRight as IconChevronRight10 } from "@tabler/icons-react";
|
|
20677
20744
|
var ALWAYS_EXCLUDE = /* @__PURE__ */ new Set(["user_id", "connected_account_id"]);
|
|
@@ -20698,7 +20765,7 @@ var DynamicToolForm = ({ schema, values, onChange, editorDocument, blockId, read
|
|
|
20698
20765
|
}
|
|
20699
20766
|
return { required: req, optional: opt };
|
|
20700
20767
|
}, [schema, exclude]);
|
|
20701
|
-
const [showOptional, setShowOptional] =
|
|
20768
|
+
const [showOptional, setShowOptional] = useState81(false);
|
|
20702
20769
|
const renderField = (field) => {
|
|
20703
20770
|
if (field.type === "boolean") {
|
|
20704
20771
|
return /* @__PURE__ */ React196.createElement(
|
|
@@ -20754,11 +20821,11 @@ var DynamicToolForm = ({ schema, values, onChange, editorDocument, blockId, read
|
|
|
20754
20821
|
|
|
20755
20822
|
// src/mantine/blocks/action/actionTypes/_shared/DelegatedActionConfig.tsx
|
|
20756
20823
|
var DelegatedActionConfig = ({ inputs, onInputsChange, editor, blockId, toolkit, toolkitLabel, schema }) => {
|
|
20757
|
-
const [local, setLocal] =
|
|
20824
|
+
const [local, setLocal] = useState82(() => parseDelegatedToolInputs(inputs));
|
|
20758
20825
|
useEffect70(() => {
|
|
20759
20826
|
setLocal(parseDelegatedToolInputs(inputs));
|
|
20760
20827
|
}, [inputs]);
|
|
20761
|
-
const update =
|
|
20828
|
+
const update = useCallback72(
|
|
20762
20829
|
(patch) => {
|
|
20763
20830
|
const updated = { ...local, ...patch };
|
|
20764
20831
|
setLocal(updated);
|
|
@@ -20782,7 +20849,7 @@ var DelegatedActionConfig = ({ inputs, onInputsChange, editor, blockId, toolkit,
|
|
|
20782
20849
|
};
|
|
20783
20850
|
|
|
20784
20851
|
// src/mantine/blocks/action/actionTypes/_shared/DelegatedActionFlowDetail.tsx
|
|
20785
|
-
import React198, { useCallback as
|
|
20852
|
+
import React198, { useCallback as useCallback73, useEffect as useEffect71, useMemo as useMemo88, useRef as useRef22, useState as useState83 } from "react";
|
|
20786
20853
|
import { Button as Button37, Loader as Loader34, Stack as Stack128, Text as Text125 } from "@mantine/core";
|
|
20787
20854
|
import { IconSend as IconSend6 } from "@tabler/icons-react";
|
|
20788
20855
|
var DelegatedActionFlowDetail = ({
|
|
@@ -20805,7 +20872,7 @@ var DelegatedActionFlowDetail = ({
|
|
|
20805
20872
|
const runtimeReader = useRunRuntimeReader(editor);
|
|
20806
20873
|
const resolveOpts = useMemo88(() => ({ yRuntime: runtimeReader }), [runtimeReader]);
|
|
20807
20874
|
const fieldNames = useMemo88(() => Object.keys(schema.parameters.properties || {}), [schema]);
|
|
20808
|
-
const resolve =
|
|
20875
|
+
const resolve = useCallback73(
|
|
20809
20876
|
(name) => {
|
|
20810
20877
|
const v = parsed[name];
|
|
20811
20878
|
if (isRuntimeRef(v)) return resolveReferences(`{{${v.$ref}}}`, editorDocument, resolveOpts);
|
|
@@ -20814,7 +20881,7 @@ var DelegatedActionFlowDetail = ({
|
|
|
20814
20881
|
},
|
|
20815
20882
|
[parsed, editorDocument, resolveOpts]
|
|
20816
20883
|
);
|
|
20817
|
-
const [local, setLocal] =
|
|
20884
|
+
const [local, setLocal] = useState83(() => {
|
|
20818
20885
|
const seed = {};
|
|
20819
20886
|
for (const name of fieldNames) seed[name] = resolve(name);
|
|
20820
20887
|
return seed;
|
|
@@ -20826,7 +20893,7 @@ var DelegatedActionFlowDetail = ({
|
|
|
20826
20893
|
return next;
|
|
20827
20894
|
});
|
|
20828
20895
|
}, [resolve, fieldNames]);
|
|
20829
|
-
const update =
|
|
20896
|
+
const update = useCallback73((field, value) => {
|
|
20830
20897
|
setLocal((prev) => ({ ...prev, [field]: value }));
|
|
20831
20898
|
}, []);
|
|
20832
20899
|
useEffect71(() => {
|
|
@@ -20837,9 +20904,9 @@ var DelegatedActionFlowDetail = ({
|
|
|
20837
20904
|
const isCompleted = runtime.state === "completed";
|
|
20838
20905
|
const missing = useMemo88(() => missingRequired(schema, local), [schema, local]);
|
|
20839
20906
|
const canRun = hasBinding && missing.length === 0 && !isCompleted && !isDisabled;
|
|
20840
|
-
const [error, setError] =
|
|
20841
|
-
const [submitting, setSubmitting] =
|
|
20842
|
-
const run =
|
|
20907
|
+
const [error, setError] = useState83(null);
|
|
20908
|
+
const [submitting, setSubmitting] = useState83(false);
|
|
20909
|
+
const run = useCallback73(
|
|
20843
20910
|
async (pendingInvocationId) => {
|
|
20844
20911
|
if (!executeAction) {
|
|
20845
20912
|
setError("Shared action executor is unavailable");
|
|
@@ -20932,7 +20999,7 @@ registerActionTypeUI("qi/googlecalendar.event.create", {
|
|
|
20932
20999
|
// src/mantine/blocks/action/actionTypes/carbon/loadBatches/index.ts
|
|
20933
21000
|
import { IconLeaf as IconLeaf3 } from "@tabler/icons-react";
|
|
20934
21001
|
var LoadBatchesConfig = lazyActionComponent(() => import("./LoadBatchesConfig-IMODIWRT.js").then((module) => ({ default: module.LoadBatchesConfig })));
|
|
20935
|
-
var LoadBatchesFlowDetail = lazyActionComponent(() => import("./LoadBatchesFlowDetail-
|
|
21002
|
+
var LoadBatchesFlowDetail = lazyActionComponent(() => import("./LoadBatchesFlowDetail-TL4TQDZ5.js").then((module) => ({ default: module.LoadBatchesFlowDetail })));
|
|
20936
21003
|
registerActionTypeUI("qi/carbon.loadBatches", {
|
|
20937
21004
|
label: "Load Carbon Batches",
|
|
20938
21005
|
description: "Reconcile harvestable and retireable CARBON credits",
|
|
@@ -20943,8 +21010,8 @@ registerActionTypeUI("qi/carbon.loadBatches", {
|
|
|
20943
21010
|
|
|
20944
21011
|
// src/mantine/blocks/action/actionTypes/carbon/harvest/index.ts
|
|
20945
21012
|
import { IconLeaf as IconLeaf4 } from "@tabler/icons-react";
|
|
20946
|
-
var HarvestConfig = lazyActionComponent(() => import("./HarvestConfig-
|
|
20947
|
-
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 })));
|
|
20948
21015
|
registerActionTypeUI("qi/carbon.harvest", {
|
|
20949
21016
|
label: "Harvest Carbon",
|
|
20950
21017
|
description: "Claim carbon credits into your wallet",
|
|
@@ -20956,8 +21023,8 @@ registerActionTypeUI("qi/carbon.harvest", {
|
|
|
20956
21023
|
|
|
20957
21024
|
// src/mantine/blocks/action/actionTypes/carbon/retire/index.ts
|
|
20958
21025
|
import { IconFlame as IconFlame2 } from "@tabler/icons-react";
|
|
20959
|
-
var RetireConfig = lazyActionComponent(() => import("./RetireConfig-
|
|
20960
|
-
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 })));
|
|
20961
21028
|
registerActionTypeUI("qi/carbon.retire", {
|
|
20962
21029
|
label: "Retire Carbon",
|
|
20963
21030
|
description: "Permanently retire carbon credits to offset impact",
|
|
@@ -20970,7 +21037,7 @@ registerActionTypeUI("qi/carbon.retire", {
|
|
|
20970
21037
|
// src/mantine/blocks/action/actionTypes/entityTransfer/index.ts
|
|
20971
21038
|
import { IconTransfer } from "@tabler/icons-react";
|
|
20972
21039
|
var EntityTransferConfig = lazyActionComponent(() => import("./EntityTransferConfig-JVZ3H35B.js").then((module) => ({ default: module.EntityTransferConfig })));
|
|
20973
|
-
var EntityTransferFlowDetail = lazyActionComponent(() => import("./EntityTransferFlowDetail-
|
|
21040
|
+
var EntityTransferFlowDetail = lazyActionComponent(() => import("./EntityTransferFlowDetail-DY2UZ5VA.js").then((module) => ({ default: module.EntityTransferFlowDetail })));
|
|
20974
21041
|
registerActionTypeUI("qi/entity.transfer", {
|
|
20975
21042
|
label: "Transfer Entity",
|
|
20976
21043
|
description: "Transfer ownership of an entity to a new owner",
|
|
@@ -20982,8 +21049,8 @@ registerActionTypeUI("qi/entity.transfer", {
|
|
|
20982
21049
|
|
|
20983
21050
|
// src/mantine/blocks/action/actionTypes/kycVerify/index.ts
|
|
20984
21051
|
import { IconId } from "@tabler/icons-react";
|
|
20985
|
-
var KycVerifyConfig = lazyActionComponent(() => import("./KycVerifyConfig-
|
|
20986
|
-
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 })));
|
|
20987
21054
|
registerActionTypeUI("qi/kyc.verify", {
|
|
20988
21055
|
label: "Identity Verification (KYC)",
|
|
20989
21056
|
description: "Verify your identity and save the issued credential to your Vault",
|
|
@@ -20996,7 +21063,7 @@ registerActionTypeUI("qi/kyc.verify", {
|
|
|
20996
21063
|
// src/mantine/blocks/action/actionTypes/walletGenerate/index.ts
|
|
20997
21064
|
import { IconWallet } from "@tabler/icons-react";
|
|
20998
21065
|
var WalletGenerateConfig = lazyActionComponent(() => import("./WalletGenerateConfig-YYLCS65G.js").then((module) => ({ default: module.WalletGenerateConfig })));
|
|
20999
|
-
var WalletGenerateFlowDetail = lazyActionComponent(() => import("./WalletGenerateFlowDetail-
|
|
21066
|
+
var WalletGenerateFlowDetail = lazyActionComponent(() => import("./WalletGenerateFlowDetail-CBAVDW7Z.js").then((module) => ({ default: module.WalletGenerateFlowDetail })));
|
|
21000
21067
|
registerActionTypeUI("qi/wallet.generate", {
|
|
21001
21068
|
label: "Generate Wallet",
|
|
21002
21069
|
description: "Generate an IXO wallet and DID",
|
|
@@ -21007,8 +21074,8 @@ registerActionTypeUI("qi/wallet.generate", {
|
|
|
21007
21074
|
|
|
21008
21075
|
// src/mantine/blocks/action/actionTypes/walletFund/index.ts
|
|
21009
21076
|
import { IconCoin as IconCoin4 } from "@tabler/icons-react";
|
|
21010
|
-
var WalletFundConfig = lazyActionComponent(() => import("./WalletFundConfig-
|
|
21011
|
-
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 })));
|
|
21012
21079
|
registerActionTypeUI("qi/wallet.fund", {
|
|
21013
21080
|
label: "Fund Wallet",
|
|
21014
21081
|
description: "Fund a wallet with an on-chain transfer",
|
|
@@ -21022,7 +21089,7 @@ registerActionTypeUI("qi/wallet.fund", {
|
|
|
21022
21089
|
import { IconWallet as IconWallet2 } from "@tabler/icons-react";
|
|
21023
21090
|
var WalletGenerateAndFundConfig = lazyActionComponent(() => import("./WalletGenerateAndFundConfig-364RSEND.js").then((module) => ({ default: module.WalletGenerateAndFundConfig })));
|
|
21024
21091
|
var WalletGenerateAndFundFlowDetail = lazyActionComponent(
|
|
21025
|
-
() => import("./WalletGenerateAndFundFlowDetail-
|
|
21092
|
+
() => import("./WalletGenerateAndFundFlowDetail-7LEBWWEA.js").then((module) => ({ default: module.WalletGenerateAndFundFlowDetail }))
|
|
21026
21093
|
);
|
|
21027
21094
|
registerActionTypeUI("qi/wallet.generateAndFund", {
|
|
21028
21095
|
label: "Generate & Fund Wallet",
|
|
@@ -21035,7 +21102,7 @@ registerActionTypeUI("qi/wallet.generateAndFund", {
|
|
|
21035
21102
|
// src/mantine/blocks/action/actionTypes/iidCreate/index.ts
|
|
21036
21103
|
import { IconFingerprint } from "@tabler/icons-react";
|
|
21037
21104
|
var IidCreateConfig = lazyActionComponent(() => import("./IidCreateConfig-RRV2DYXI.js").then((module) => ({ default: module.IidCreateConfig })));
|
|
21038
|
-
var IidCreateFlowDetail = lazyActionComponent(() => import("./IidCreateFlowDetail-
|
|
21105
|
+
var IidCreateFlowDetail = lazyActionComponent(() => import("./IidCreateFlowDetail-INISHT4R.js").then((module) => ({ default: module.IidCreateFlowDetail })));
|
|
21039
21106
|
registerActionTypeUI("qi/iid.create", {
|
|
21040
21107
|
label: "Create IID",
|
|
21041
21108
|
description: "Create an IID document on-chain",
|
|
@@ -21047,7 +21114,7 @@ registerActionTypeUI("qi/iid.create", {
|
|
|
21047
21114
|
// src/mantine/blocks/action/actionTypes/matrixRegister/index.ts
|
|
21048
21115
|
import { IconUserPlus as IconUserPlus4 } from "@tabler/icons-react";
|
|
21049
21116
|
var MatrixRegisterConfig = lazyActionComponent(() => import("./MatrixRegisterConfig-N2U4FBYF.js").then((module) => ({ default: module.MatrixRegisterConfig })));
|
|
21050
|
-
var MatrixRegisterFlowDetail = lazyActionComponent(() => import("./MatrixRegisterFlowDetail-
|
|
21117
|
+
var MatrixRegisterFlowDetail = lazyActionComponent(() => import("./MatrixRegisterFlowDetail-RXHGTTQF.js").then((module) => ({ default: module.MatrixRegisterFlowDetail })));
|
|
21051
21118
|
registerActionTypeUI("qi/matrix.register", {
|
|
21052
21119
|
label: "Register Matrix Account",
|
|
21053
21120
|
description: "Create a Matrix account and access token",
|
|
@@ -21059,7 +21126,7 @@ registerActionTypeUI("qi/matrix.register", {
|
|
|
21059
21126
|
// src/mantine/blocks/action/actionTypes/identityCreate/index.ts
|
|
21060
21127
|
import { IconId as IconId2 } from "@tabler/icons-react";
|
|
21061
21128
|
var IdentityCreateConfig = lazyActionComponent(() => import("./IdentityCreateConfig-ZBUOJ6AL.js").then((module) => ({ default: module.IdentityCreateConfig })));
|
|
21062
|
-
var IdentityCreateFlowDetail = lazyActionComponent(() => import("./IdentityCreateFlowDetail-
|
|
21129
|
+
var IdentityCreateFlowDetail = lazyActionComponent(() => import("./IdentityCreateFlowDetail-DXUI6S4I.js").then((module) => ({ default: module.IdentityCreateFlowDetail })));
|
|
21063
21130
|
registerActionTypeUI("qi/identity.create", {
|
|
21064
21131
|
label: "Create Identity",
|
|
21065
21132
|
description: "Create an IID document and Matrix account for a user",
|
|
@@ -21071,7 +21138,7 @@ registerActionTypeUI("qi/identity.create", {
|
|
|
21071
21138
|
// src/mantine/blocks/action/actionTypes/entityCreateOracle/index.ts
|
|
21072
21139
|
import { IconRobot as IconRobot4 } from "@tabler/icons-react";
|
|
21073
21140
|
var EntityCreateOracleConfig = lazyActionComponent(() => import("./EntityCreateOracleConfig-UZ6ZIMP5.js").then((module) => ({ default: module.EntityCreateOracleConfig })));
|
|
21074
|
-
var EntityCreateOracleFlowDetail = lazyActionComponent(() => import("./EntityCreateOracleFlowDetail-
|
|
21141
|
+
var EntityCreateOracleFlowDetail = lazyActionComponent(() => import("./EntityCreateOracleFlowDetail-6XJ4UEL5.js").then((module) => ({ default: module.EntityCreateOracleFlowDetail })));
|
|
21075
21142
|
registerActionTypeUI("qi/entity.createOracle", {
|
|
21076
21143
|
label: "Create Oracle Entity",
|
|
21077
21144
|
description: "Create the oracle entity on-chain",
|
|
@@ -21083,7 +21150,7 @@ registerActionTypeUI("qi/entity.createOracle", {
|
|
|
21083
21150
|
// src/mantine/blocks/action/actionTypes/sandboxProvision/index.ts
|
|
21084
21151
|
import { IconBox } from "@tabler/icons-react";
|
|
21085
21152
|
var SandboxProvisionConfig = lazyActionComponent(() => import("./SandboxProvisionConfig-ZGG4IRHM.js").then((module) => ({ default: module.SandboxProvisionConfig })));
|
|
21086
|
-
var SandboxProvisionFlowDetail = lazyActionComponent(() => import("./SandboxProvisionFlowDetail-
|
|
21153
|
+
var SandboxProvisionFlowDetail = lazyActionComponent(() => import("./SandboxProvisionFlowDetail-CQ7XZWNA.js").then((module) => ({ default: module.SandboxProvisionFlowDetail })));
|
|
21087
21154
|
registerActionTypeUI("qi/sandbox.provision", {
|
|
21088
21155
|
label: "Provision Sandbox",
|
|
21089
21156
|
description: "Provision a sandbox environment for the oracle",
|
|
@@ -21095,7 +21162,7 @@ registerActionTypeUI("qi/sandbox.provision", {
|
|
|
21095
21162
|
// src/mantine/blocks/action/actionTypes/oracleContract/index.ts
|
|
21096
21163
|
import { IconLicense } from "@tabler/icons-react";
|
|
21097
21164
|
var OracleContractConfig = lazyActionComponent(() => import("./OracleContractConfig-PHY5L7W2.js").then((module) => ({ default: module.OracleContractConfig })));
|
|
21098
|
-
var OracleContractFlowDetail = lazyActionComponent(() => import("./OracleContractFlowDetail-
|
|
21165
|
+
var OracleContractFlowDetail = lazyActionComponent(() => import("./OracleContractFlowDetail-D2XZYWVG.js").then((module) => ({ default: module.OracleContractFlowDetail })));
|
|
21099
21166
|
registerActionTypeUI("qi/oracle.contract", {
|
|
21100
21167
|
label: "Create Oracle Contract",
|
|
21101
21168
|
description: "Establish the user-oracle Matrix DM room",
|
|
@@ -21107,7 +21174,7 @@ registerActionTypeUI("qi/oracle.contract", {
|
|
|
21107
21174
|
// src/mantine/blocks/action/actionTypes/oracleStoreSecrets/index.ts
|
|
21108
21175
|
import { IconKey as IconKey3 } from "@tabler/icons-react";
|
|
21109
21176
|
var OracleStoreSecretsConfig = lazyActionComponent(() => import("./OracleStoreSecretsConfig-PQMF7LFT.js").then((module) => ({ default: module.OracleStoreSecretsConfig })));
|
|
21110
|
-
var OracleStoreSecretsFlowDetail = lazyActionComponent(() => import("./OracleStoreSecretsFlowDetail-
|
|
21177
|
+
var OracleStoreSecretsFlowDetail = lazyActionComponent(() => import("./OracleStoreSecretsFlowDetail-DHNXG3CZ.js").then((module) => ({ default: module.OracleStoreSecretsFlowDetail })));
|
|
21111
21178
|
registerActionTypeUI("qi/oracle.storeSecrets", {
|
|
21112
21179
|
label: "Store Oracle Secrets",
|
|
21113
21180
|
description: "Store oracle secrets in Matrix room state",
|
|
@@ -21119,7 +21186,7 @@ registerActionTypeUI("qi/oracle.storeSecrets", {
|
|
|
21119
21186
|
// src/mantine/blocks/action/actionTypes/oracleStoreConfig/index.ts
|
|
21120
21187
|
import { IconSettings as IconSettings20 } from "@tabler/icons-react";
|
|
21121
21188
|
var OracleStoreConfigConfig = lazyActionComponent(() => import("./OracleStoreConfigConfig-TUZWTJMA.js").then((module) => ({ default: module.OracleStoreConfigConfig })));
|
|
21122
|
-
var OracleStoreConfigFlowDetail = lazyActionComponent(() => import("./OracleStoreConfigFlowDetail-
|
|
21189
|
+
var OracleStoreConfigFlowDetail = lazyActionComponent(() => import("./OracleStoreConfigFlowDetail-Q6PTB2TR.js").then((module) => ({ default: module.OracleStoreConfigFlowDetail })));
|
|
21123
21190
|
registerActionTypeUI("qi/oracle.storeConfig", {
|
|
21124
21191
|
label: "Store Oracle Config",
|
|
21125
21192
|
description: "Store the oracle configuration in Matrix room state",
|
|
@@ -21134,7 +21201,7 @@ var OracleStoreSecretsAndConfigConfig = lazyActionComponent(
|
|
|
21134
21201
|
() => import("./OracleStoreSecretsAndConfigConfig-SZPYEK7U.js").then((module) => ({ default: module.OracleStoreSecretsAndConfigConfig }))
|
|
21135
21202
|
);
|
|
21136
21203
|
var OracleStoreSecretsAndConfigFlowDetail = lazyActionComponent(
|
|
21137
|
-
() => import("./OracleStoreSecretsAndConfigFlowDetail-
|
|
21204
|
+
() => import("./OracleStoreSecretsAndConfigFlowDetail-D2YXIJ57.js").then((module) => ({ default: module.OracleStoreSecretsAndConfigFlowDetail }))
|
|
21138
21205
|
);
|
|
21139
21206
|
registerActionTypeUI("qi/oracle.storeSecretsAndConfig", {
|
|
21140
21207
|
label: "Store Oracle Secrets & Config",
|
|
@@ -21148,7 +21215,7 @@ registerActionTypeUI("qi/oracle.storeSecretsAndConfig", {
|
|
|
21148
21215
|
import { IconAdjustments as IconAdjustments2 } from "@tabler/icons-react";
|
|
21149
21216
|
var OracleConfigureOracleConfig = lazyActionComponent(() => import("./OracleConfigureOracleConfig-QFF74X3N.js").then((module) => ({ default: module.OracleConfigureOracleConfig })));
|
|
21150
21217
|
var OracleConfigureOracleFlowDetail = lazyActionComponent(
|
|
21151
|
-
() => import("./OracleConfigureOracleFlowDetail-
|
|
21218
|
+
() => import("./OracleConfigureOracleFlowDetail-L7GRKOSV.js").then((module) => ({ default: module.OracleConfigureOracleFlowDetail }))
|
|
21152
21219
|
);
|
|
21153
21220
|
registerActionTypeUI("qi/oracle.configureOracle", {
|
|
21154
21221
|
label: "Configure Oracle",
|
|
@@ -21161,7 +21228,7 @@ registerActionTypeUI("qi/oracle.configureOracle", {
|
|
|
21161
21228
|
// src/mantine/blocks/action/actionTypes/oracleDeploySetup/index.ts
|
|
21162
21229
|
import { IconTool } from "@tabler/icons-react";
|
|
21163
21230
|
var OracleDeploySetupConfig = lazyActionComponent(() => import("./OracleDeploySetupConfig-75XPGFJQ.js").then((module) => ({ default: module.OracleDeploySetupConfig })));
|
|
21164
|
-
var OracleDeploySetupFlowDetail = lazyActionComponent(() => import("./OracleDeploySetupFlowDetail-
|
|
21231
|
+
var OracleDeploySetupFlowDetail = lazyActionComponent(() => import("./OracleDeploySetupFlowDetail-KMGBPIND.js").then((module) => ({ default: module.OracleDeploySetupFlowDetail })));
|
|
21165
21232
|
registerActionTypeUI("qi/oracle.deploySetup", {
|
|
21166
21233
|
label: "Set Up Oracle Deployment",
|
|
21167
21234
|
description: "Build and prepare the oracle for deployment",
|
|
@@ -21173,7 +21240,7 @@ registerActionTypeUI("qi/oracle.deploySetup", {
|
|
|
21173
21240
|
// src/mantine/blocks/action/actionTypes/oracleDeployStart/index.ts
|
|
21174
21241
|
import { IconPlayerPlay as IconPlayerPlay3 } from "@tabler/icons-react";
|
|
21175
21242
|
var OracleDeployStartConfig = lazyActionComponent(() => import("./OracleDeployStartConfig-NA6GZ4VQ.js").then((module) => ({ default: module.OracleDeployStartConfig })));
|
|
21176
|
-
var OracleDeployStartFlowDetail = lazyActionComponent(() => import("./OracleDeployStartFlowDetail-
|
|
21243
|
+
var OracleDeployStartFlowDetail = lazyActionComponent(() => import("./OracleDeployStartFlowDetail-DTK5PLC5.js").then((module) => ({ default: module.OracleDeployStartFlowDetail })));
|
|
21177
21244
|
registerActionTypeUI("qi/oracle.deployStart", {
|
|
21178
21245
|
label: "Start Oracle Deployment",
|
|
21179
21246
|
description: "Start the oracle deployment process",
|
|
@@ -21185,7 +21252,7 @@ registerActionTypeUI("qi/oracle.deployStart", {
|
|
|
21185
21252
|
// src/mantine/blocks/action/actionTypes/oracleDeploy/index.ts
|
|
21186
21253
|
import { IconRocket as IconRocket2 } from "@tabler/icons-react";
|
|
21187
21254
|
var OracleDeployConfig = lazyActionComponent(() => import("./OracleDeployConfig-QBG76ATZ.js").then((module) => ({ default: module.OracleDeployConfig })));
|
|
21188
|
-
var OracleDeployFlowDetail = lazyActionComponent(() => import("./OracleDeployFlowDetail-
|
|
21255
|
+
var OracleDeployFlowDetail = lazyActionComponent(() => import("./OracleDeployFlowDetail-TCFIJYP7.js").then((module) => ({ default: module.OracleDeployFlowDetail })));
|
|
21189
21256
|
registerActionTypeUI("qi/oracle.deploy", {
|
|
21190
21257
|
label: "Deploy Oracle",
|
|
21191
21258
|
description: "Build, deploy, and start the oracle",
|
|
@@ -21302,17 +21369,17 @@ import { Group as Group77, Stack as Stack130, Text as Text128 } from "@mantine/c
|
|
|
21302
21369
|
import { IconMapPin } from "@tabler/icons-react";
|
|
21303
21370
|
|
|
21304
21371
|
// src/mantine/blocks/location/template/TemplateConfig.tsx
|
|
21305
|
-
import React203, { useCallback as
|
|
21372
|
+
import React203, { useCallback as useCallback75 } from "react";
|
|
21306
21373
|
import { IconSettings as IconSettings21 } from "@tabler/icons-react";
|
|
21307
21374
|
|
|
21308
21375
|
// src/mantine/blocks/location/template/GeneralTab.tsx
|
|
21309
|
-
import React202, { useEffect as useEffect73, useRef as useRef23, useState as
|
|
21376
|
+
import React202, { useEffect as useEffect73, useRef as useRef23, useState as useState86 } from "react";
|
|
21310
21377
|
import { Box as Box47, Divider as Divider20, Stack as Stack129, Text as Text126 } from "@mantine/core";
|
|
21311
21378
|
|
|
21312
21379
|
// src/core/hooks/useUnlMap.ts
|
|
21313
|
-
import { useEffect as useEffect72, useState as
|
|
21380
|
+
import { useEffect as useEffect72, useState as useState84 } from "react";
|
|
21314
21381
|
function useUnlMap() {
|
|
21315
|
-
const [status, setStatus] =
|
|
21382
|
+
const [status, setStatus] = useState84("loading");
|
|
21316
21383
|
useEffect72(() => {
|
|
21317
21384
|
if (typeof window === "undefined") {
|
|
21318
21385
|
return;
|
|
@@ -21368,7 +21435,7 @@ function useUnlMap() {
|
|
|
21368
21435
|
}
|
|
21369
21436
|
|
|
21370
21437
|
// src/mantine/blocks/location/components/TileSelector.tsx
|
|
21371
|
-
import React201, { useState as
|
|
21438
|
+
import React201, { useState as useState85, useCallback as useCallback74 } from "react";
|
|
21372
21439
|
import { ActionIcon as ActionIcon32, Group as Group76, Tooltip as Tooltip23 } from "@mantine/core";
|
|
21373
21440
|
import { IconMap, IconMoon, IconSatellite, IconMountain } from "@tabler/icons-react";
|
|
21374
21441
|
var TILE_LAYERS = {
|
|
@@ -21421,8 +21488,8 @@ function ensureLayer(map, config) {
|
|
|
21421
21488
|
);
|
|
21422
21489
|
}
|
|
21423
21490
|
var TileSelector = ({ mapRef }) => {
|
|
21424
|
-
const [active, setActive] =
|
|
21425
|
-
const switchTo =
|
|
21491
|
+
const [active, setActive] = useState85("map");
|
|
21492
|
+
const switchTo = useCallback74(
|
|
21426
21493
|
(type) => {
|
|
21427
21494
|
const map = mapRef.current;
|
|
21428
21495
|
if (!map || active === type) return;
|
|
@@ -21478,9 +21545,9 @@ var DEFAULT_CENTER = [0, 20];
|
|
|
21478
21545
|
var DEFAULT_ZOOM = 2;
|
|
21479
21546
|
var PLACED_ZOOM = 14;
|
|
21480
21547
|
var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, onDescriptionChange, onCoordinatesChange }) => {
|
|
21481
|
-
const [localTitle, setLocalTitle] =
|
|
21482
|
-
const [localDescription, setLocalDescription] =
|
|
21483
|
-
const [mapError, setMapError] =
|
|
21548
|
+
const [localTitle, setLocalTitle] = useState86(title);
|
|
21549
|
+
const [localDescription, setLocalDescription] = useState86(description);
|
|
21550
|
+
const [mapError, setMapError] = useState86(null);
|
|
21484
21551
|
const { status, UnlSdk } = useUnlMap();
|
|
21485
21552
|
const { mapConfig } = useBlocknoteContext();
|
|
21486
21553
|
const markerRef = useRef23(null);
|
|
@@ -21585,13 +21652,13 @@ var GeneralTab17 = ({ title, description, latitude, longitude, onTitleChange, on
|
|
|
21585
21652
|
var TemplateConfig17 = ({ editor, block: blockProp }) => {
|
|
21586
21653
|
const { closePanel } = usePanelStore();
|
|
21587
21654
|
const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
|
|
21588
|
-
const updateProp =
|
|
21655
|
+
const updateProp = useCallback75(
|
|
21589
21656
|
(key, value) => {
|
|
21590
21657
|
editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
|
|
21591
21658
|
},
|
|
21592
21659
|
[editor, readLiveBlock]
|
|
21593
21660
|
);
|
|
21594
|
-
const updateProps =
|
|
21661
|
+
const updateProps = useCallback75(
|
|
21595
21662
|
(updates) => {
|
|
21596
21663
|
editor.updateBlock(readLiveBlock(), { props: { ...updates } });
|
|
21597
21664
|
},
|
|
@@ -21620,10 +21687,10 @@ var TemplateConfig17 = ({ editor, block: blockProp }) => {
|
|
|
21620
21687
|
};
|
|
21621
21688
|
|
|
21622
21689
|
// src/mantine/blocks/location/components/LocationMap.tsx
|
|
21623
|
-
import React204, { useEffect as useEffect74, useRef as useRef24, useState as
|
|
21690
|
+
import React204, { useEffect as useEffect74, useRef as useRef24, useState as useState87 } from "react";
|
|
21624
21691
|
import { Box as Box48, Flex as Flex31, Loader as Loader35, Text as Text127 } from "@mantine/core";
|
|
21625
21692
|
var UnlMap = ({ w = "100%", h = 200, latitude, longitude, zoom = 5, showMarker = true, showTilesControl = false }) => {
|
|
21626
|
-
const [mapError, setMapError] =
|
|
21693
|
+
const [mapError, setMapError] = useState87(null);
|
|
21627
21694
|
const { mapConfig } = useBlocknoteContext();
|
|
21628
21695
|
const wrapperRef = useRef24(null);
|
|
21629
21696
|
const containerRef = useRef24(null);
|
|
@@ -21797,11 +21864,11 @@ import React212, { useMemo as useMemo91 } from "react";
|
|
|
21797
21864
|
import { Box as Box49, Group as Group79, Stack as Stack133, Text as Text131 } from "@mantine/core";
|
|
21798
21865
|
|
|
21799
21866
|
// src/mantine/blocks/embed/template/TemplateConfig.tsx
|
|
21800
|
-
import React211, { useCallback as
|
|
21867
|
+
import React211, { useCallback as useCallback76 } from "react";
|
|
21801
21868
|
import { IconSettings as IconSettings22 } from "@tabler/icons-react";
|
|
21802
21869
|
|
|
21803
21870
|
// src/mantine/blocks/embed/template/GeneralTab.tsx
|
|
21804
|
-
import React210, { useEffect as useEffect75, useState as
|
|
21871
|
+
import React210, { useEffect as useEffect75, useState as useState88 } from "react";
|
|
21805
21872
|
import { Stack as Stack132, Switch as Switch6, Text as Text130 } from "@mantine/core";
|
|
21806
21873
|
var GeneralTab18 = ({
|
|
21807
21874
|
url,
|
|
@@ -21817,8 +21884,8 @@ var GeneralTab18 = ({
|
|
|
21817
21884
|
onHeightChange,
|
|
21818
21885
|
onAllowAuthChange
|
|
21819
21886
|
}) => {
|
|
21820
|
-
const [localUrl, setLocalUrl] =
|
|
21821
|
-
const [localHeight, setLocalHeight] =
|
|
21887
|
+
const [localUrl, setLocalUrl] = useState88(url);
|
|
21888
|
+
const [localHeight, setLocalHeight] = useState88(height);
|
|
21822
21889
|
const iconOptions = Object.keys(ICON_MAP).map((key) => ({
|
|
21823
21890
|
value: key,
|
|
21824
21891
|
label: key.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ")
|
|
@@ -21860,7 +21927,7 @@ var GeneralTab18 = ({
|
|
|
21860
21927
|
var TemplateConfig18 = ({ editor, block: blockProp }) => {
|
|
21861
21928
|
const { closePanel } = usePanelStore();
|
|
21862
21929
|
const { liveBlock: block, readLiveBlock } = useLiveBlock(editor, blockProp);
|
|
21863
|
-
const updateProp =
|
|
21930
|
+
const updateProp = useCallback76(
|
|
21864
21931
|
(key, value) => {
|
|
21865
21932
|
editor.updateBlock(readLiveBlock(), { props: { [key]: value } });
|
|
21866
21933
|
},
|
|
@@ -21975,11 +22042,11 @@ import React214, { useMemo as useMemo92 } from "react";
|
|
|
21975
22042
|
import { Box as Box50, Group as Group80, Stack as Stack134, Text as Text132 } from "@mantine/core";
|
|
21976
22043
|
|
|
21977
22044
|
// src/mantine/blocks/embed/flow/FlowConfig.tsx
|
|
21978
|
-
import React213, { useCallback as
|
|
22045
|
+
import React213, { useCallback as useCallback77 } from "react";
|
|
21979
22046
|
import { IconSettings as IconSettings23 } from "@tabler/icons-react";
|
|
21980
22047
|
var FlowConfig4 = ({ editor, block }) => {
|
|
21981
22048
|
const { closePanel } = usePanelStore();
|
|
21982
|
-
const updateProp =
|
|
22049
|
+
const updateProp = useCallback77(
|
|
21983
22050
|
(key, value) => {
|
|
21984
22051
|
editor.updateBlock(block, { props: { ...block.props, [key]: value } });
|
|
21985
22052
|
},
|
|
@@ -22074,7 +22141,7 @@ import React218 from "react";
|
|
|
22074
22141
|
import { createReactBlockSpec as createReactBlockSpec23 } from "@blocknote/react";
|
|
22075
22142
|
|
|
22076
22143
|
// src/mantine/blocks/secrets/SecretsBlock.tsx
|
|
22077
|
-
import React217, { useCallback as
|
|
22144
|
+
import React217, { useCallback as useCallback78, useMemo as useMemo93, useState as useState89 } from "react";
|
|
22078
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";
|
|
22079
22146
|
import { IconCheck as IconCheck17, IconCopy as IconCopy2, IconDownload as IconDownload4, IconEye, IconEyeOff, IconKey as IconKey4 } from "@tabler/icons-react";
|
|
22080
22147
|
var SENSITIVE_KEYS = /* @__PURE__ */ new Set(["mnemonic", "matrixPassword", "matrixRecoveryPhrase", "matrixAccessToken", "pin", "openRouterApiKeyJwe", "authToken"]);
|
|
@@ -22176,7 +22243,7 @@ function flattenForDownload(outputs) {
|
|
|
22176
22243
|
return result;
|
|
22177
22244
|
}
|
|
22178
22245
|
function MaskedValue({ value, isSensitive }) {
|
|
22179
|
-
const [visible, setVisible] =
|
|
22246
|
+
const [visible, setVisible] = useState89(false);
|
|
22180
22247
|
if (!isSensitive) {
|
|
22181
22248
|
return /* @__PURE__ */ React217.createElement(Text133, { size: "xs", ff: "monospace", style: { wordBreak: "break-all" } }, String(value));
|
|
22182
22249
|
}
|
|
@@ -22190,7 +22257,7 @@ function OutputEntry({ label, value, isSensitive }) {
|
|
|
22190
22257
|
function SecretsBlock({ editor, block }) {
|
|
22191
22258
|
const sessionRunId = useRunSessionId();
|
|
22192
22259
|
const { docType } = useBlocknoteContext();
|
|
22193
|
-
const [showOutput, setShowOutput] =
|
|
22260
|
+
const [showOutput, setShowOutput] = useState89(false);
|
|
22194
22261
|
const outputs = useMemo93(() => collectOutputs(editor, sessionRunId), [editor, showOutput, sessionRunId]);
|
|
22195
22262
|
const editorDocument = editor?.document || [];
|
|
22196
22263
|
const runtimeReader = useRunRuntimeReader(editor);
|
|
@@ -22198,7 +22265,7 @@ function SecretsBlock({ editor, block }) {
|
|
|
22198
22265
|
const entityDid = useMemo93(() => resolveReferences(block.props.entityDid || "", editorDocument, resolveOpts).trim(), [block.props.entityDid, editorDocument, resolveOpts]);
|
|
22199
22266
|
const portalUrl = typeof window !== "undefined" ? window.location.origin : "";
|
|
22200
22267
|
const connectUrl = entityDid ? `${portalUrl}/oracle/${entityDid}/connect` : "";
|
|
22201
|
-
const handleDownload =
|
|
22268
|
+
const handleDownload = useCallback78(() => {
|
|
22202
22269
|
const data = flattenForDownload(outputs);
|
|
22203
22270
|
const json = JSON.stringify(data, null, 2);
|
|
22204
22271
|
const blob = new Blob([json], { type: "application/json" });
|
|
@@ -22281,7 +22348,7 @@ var SkillsTemplateView = ({ editor: _editor, block }) => {
|
|
|
22281
22348
|
// src/mantine/blocks/skills/flow/SkillsFlowView.tsx
|
|
22282
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";
|
|
22283
22350
|
import { IconBrain as IconBrain3, IconCheck as IconCheck18, IconPencil, IconPlus as IconPlus8, IconTrash as IconTrash10, IconX as IconX12 } from "@tabler/icons-react";
|
|
22284
|
-
import React222, { useCallback as
|
|
22351
|
+
import React222, { useCallback as useCallback79, useEffect as useEffect76, useMemo as useMemo95, useRef as useRef25, useState as useState90 } from "react";
|
|
22285
22352
|
function parseSkills2(raw) {
|
|
22286
22353
|
try {
|
|
22287
22354
|
const parsed = JSON.parse(raw || "[]");
|
|
@@ -22304,15 +22371,15 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
22304
22371
|
const isCompleted = runtime.state === "completed" && runtime.evaluationStatus === "approved";
|
|
22305
22372
|
const skills = useMemo95(() => parseSkills2(block.props.skills), [block.props.skills]);
|
|
22306
22373
|
const mcpServers = useMemo95(() => parseMcpServers(block.props.mcpServers), [block.props.mcpServers]);
|
|
22307
|
-
const [showAddMcp, setShowAddMcp] =
|
|
22308
|
-
const [mcpName, setMcpName] =
|
|
22309
|
-
const [mcpUrl, setMcpUrl] =
|
|
22310
|
-
const [mcpDescription, setMcpDescription] =
|
|
22311
|
-
const [editingMcpIndex, setEditingMcpIndex] =
|
|
22312
|
-
const [validationResults, setValidationResults] =
|
|
22313
|
-
const [validatingUrls, setValidatingUrls] =
|
|
22314
|
-
const [capsules, setCapsules] =
|
|
22315
|
-
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);
|
|
22316
22383
|
const capsulesFetchedRef = useRef25(false);
|
|
22317
22384
|
useEffect76(() => {
|
|
22318
22385
|
if (capsulesFetchedRef.current || !handlers.getSkills) return;
|
|
@@ -22320,7 +22387,7 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
22320
22387
|
setLoadingCapsules(true);
|
|
22321
22388
|
handlers.getSkills().then((r) => setCapsules(r.capsules || [])).catch((err) => console.error("[skills] Failed to fetch capsules:", err)).finally(() => setLoadingCapsules(false));
|
|
22322
22389
|
}, [handlers.getSkills]);
|
|
22323
|
-
const [network, setNetwork] =
|
|
22390
|
+
const [network, setNetwork] = useState90("");
|
|
22324
22391
|
const networkFetchedRef = useRef25(false);
|
|
22325
22392
|
useEffect76(() => {
|
|
22326
22393
|
if (networkFetchedRef.current || !handlers.getNetwork) return;
|
|
@@ -22345,17 +22412,17 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
22345
22412
|
}
|
|
22346
22413
|
];
|
|
22347
22414
|
}, [network]);
|
|
22348
|
-
const getCurrentBlock =
|
|
22415
|
+
const getCurrentBlock = useCallback79(() => {
|
|
22349
22416
|
return editor.document?.find((b) => b.id === block.id) || block;
|
|
22350
22417
|
}, [editor, block.id]);
|
|
22351
|
-
const updateSkills =
|
|
22418
|
+
const updateSkills = useCallback79(
|
|
22352
22419
|
(next) => {
|
|
22353
22420
|
const cur = getCurrentBlock();
|
|
22354
22421
|
editor.updateBlock(cur, { props: { ...cur.props, skills: JSON.stringify(next) } });
|
|
22355
22422
|
},
|
|
22356
22423
|
[editor, getCurrentBlock]
|
|
22357
22424
|
);
|
|
22358
|
-
const updateMcpServers =
|
|
22425
|
+
const updateMcpServers = useCallback79(
|
|
22359
22426
|
(next) => {
|
|
22360
22427
|
const cur = getCurrentBlock();
|
|
22361
22428
|
editor.updateBlock(cur, { props: { ...cur.props, mcpServers: JSON.stringify(next) } });
|
|
@@ -22370,21 +22437,21 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
22370
22437
|
})),
|
|
22371
22438
|
[capsules]
|
|
22372
22439
|
);
|
|
22373
|
-
const handleSkillsChange =
|
|
22440
|
+
const handleSkillsChange = useCallback79(
|
|
22374
22441
|
(cids) => {
|
|
22375
22442
|
const next = cids.map((cid) => capsules.find((c) => c.cid === cid)).filter((c) => !!c);
|
|
22376
22443
|
updateSkills(next);
|
|
22377
22444
|
},
|
|
22378
22445
|
[capsules, updateSkills]
|
|
22379
22446
|
);
|
|
22380
|
-
const resetMcpForm =
|
|
22447
|
+
const resetMcpForm = useCallback79(() => {
|
|
22381
22448
|
setShowAddMcp(false);
|
|
22382
22449
|
setMcpName("");
|
|
22383
22450
|
setMcpUrl("");
|
|
22384
22451
|
setMcpDescription("");
|
|
22385
22452
|
setEditingMcpIndex(null);
|
|
22386
22453
|
}, []);
|
|
22387
|
-
const handleValidateMcp =
|
|
22454
|
+
const handleValidateMcp = useCallback79(
|
|
22388
22455
|
async (url) => {
|
|
22389
22456
|
setValidatingUrls((prev) => ({ ...prev, [url]: true }));
|
|
22390
22457
|
setValidationResults((prev) => {
|
|
@@ -22413,7 +22480,7 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
22413
22480
|
},
|
|
22414
22481
|
[handlers]
|
|
22415
22482
|
);
|
|
22416
|
-
const handleContinue =
|
|
22483
|
+
const handleContinue = useCallback79(() => {
|
|
22417
22484
|
const cur = getCurrentBlock();
|
|
22418
22485
|
const currentMcpServers = parseMcpServers(cur.props.mcpServers);
|
|
22419
22486
|
updateRuntime({
|
|
@@ -22428,14 +22495,14 @@ var SkillsFlowView = ({ editor, block }) => {
|
|
|
22428
22495
|
});
|
|
22429
22496
|
editor.updateBlock(cur, { props: { ...cur.props, status: "approved" } });
|
|
22430
22497
|
}, [updateRuntime, getCurrentBlock, editor, block.id]);
|
|
22431
|
-
const handleEdit =
|
|
22498
|
+
const handleEdit = useCallback79(() => {
|
|
22432
22499
|
updateRuntime({ state: "idle", evaluationStatus: void 0, claimId: void 0, output: void 0 });
|
|
22433
22500
|
const cur = getCurrentBlock();
|
|
22434
22501
|
editor.updateBlock(cur, { props: { ...cur.props, status: "pending" } });
|
|
22435
22502
|
}, [updateRuntime, getCurrentBlock, editor]);
|
|
22436
|
-
const [savingMcp, setSavingMcp] =
|
|
22437
|
-
const [mcpSaveError, setMcpSaveError] =
|
|
22438
|
-
const handleSaveMcp =
|
|
22503
|
+
const [savingMcp, setSavingMcp] = useState90(false);
|
|
22504
|
+
const [mcpSaveError, setMcpSaveError] = useState90(null);
|
|
22505
|
+
const handleSaveMcp = useCallback79(async () => {
|
|
22439
22506
|
const url = mcpUrl.trim();
|
|
22440
22507
|
if (!mcpName.trim() || !url) return;
|
|
22441
22508
|
setSavingMcp(true);
|
|
@@ -22858,7 +22925,7 @@ blockRegistry.register({
|
|
|
22858
22925
|
});
|
|
22859
22926
|
|
|
22860
22927
|
// src/mantine/blocks/hooks/useBlockDependencies.ts
|
|
22861
|
-
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";
|
|
22862
22929
|
|
|
22863
22930
|
// src/mantine/blocks/hooks/useDependsOn.ts
|
|
22864
22931
|
import { useMemo as useMemo97 } from "react";
|
|
@@ -23366,14 +23433,14 @@ var getExtraSlashMenuItems = (editor, translate) => {
|
|
|
23366
23433
|
};
|
|
23367
23434
|
|
|
23368
23435
|
// src/mantine/inline/FlowStepRefSpec.tsx
|
|
23369
|
-
import React225, { useEffect as useEffect78, useState as
|
|
23436
|
+
import React225, { useEffect as useEffect78, useState as useState92 } from "react";
|
|
23370
23437
|
import { createReactInlineContentSpec } from "@blocknote/react";
|
|
23371
23438
|
import { IconBolt as IconBolt12, IconCheck as IconCheck19 } from "@tabler/icons-react";
|
|
23372
23439
|
function useStepRefState(nodeId, fallbackLabel) {
|
|
23373
23440
|
const { editor } = useBlocknoteContext();
|
|
23374
23441
|
const sessionRunId = useRunSessionId();
|
|
23375
23442
|
const initial = fallbackLabel || nodeId || "Step";
|
|
23376
|
-
const [state, setState] =
|
|
23443
|
+
const [state, setState] = useState92({ text: initial, missing: false, completed: false });
|
|
23377
23444
|
useEffect78(() => {
|
|
23378
23445
|
const ed = editor;
|
|
23379
23446
|
if (!ed) return;
|
|
@@ -23601,7 +23668,7 @@ import { useCreateBlockNote as useCreateBlockNote2 } from "@blocknote/react";
|
|
|
23601
23668
|
import { BlockNoteSchema as BlockNoteSchema2, defaultBlockSpecs as defaultBlockSpecs2, defaultInlineContentSpecs as defaultInlineContentSpecs2 } from "@blocknote/core";
|
|
23602
23669
|
|
|
23603
23670
|
// src/core/hooks/useMatrixProvider.ts
|
|
23604
|
-
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";
|
|
23605
23672
|
import { MatrixProvider } from "@ixo/matrix-crdt";
|
|
23606
23673
|
var FLUSH_TIMEOUT_MS = 3e3;
|
|
23607
23674
|
var RETRY_BASE_MS = 5e3;
|
|
@@ -23674,8 +23741,8 @@ function useDedicatedMatrixProvider({
|
|
|
23674
23741
|
enableExperimentalWebrtcSync = true,
|
|
23675
23742
|
enabled = true
|
|
23676
23743
|
}) {
|
|
23677
|
-
const [matrixProvider, setProvider] =
|
|
23678
|
-
const [status, setStatus] =
|
|
23744
|
+
const [matrixProvider, setProvider] = useState93(null);
|
|
23745
|
+
const [status, setStatus] = useState93("disconnected");
|
|
23679
23746
|
const isMountedRef = useRef26(true);
|
|
23680
23747
|
const providerRef = useRef26(null);
|
|
23681
23748
|
const retryTimeoutRef = useRef26(null);
|
|
@@ -23698,22 +23765,22 @@ function useDedicatedMatrixProvider({
|
|
|
23698
23765
|
}),
|
|
23699
23766
|
[enableExperimentalWebrtcSync, eventTypes?.snapshotEventType, eventTypes?.snapshotV2EventType, eventTypes?.updateEventType]
|
|
23700
23767
|
);
|
|
23701
|
-
const handleDocumentAvailable =
|
|
23768
|
+
const handleDocumentAvailable = useCallback81(() => {
|
|
23702
23769
|
if (isMountedRef.current) {
|
|
23703
23770
|
setStatus("connected");
|
|
23704
23771
|
}
|
|
23705
23772
|
}, []);
|
|
23706
|
-
const handleDocumentUnavailable =
|
|
23773
|
+
const handleDocumentUnavailable = useCallback81(() => {
|
|
23707
23774
|
if (isMountedRef.current) {
|
|
23708
23775
|
setStatus("failed");
|
|
23709
23776
|
}
|
|
23710
23777
|
}, []);
|
|
23711
|
-
const handleCanWriteChanged =
|
|
23778
|
+
const handleCanWriteChanged = useCallback81(() => {
|
|
23712
23779
|
if (isMountedRef.current && providerRef.current) {
|
|
23713
23780
|
setStatus(providerRef.current.canWrite ? "connected" : "failed");
|
|
23714
23781
|
}
|
|
23715
23782
|
}, []);
|
|
23716
|
-
const initProvider =
|
|
23783
|
+
const initProvider = useCallback81(async () => {
|
|
23717
23784
|
if (!isMountedRef.current) return;
|
|
23718
23785
|
if (retryTimeoutRef.current) {
|
|
23719
23786
|
clearTimeout(retryTimeoutRef.current);
|
|
@@ -23753,7 +23820,7 @@ function useDedicatedMatrixProvider({
|
|
|
23753
23820
|
}, retryDelayMs(attempt));
|
|
23754
23821
|
}
|
|
23755
23822
|
}, [providerClient, providerOptions, roomId, handleDocumentAvailable, handleDocumentUnavailable, handleCanWriteChanged]);
|
|
23756
|
-
const reconnect =
|
|
23823
|
+
const reconnect = useCallback81(() => {
|
|
23757
23824
|
if (retryTimeoutRef.current) {
|
|
23758
23825
|
clearTimeout(retryTimeoutRef.current);
|
|
23759
23826
|
retryTimeoutRef.current = null;
|
|
@@ -23815,7 +23882,7 @@ function useCollaborativeYDoc(options) {
|
|
|
23815
23882
|
}
|
|
23816
23883
|
|
|
23817
23884
|
// src/mantine/hooks/useCollaborativeIxoEditor.ts
|
|
23818
|
-
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";
|
|
23819
23886
|
|
|
23820
23887
|
// src/core/lib/matrixMetadata.ts
|
|
23821
23888
|
var COVER_IMAGE_EVENT_TYPE = "ixo.page.cover_image";
|
|
@@ -24069,7 +24136,7 @@ function logInvocation(matrixClient, roomId, invocation) {
|
|
|
24069
24136
|
}
|
|
24070
24137
|
|
|
24071
24138
|
// src/mantine/hooks/useFlowLifecycle.ts
|
|
24072
|
-
import { useEffect as useEffect80, useCallback as
|
|
24139
|
+
import { useEffect as useEffect80, useCallback as useCallback82, useRef as useRef27 } from "react";
|
|
24073
24140
|
|
|
24074
24141
|
// src/mantine/hooks/useFlowTTLCleanup.ts
|
|
24075
24142
|
function performTTLCleanup(editor, sessionRunId) {
|
|
@@ -24268,7 +24335,7 @@ var DEFAULT_INTERVAL_MS = 3e4;
|
|
|
24268
24335
|
function useFlowLifecycle({ editor, connectionStatus, sessionRunId, enabled = true }) {
|
|
24269
24336
|
const hasRunInitialRef = useRef27(false);
|
|
24270
24337
|
const runningRef = useRef27(false);
|
|
24271
|
-
const runPipeline =
|
|
24338
|
+
const runPipeline = useCallback82(async () => {
|
|
24272
24339
|
if (!editor || runningRef.current) return;
|
|
24273
24340
|
runningRef.current = true;
|
|
24274
24341
|
try {
|
|
@@ -24504,7 +24571,7 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
24504
24571
|
}),
|
|
24505
24572
|
[theme, editable, sideMenu, slashMenu, formattingToolbar, linkToolbar, filePanel, tableHandles]
|
|
24506
24573
|
);
|
|
24507
|
-
const [providerReady, setProviderReady] =
|
|
24574
|
+
const [providerReady, setProviderReady] = useState94(false);
|
|
24508
24575
|
useEffect81(() => {
|
|
24509
24576
|
if (matrixProvider && !providerReady) setProviderReady(true);
|
|
24510
24577
|
}, [matrixProvider, providerReady]);
|
|
@@ -24562,9 +24629,7 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
24562
24629
|
result.title = titleText.toString() || result.title || "";
|
|
24563
24630
|
return result;
|
|
24564
24631
|
};
|
|
24565
|
-
ixoEditor.getFlowOwnerDid = () =>
|
|
24566
|
-
return root.get("flowOwnerDid") || "";
|
|
24567
|
-
};
|
|
24632
|
+
ixoEditor.getFlowOwnerDid = () => bindFlowOwnerFromRoom(yDoc, matrixClient, options.roomId);
|
|
24568
24633
|
ixoEditor.updateFlowMetadata = (updates) => {
|
|
24569
24634
|
if (!permissions.write) {
|
|
24570
24635
|
return;
|
|
@@ -24622,21 +24687,10 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
24622
24687
|
console.warn("Cannot set delegation: write permission denied");
|
|
24623
24688
|
return;
|
|
24624
24689
|
}
|
|
24625
|
-
if (delegation.
|
|
24690
|
+
if (delegation?.cid && typeof delegation.delegation === "string" && delegation.delegation) {
|
|
24626
24691
|
ucanDelegationStore.set(delegation);
|
|
24627
|
-
} else
|
|
24628
|
-
|
|
24629
|
-
cid: delegation.id,
|
|
24630
|
-
delegation: "",
|
|
24631
|
-
issuerDid: delegation.issuer,
|
|
24632
|
-
audienceDid: delegation.audience,
|
|
24633
|
-
capabilities: delegation.capabilities,
|
|
24634
|
-
expiration: delegation.expiration,
|
|
24635
|
-
createdAt: delegation.issuedAt ? new Date(delegation.issuedAt).getTime() : Date.now(),
|
|
24636
|
-
format: "car",
|
|
24637
|
-
proofCids: delegation.proofs || []
|
|
24638
|
-
};
|
|
24639
|
-
ucanDelegationStore.set(stored);
|
|
24692
|
+
} else {
|
|
24693
|
+
console.warn("Refusing to store a delegation with no signed CAR");
|
|
24640
24694
|
}
|
|
24641
24695
|
};
|
|
24642
24696
|
ixoEditor.getRootCapability = () => {
|
|
@@ -24743,6 +24797,9 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
24743
24797
|
ixoEditor.isEditable = editable;
|
|
24744
24798
|
}
|
|
24745
24799
|
}, [ixoEditor, editable]);
|
|
24800
|
+
useEffect81(() => {
|
|
24801
|
+
bindFlowOwnerFromRoom(yDoc, matrixClient, options.roomId);
|
|
24802
|
+
}, [yDoc, matrixClient, options.roomId, connectionStatus]);
|
|
24746
24803
|
useEffect81(() => {
|
|
24747
24804
|
if (connectionStatus !== "connected") {
|
|
24748
24805
|
return;
|
|
@@ -24757,23 +24814,28 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
24757
24814
|
root.set("@context", `https://ixo.world/flow/${LATEST_VERSION}`);
|
|
24758
24815
|
root.set("_type", "ixo.flow.crdt");
|
|
24759
24816
|
root.set("schema_version", LATEST_VERSION);
|
|
24760
|
-
|
|
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
|
+
});
|
|
24761
24822
|
root.set("createdAt", (/* @__PURE__ */ new Date()).toISOString());
|
|
24762
24823
|
root.set("createdBy", memoizedUser.id || "anonymous");
|
|
24763
|
-
|
|
24824
|
+
const creatorDid = bindFlowOwnerFromRoom(yDoc, matrixClient, options.roomId);
|
|
24825
|
+
if (creatorDid) root.set("flowOwnerDid", creatorDid);
|
|
24764
24826
|
if (options.sourceTemplateId && !root.get("source_template_id")) {
|
|
24765
24827
|
root.set("source_template_id", options.sourceTemplateId);
|
|
24766
24828
|
}
|
|
24767
24829
|
if (titleText.length === 0 && options.title) {
|
|
24768
24830
|
titleText.insert(0, options.title);
|
|
24769
24831
|
}
|
|
24770
|
-
}, [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]);
|
|
24771
24833
|
useEffect81(() => {
|
|
24772
24834
|
if (connectionStatus !== "connected") return;
|
|
24773
24835
|
if (!permissions.write) return;
|
|
24774
24836
|
collectPhantomLegacyRun(yDoc);
|
|
24775
24837
|
}, [connectionStatus, permissions.write, yDoc]);
|
|
24776
|
-
const [connectedUsers, setConnectedUsers] =
|
|
24838
|
+
const [connectedUsers, setConnectedUsers] = useState94([]);
|
|
24777
24839
|
const activeBlockIdRef = useRef28(null);
|
|
24778
24840
|
const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
|
|
24779
24841
|
useEffect81(() => {
|
|
@@ -24846,15 +24908,15 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
24846
24908
|
}
|
|
24847
24909
|
|
|
24848
24910
|
// src/mantine/components/Base/BaseIconPicker.tsx
|
|
24849
|
-
import React227, { useState as
|
|
24911
|
+
import React227, { useState as useState96, useMemo as useMemo101, useEffect as useEffect82 } from "react";
|
|
24850
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";
|
|
24851
24913
|
import { IconSearch as IconSearch6, IconX as IconX13, IconChevronLeft, IconChevronRight as IconChevronRight11 } from "@tabler/icons-react";
|
|
24852
24914
|
|
|
24853
24915
|
// src/mantine/components/Base/CoverImageButton.tsx
|
|
24854
|
-
import React226, { forwardRef, useState as
|
|
24916
|
+
import React226, { forwardRef, useState as useState95 } from "react";
|
|
24855
24917
|
import { UnstyledButton as UnstyledButton2, Group as Group84, Text as Text136 } from "@mantine/core";
|
|
24856
24918
|
var CoverImageButton = forwardRef(function CoverImageButton2({ isActive = false, onClick, icon: icon2, children, style }, ref) {
|
|
24857
|
-
const [hovered, setHovered] =
|
|
24919
|
+
const [hovered, setHovered] = useState95(false);
|
|
24858
24920
|
return /* @__PURE__ */ React226.createElement(
|
|
24859
24921
|
UnstyledButton2,
|
|
24860
24922
|
{
|
|
@@ -24923,10 +24985,10 @@ var localStorageService = {
|
|
|
24923
24985
|
var iconsKey = "editor_recent_icons";
|
|
24924
24986
|
var ICONS_PER_PAGE = 100;
|
|
24925
24987
|
function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove, children, currentIcon }) {
|
|
24926
|
-
const [searchQuery, setSearchQuery] =
|
|
24927
|
-
const [activeTab, setActiveTab] =
|
|
24928
|
-
const [currentPage, setCurrentPage] =
|
|
24929
|
-
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([]);
|
|
24930
24992
|
useEffect82(() => {
|
|
24931
24993
|
if (!opened || allIcons.length) return;
|
|
24932
24994
|
let cancelled = false;
|
|
@@ -25073,7 +25135,7 @@ function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove
|
|
|
25073
25135
|
}
|
|
25074
25136
|
|
|
25075
25137
|
// src/mantine/components/CoverImage.tsx
|
|
25076
|
-
import React230, { useState as
|
|
25138
|
+
import React230, { useState as useState99, useRef as useRef29, useEffect as useEffect85, useMemo as useMemo102 } from "react";
|
|
25077
25139
|
import { Box as Box54, Group as Group87 } from "@mantine/core";
|
|
25078
25140
|
import { IconMoodSmile, IconPhoto as IconPhoto4, IconSettings as IconSettings24, IconArrowsMove, IconTrash as IconTrash12, IconRefresh as IconRefresh7 } from "@tabler/icons-react";
|
|
25079
25141
|
|
|
@@ -25208,11 +25270,11 @@ function transformIconImage(sourceUrl, size = "default", customOptions) {
|
|
|
25208
25270
|
}
|
|
25209
25271
|
|
|
25210
25272
|
// src/mantine/components/Base/PageIcon.tsx
|
|
25211
|
-
import React228, { useEffect as useEffect83, useState as
|
|
25273
|
+
import React228, { useEffect as useEffect83, useState as useState97 } from "react";
|
|
25212
25274
|
import { Center as Center12, Box as Box52 } from "@mantine/core";
|
|
25213
25275
|
function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
|
|
25214
25276
|
const isIconName = src && !src.startsWith("http");
|
|
25215
|
-
const [loaded, setLoaded] =
|
|
25277
|
+
const [loaded, setLoaded] = useState97();
|
|
25216
25278
|
useEffect83(() => {
|
|
25217
25279
|
if (!isIconName || !src || pageIcons[src]) return;
|
|
25218
25280
|
let cancelled = false;
|
|
@@ -25270,14 +25332,14 @@ function PageIcon({ src, iconSize = 64, useCenter = false, style }) {
|
|
|
25270
25332
|
import { useDisclosure as useDisclosure6 } from "@mantine/hooks";
|
|
25271
25333
|
|
|
25272
25334
|
// src/mantine/components/FlowSettingsPanel.tsx
|
|
25273
|
-
import React229, { useState as
|
|
25335
|
+
import React229, { useState as useState98, useEffect as useEffect84, useCallback as useCallback83 } from "react";
|
|
25274
25336
|
import { Stack as Stack139, Group as Group86, Button as Button40, ActionIcon as ActionIcon35, Text as Text138, Box as Box53 } from "@mantine/core";
|
|
25275
25337
|
import { IconPlus as IconPlus9, IconTrash as IconTrash11 } from "@tabler/icons-react";
|
|
25276
25338
|
var SYSTEM_KEYS = /* @__PURE__ */ new Set(["@context", "_type", "schema_version", "doc_id", "title", "createdAt", "createdBy", "flowOwnerDid"]);
|
|
25277
25339
|
var FlowSettingsPanel = ({ editor }) => {
|
|
25278
25340
|
const { closePanel } = usePanelStore();
|
|
25279
|
-
const [rows, setRows] =
|
|
25280
|
-
const loadSettings =
|
|
25341
|
+
const [rows, setRows] = useState98([]);
|
|
25342
|
+
const loadSettings = useCallback83(() => {
|
|
25281
25343
|
const metadata = editor.getFlowMetadata?.();
|
|
25282
25344
|
if (!metadata) return;
|
|
25283
25345
|
const customRows = [];
|
|
@@ -25291,7 +25353,7 @@ var FlowSettingsPanel = ({ editor }) => {
|
|
|
25291
25353
|
useEffect84(() => {
|
|
25292
25354
|
loadSettings();
|
|
25293
25355
|
}, [loadSettings]);
|
|
25294
|
-
const handleKeyChange =
|
|
25356
|
+
const handleKeyChange = useCallback83(
|
|
25295
25357
|
(index, newKey) => {
|
|
25296
25358
|
setRows((prev) => {
|
|
25297
25359
|
const updated = [...prev];
|
|
@@ -25308,7 +25370,7 @@ var FlowSettingsPanel = ({ editor }) => {
|
|
|
25308
25370
|
},
|
|
25309
25371
|
[editor]
|
|
25310
25372
|
);
|
|
25311
|
-
const handleValueChange =
|
|
25373
|
+
const handleValueChange = useCallback83(
|
|
25312
25374
|
(index, newValue) => {
|
|
25313
25375
|
setRows((prev) => {
|
|
25314
25376
|
const updated = [...prev];
|
|
@@ -25322,10 +25384,10 @@ var FlowSettingsPanel = ({ editor }) => {
|
|
|
25322
25384
|
},
|
|
25323
25385
|
[editor]
|
|
25324
25386
|
);
|
|
25325
|
-
const handleAdd =
|
|
25387
|
+
const handleAdd = useCallback83(() => {
|
|
25326
25388
|
setRows((prev) => [...prev, { key: "", value: "" }]);
|
|
25327
25389
|
}, []);
|
|
25328
|
-
const handleDelete =
|
|
25390
|
+
const handleDelete = useCallback83(
|
|
25329
25391
|
(index) => {
|
|
25330
25392
|
setRows((prev) => {
|
|
25331
25393
|
const row = prev[index];
|
|
@@ -25344,13 +25406,13 @@ var FlowSettingsPanel = ({ editor }) => {
|
|
|
25344
25406
|
// src/mantine/components/CoverImage.tsx
|
|
25345
25407
|
function CoverImage({ coverImageUrl, logoUrl }) {
|
|
25346
25408
|
const { editor, handlers, editable } = useBlocknoteContext();
|
|
25347
|
-
const [isHovering, setIsHovering] =
|
|
25348
|
-
const [isRepositioning, setIsRepositioning] =
|
|
25349
|
-
const [coverPosition, setCoverPosition] =
|
|
25409
|
+
const [isHovering, setIsHovering] = useState99(false);
|
|
25410
|
+
const [isRepositioning, setIsRepositioning] = useState99(false);
|
|
25411
|
+
const [coverPosition, setCoverPosition] = useState99(() => editor?.getPageMetadata?.()?.coverPosition ?? 50);
|
|
25350
25412
|
const coverFileInputRef = useRef29(null);
|
|
25351
25413
|
const logoFileInputRef = useRef29(null);
|
|
25352
25414
|
const [opened, { open, close }] = useDisclosure6(false);
|
|
25353
|
-
const [metadata, setMetadata] =
|
|
25415
|
+
const [metadata, setMetadata] = useState99(() => editor?.getPageMetadata?.() || null);
|
|
25354
25416
|
const settingsPanelContent = useMemo102(() => editor ? /* @__PURE__ */ React230.createElement(FlowSettingsPanel, { editor }) : null, [editor]);
|
|
25355
25417
|
const { open: openSettings } = usePanel("flow-settings-panel", settingsPanelContent);
|
|
25356
25418
|
useEffect85(() => {
|
|
@@ -25643,7 +25705,7 @@ function CoverImage({ coverImageUrl, logoUrl }) {
|
|
|
25643
25705
|
}
|
|
25644
25706
|
|
|
25645
25707
|
// src/mantine/components/PageTitle.tsx
|
|
25646
|
-
import React231, { useState as
|
|
25708
|
+
import React231, { useState as useState100, useEffect as useEffect86, useRef as useRef30, useCallback as useCallback84 } from "react";
|
|
25647
25709
|
import { Box as Box55 } from "@mantine/core";
|
|
25648
25710
|
var DEFAULT_TITLE = "New page";
|
|
25649
25711
|
function isUserTitle(name) {
|
|
@@ -25688,8 +25750,8 @@ function insertPlainTextAtSelection(root, text) {
|
|
|
25688
25750
|
}
|
|
25689
25751
|
function PageTitle({ editor, editable }) {
|
|
25690
25752
|
const t = useTranslate();
|
|
25691
|
-
const [title, setTitle] =
|
|
25692
|
-
const [hasIcon, setHasIcon] =
|
|
25753
|
+
const [title, setTitle] = useState100("");
|
|
25754
|
+
const [hasIcon, setHasIcon] = useState100(false);
|
|
25693
25755
|
const titleRef = useRef30(null);
|
|
25694
25756
|
const isComposing = useRef30(false);
|
|
25695
25757
|
useEffect86(() => {
|
|
@@ -25717,7 +25779,7 @@ function PageTitle({ editor, editable }) {
|
|
|
25717
25779
|
titleRef.current.textContent = title;
|
|
25718
25780
|
}
|
|
25719
25781
|
}, [title]);
|
|
25720
|
-
const saveTitle =
|
|
25782
|
+
const saveTitle = useCallback84(
|
|
25721
25783
|
async (newTitle) => {
|
|
25722
25784
|
const trimmed = newTitle.trim();
|
|
25723
25785
|
const toSave = trimmed || DEFAULT_TITLE;
|
|
@@ -25733,19 +25795,19 @@ function PageTitle({ editor, editable }) {
|
|
|
25733
25795
|
},
|
|
25734
25796
|
[editor]
|
|
25735
25797
|
);
|
|
25736
|
-
const handleInput =
|
|
25798
|
+
const handleInput = useCallback84(() => {
|
|
25737
25799
|
if (titleRef.current) {
|
|
25738
25800
|
cleanEmptyEditable(titleRef.current);
|
|
25739
25801
|
setTitle(titleRef.current.textContent || "");
|
|
25740
25802
|
}
|
|
25741
25803
|
}, []);
|
|
25742
|
-
const handleBlur =
|
|
25804
|
+
const handleBlur = useCallback84(() => {
|
|
25743
25805
|
if (titleRef.current) {
|
|
25744
25806
|
cleanEmptyEditable(titleRef.current);
|
|
25745
25807
|
saveTitle(titleRef.current.textContent || "");
|
|
25746
25808
|
}
|
|
25747
25809
|
}, [saveTitle]);
|
|
25748
|
-
const handleKeyDown =
|
|
25810
|
+
const handleKeyDown = useCallback84(
|
|
25749
25811
|
(e) => {
|
|
25750
25812
|
if (isComposing.current) return;
|
|
25751
25813
|
if (e.key === "Enter" || e.key === "ArrowDown") {
|
|
@@ -25780,7 +25842,7 @@ function PageTitle({ editor, editable }) {
|
|
|
25780
25842
|
container?.removeEventListener("keydown", handleEditorKeyDown, true);
|
|
25781
25843
|
};
|
|
25782
25844
|
}, [editor]);
|
|
25783
|
-
const handlePaste =
|
|
25845
|
+
const handlePaste = useCallback84((e) => {
|
|
25784
25846
|
e.preventDefault();
|
|
25785
25847
|
const text = e.clipboardData.getData("text/plain").replace(/\r?\n/g, " ");
|
|
25786
25848
|
if (titleRef.current) {
|
|
@@ -25846,7 +25908,7 @@ if (typeof document !== "undefined") {
|
|
|
25846
25908
|
}
|
|
25847
25909
|
|
|
25848
25910
|
// src/mantine/components/ExternalDropZone.tsx
|
|
25849
|
-
import React232, { useCallback as
|
|
25911
|
+
import React232, { useCallback as useCallback85, useEffect as useEffect87, useRef as useRef31, useState as useState101 } from "react";
|
|
25850
25912
|
import { Box as Box56 } from "@mantine/core";
|
|
25851
25913
|
var SCROLL_ZONE_SIZE = 80;
|
|
25852
25914
|
var SCROLL_SPEED = 12;
|
|
@@ -25860,19 +25922,19 @@ var ExternalDropZone = ({
|
|
|
25860
25922
|
children
|
|
25861
25923
|
}) => {
|
|
25862
25924
|
const containerRef = useRef31(null);
|
|
25863
|
-
const [isValidDrag, setIsValidDrag] =
|
|
25864
|
-
const [isHoveringInPlacementMode, setIsHoveringInPlacementMode] =
|
|
25865
|
-
const [indicatorStyle, setIndicatorStyle] =
|
|
25925
|
+
const [isValidDrag, setIsValidDrag] = useState101(false);
|
|
25926
|
+
const [isHoveringInPlacementMode, setIsHoveringInPlacementMode] = useState101(false);
|
|
25927
|
+
const [indicatorStyle, setIndicatorStyle] = useState101({});
|
|
25866
25928
|
const dropPositionRef = useRef31(null);
|
|
25867
25929
|
const scrollAnimationRef = useRef31(null);
|
|
25868
25930
|
const scrollDirectionRef = useRef31(null);
|
|
25869
25931
|
const scrollContainerRef = useRef31(null);
|
|
25870
|
-
const getBlockElements =
|
|
25932
|
+
const getBlockElements = useCallback85(() => {
|
|
25871
25933
|
if (!containerRef.current) return [];
|
|
25872
25934
|
const blocks = containerRef.current.querySelectorAll('[data-node-type="blockContainer"]');
|
|
25873
25935
|
return Array.from(blocks);
|
|
25874
25936
|
}, []);
|
|
25875
|
-
const getScrollContainer =
|
|
25937
|
+
const getScrollContainer = useCallback85(() => {
|
|
25876
25938
|
if (scrollContainerRef.current) return scrollContainerRef.current;
|
|
25877
25939
|
let element = containerRef.current;
|
|
25878
25940
|
while (element) {
|
|
@@ -25887,7 +25949,7 @@ var ExternalDropZone = ({
|
|
|
25887
25949
|
scrollContainerRef.current = window;
|
|
25888
25950
|
return window;
|
|
25889
25951
|
}, []);
|
|
25890
|
-
const performScroll =
|
|
25952
|
+
const performScroll = useCallback85(() => {
|
|
25891
25953
|
const container = getScrollContainer();
|
|
25892
25954
|
const direction = scrollDirectionRef.current;
|
|
25893
25955
|
if (!direction) {
|
|
@@ -25902,7 +25964,7 @@ var ExternalDropZone = ({
|
|
|
25902
25964
|
}
|
|
25903
25965
|
scrollAnimationRef.current = requestAnimationFrame(performScroll);
|
|
25904
25966
|
}, [getScrollContainer]);
|
|
25905
|
-
const startAutoScroll =
|
|
25967
|
+
const startAutoScroll = useCallback85(
|
|
25906
25968
|
(direction) => {
|
|
25907
25969
|
if (scrollDirectionRef.current === direction) return;
|
|
25908
25970
|
scrollDirectionRef.current = direction;
|
|
@@ -25912,14 +25974,14 @@ var ExternalDropZone = ({
|
|
|
25912
25974
|
},
|
|
25913
25975
|
[performScroll]
|
|
25914
25976
|
);
|
|
25915
|
-
const stopAutoScroll =
|
|
25977
|
+
const stopAutoScroll = useCallback85(() => {
|
|
25916
25978
|
scrollDirectionRef.current = null;
|
|
25917
25979
|
if (scrollAnimationRef.current) {
|
|
25918
25980
|
cancelAnimationFrame(scrollAnimationRef.current);
|
|
25919
25981
|
scrollAnimationRef.current = null;
|
|
25920
25982
|
}
|
|
25921
25983
|
}, []);
|
|
25922
|
-
const checkAutoScroll =
|
|
25984
|
+
const checkAutoScroll = useCallback85(
|
|
25923
25985
|
(clientY) => {
|
|
25924
25986
|
const container = getScrollContainer();
|
|
25925
25987
|
let containerTop;
|
|
@@ -25942,7 +26004,7 @@ var ExternalDropZone = ({
|
|
|
25942
26004
|
},
|
|
25943
26005
|
[getScrollContainer, startAutoScroll, stopAutoScroll]
|
|
25944
26006
|
);
|
|
25945
|
-
const findDropPosition =
|
|
26007
|
+
const findDropPosition = useCallback85(
|
|
25946
26008
|
(clientY) => {
|
|
25947
26009
|
const blocks = getBlockElements();
|
|
25948
26010
|
if (blocks.length === 0 || !editor?.document) return null;
|
|
@@ -25975,7 +26037,7 @@ var ExternalDropZone = ({
|
|
|
25975
26037
|
},
|
|
25976
26038
|
[getBlockElements, editor]
|
|
25977
26039
|
);
|
|
25978
|
-
const handleDragOver =
|
|
26040
|
+
const handleDragOver = useCallback85(
|
|
25979
26041
|
(e) => {
|
|
25980
26042
|
if (!e.dataTransfer.types.includes(acceptedType)) return;
|
|
25981
26043
|
e.preventDefault();
|
|
@@ -25998,7 +26060,7 @@ var ExternalDropZone = ({
|
|
|
25998
26060
|
},
|
|
25999
26061
|
[acceptedType, findDropPosition, checkAutoScroll]
|
|
26000
26062
|
);
|
|
26001
|
-
const handleDragLeave =
|
|
26063
|
+
const handleDragLeave = useCallback85(
|
|
26002
26064
|
(e) => {
|
|
26003
26065
|
if (containerRef.current && !containerRef.current.contains(e.relatedTarget)) {
|
|
26004
26066
|
setIsValidDrag(false);
|
|
@@ -26008,7 +26070,7 @@ var ExternalDropZone = ({
|
|
|
26008
26070
|
},
|
|
26009
26071
|
[stopAutoScroll]
|
|
26010
26072
|
);
|
|
26011
|
-
const handleDrop =
|
|
26073
|
+
const handleDrop = useCallback85(
|
|
26012
26074
|
(e) => {
|
|
26013
26075
|
e.preventDefault();
|
|
26014
26076
|
e.stopPropagation();
|
|
@@ -26031,7 +26093,7 @@ var ExternalDropZone = ({
|
|
|
26031
26093
|
window.addEventListener("dragend", handleGlobalDragEnd);
|
|
26032
26094
|
return () => window.removeEventListener("dragend", handleGlobalDragEnd);
|
|
26033
26095
|
}, [stopAutoScroll]);
|
|
26034
|
-
const handleOverlayMouseMove =
|
|
26096
|
+
const handleOverlayMouseMove = useCallback85(
|
|
26035
26097
|
(e) => {
|
|
26036
26098
|
setIsHoveringInPlacementMode(true);
|
|
26037
26099
|
checkAutoScroll(e.clientY);
|
|
@@ -26050,12 +26112,12 @@ var ExternalDropZone = ({
|
|
|
26050
26112
|
},
|
|
26051
26113
|
[findDropPosition, checkAutoScroll]
|
|
26052
26114
|
);
|
|
26053
|
-
const handleOverlayMouseLeave =
|
|
26115
|
+
const handleOverlayMouseLeave = useCallback85(() => {
|
|
26054
26116
|
setIsHoveringInPlacementMode(false);
|
|
26055
26117
|
dropPositionRef.current = null;
|
|
26056
26118
|
stopAutoScroll();
|
|
26057
26119
|
}, [stopAutoScroll]);
|
|
26058
|
-
const handleOverlayClick =
|
|
26120
|
+
const handleOverlayClick = useCallback85(
|
|
26059
26121
|
(e) => {
|
|
26060
26122
|
e.preventDefault();
|
|
26061
26123
|
e.stopPropagation();
|
|
@@ -26069,7 +26131,7 @@ var ExternalDropZone = ({
|
|
|
26069
26131
|
},
|
|
26070
26132
|
[onDrop, stopAutoScroll]
|
|
26071
26133
|
);
|
|
26072
|
-
const handleOverlayWheel =
|
|
26134
|
+
const handleOverlayWheel = useCallback85(
|
|
26073
26135
|
(e) => {
|
|
26074
26136
|
const container = getScrollContainer();
|
|
26075
26137
|
if (container === window) {
|
|
@@ -26217,7 +26279,7 @@ function sanitizeThemeForMantine7(theme) {
|
|
|
26217
26279
|
}
|
|
26218
26280
|
|
|
26219
26281
|
// src/mantine/components/CommandPalette.tsx
|
|
26220
|
-
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";
|
|
26221
26283
|
import { Box as Box57, Text as Text139, Stack as Stack140 } from "@mantine/core";
|
|
26222
26284
|
var GROUP_ORDER = {
|
|
26223
26285
|
Headings: 0,
|
|
@@ -26248,7 +26310,7 @@ function translateGroupLabel(groupKey, t) {
|
|
|
26248
26310
|
}
|
|
26249
26311
|
function PaletteItem({ item, isSelected, onClick, id }) {
|
|
26250
26312
|
const ref = useRef32(null);
|
|
26251
|
-
const [hovered, setHovered] =
|
|
26313
|
+
const [hovered, setHovered] = useState102(false);
|
|
26252
26314
|
useEffect88(() => {
|
|
26253
26315
|
if (isSelected && ref.current) {
|
|
26254
26316
|
ref.current.scrollIntoView({ block: "nearest" });
|
|
@@ -26333,7 +26395,7 @@ function CommandPalette({ items, onItemClick, loadingState, selectedIndex }) {
|
|
|
26333
26395
|
}
|
|
26334
26396
|
return groups;
|
|
26335
26397
|
}, [items]);
|
|
26336
|
-
const handleItemClick =
|
|
26398
|
+
const handleItemClick = useCallback86(
|
|
26337
26399
|
(item) => {
|
|
26338
26400
|
onItemClick?.(item);
|
|
26339
26401
|
},
|
|
@@ -26766,7 +26828,7 @@ function IxoEditor({
|
|
|
26766
26828
|
}
|
|
26767
26829
|
|
|
26768
26830
|
// src/mantine/components/DevUcanGrantButton.tsx
|
|
26769
|
-
import React236, { useEffect as useEffect90, useMemo as useMemo105, useState as
|
|
26831
|
+
import React236, { useEffect as useEffect90, useMemo as useMemo105, useState as useState103 } from "react";
|
|
26770
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";
|
|
26771
26833
|
import { IconKey as IconKey6, IconShieldPlus as IconShieldPlus4 } from "@tabler/icons-react";
|
|
26772
26834
|
var FLOW_AGENT_COMMAND_TYPES = [
|
|
@@ -26846,21 +26908,21 @@ function DevUcanGrantButton({
|
|
|
26846
26908
|
const editorHandlers = getHandlersFromEditor(editor);
|
|
26847
26909
|
const handlers = propHandlers || contextHandlers || editorHandlers;
|
|
26848
26910
|
const isControlled = controlledOpened !== void 0;
|
|
26849
|
-
const [uncontrolledOpened, setUncontrolledOpened] =
|
|
26911
|
+
const [uncontrolledOpened, setUncontrolledOpened] = useState103(false);
|
|
26850
26912
|
const opened = isControlled ? controlledOpened : uncontrolledOpened;
|
|
26851
26913
|
const setOpened = (next) => {
|
|
26852
26914
|
if (!isControlled) setUncontrolledOpened(next);
|
|
26853
26915
|
onOpenedChange?.(next);
|
|
26854
26916
|
};
|
|
26855
|
-
const [members, setMembers] =
|
|
26856
|
-
const [selectedMemberDid, setSelectedMemberDid] =
|
|
26857
|
-
const [selectedCapabilities, setSelectedCapabilities] =
|
|
26858
|
-
const [loadingMembers, setLoadingMembers] =
|
|
26859
|
-
const [signing, setSigning] =
|
|
26860
|
-
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);
|
|
26861
26923
|
const roomId = editor.getRoomId?.() || "";
|
|
26862
26924
|
const matrixClient = editor.getMatrixClient?.();
|
|
26863
|
-
const flowOwnerDid = editor.getFlowOwnerDid?.() ||
|
|
26925
|
+
const flowOwnerDid = editor.getFlowOwnerDid?.() || "";
|
|
26864
26926
|
const rootCapability = editor.getRootCapability?.();
|
|
26865
26927
|
const rootProofCid = getProofCid(rootCapability);
|
|
26866
26928
|
const rootProofDelegation = typeof rootCapability?.delegation === "string" && rootCapability.delegation ? rootCapability.delegation : "";
|
|
@@ -27054,15 +27116,15 @@ function DevUcanGrantButton({
|
|
|
27054
27116
|
}
|
|
27055
27117
|
|
|
27056
27118
|
// src/mantine/components/EntitySigningSetup.tsx
|
|
27057
|
-
import React237, { useState as
|
|
27119
|
+
import React237, { useState as useState104 } from "react";
|
|
27058
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";
|
|
27059
27121
|
import { IconAlertCircle as IconAlertCircle17, IconCheck as IconCheck20, IconKey as IconKey7 } from "@tabler/icons-react";
|
|
27060
27122
|
var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) => {
|
|
27061
|
-
const [pin, setPin] =
|
|
27062
|
-
const [confirmPin, setConfirmPin] =
|
|
27063
|
-
const [loading, setLoading] =
|
|
27064
|
-
const [error, setError] =
|
|
27065
|
-
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);
|
|
27066
27128
|
const handleSetup = async () => {
|
|
27067
27129
|
if (pin.length < 4) {
|
|
27068
27130
|
setError("PIN must be at least 4 characters");
|
|
@@ -27126,13 +27188,13 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
|
|
|
27126
27188
|
};
|
|
27127
27189
|
|
|
27128
27190
|
// src/mantine/components/FlowPermissionsPanel.tsx
|
|
27129
|
-
import React238, { useState as
|
|
27191
|
+
import React238, { useState as useState105, useEffect as useEffect91, useMemo as useMemo106 } from "react";
|
|
27130
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";
|
|
27131
27193
|
import { IconPlus as IconPlus10, IconTrash as IconTrash13, IconShieldCheck as IconShieldCheck15, IconUser as IconUser14, IconRobot as IconRobot5, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
|
|
27132
27194
|
var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
|
|
27133
|
-
const [delegations, setDelegations] =
|
|
27134
|
-
const [loading, setLoading] =
|
|
27135
|
-
const [revoking, setRevoking] =
|
|
27195
|
+
const [delegations, setDelegations] = useState105([]);
|
|
27196
|
+
const [loading, setLoading] = useState105(true);
|
|
27197
|
+
const [revoking, setRevoking] = useState105(null);
|
|
27136
27198
|
const rootDelegation = useMemo106(() => {
|
|
27137
27199
|
if (editor.getUcanService) {
|
|
27138
27200
|
return editor.getUcanService()?.getRootDelegation() || null;
|
|
@@ -27213,28 +27275,27 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
|
|
|
27213
27275
|
};
|
|
27214
27276
|
|
|
27215
27277
|
// src/mantine/components/GrantPermissionModal.tsx
|
|
27216
|
-
import React239, { useState as
|
|
27278
|
+
import React239, { useState as useState106, useCallback as useCallback87 } from "react";
|
|
27217
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";
|
|
27218
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;
|
|
27219
27282
|
var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, searchUsers, getOracles, onGrant }) => {
|
|
27220
27283
|
const singleBlockMode = !!targetBlockId || blocks.length === 1;
|
|
27221
27284
|
const fixedBlockId = targetBlockId || (blocks.length === 1 ? blocks[0].id : null);
|
|
27222
27285
|
const fixedBlock = fixedBlockId ? blocks.find((b) => b.id === fixedBlockId) || blocks[0] : null;
|
|
27223
|
-
const [recipientType, setRecipientType] =
|
|
27224
|
-
const [searchQuery, setSearchQuery] =
|
|
27225
|
-
const [searchResults, setSearchResults] =
|
|
27226
|
-
const [searching, setSearching] =
|
|
27227
|
-
const [selectedRecipient, setSelectedRecipient] =
|
|
27228
|
-
const [manualDid, setManualDid] =
|
|
27229
|
-
const [scopeType, setScopeType] =
|
|
27230
|
-
const [selectedBlocks, setSelectedBlocks] =
|
|
27231
|
-
const [
|
|
27232
|
-
const [
|
|
27233
|
-
const [
|
|
27234
|
-
const [
|
|
27235
|
-
const
|
|
27236
|
-
const [error, setError] = useState105(null);
|
|
27237
|
-
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 () => {
|
|
27238
27299
|
if (searchQuery.length < 2) return;
|
|
27239
27300
|
setSearching(true);
|
|
27240
27301
|
try {
|
|
@@ -27275,15 +27336,19 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
|
|
|
27275
27336
|
setError("Please select at least one block or use full access");
|
|
27276
27337
|
return;
|
|
27277
27338
|
}
|
|
27278
|
-
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;
|
|
27279
27345
|
const grant = {
|
|
27280
27346
|
audience,
|
|
27281
27347
|
audienceDisplayName: recipientType === "manual" ? manualDid : selectedRecipient?.displayName,
|
|
27282
27348
|
capabilities,
|
|
27283
27349
|
proofs: [],
|
|
27284
27350
|
// Will be filled by parent component
|
|
27285
|
-
expiration
|
|
27286
|
-
canDelegate
|
|
27351
|
+
expiration
|
|
27287
27352
|
};
|
|
27288
27353
|
setLoading(true);
|
|
27289
27354
|
setError(null);
|
|
@@ -27309,9 +27374,7 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
|
|
|
27309
27374
|
setManualDid("");
|
|
27310
27375
|
setScopeType("full");
|
|
27311
27376
|
setSelectedBlocks([]);
|
|
27312
|
-
|
|
27313
|
-
setExpirationDays(30);
|
|
27314
|
-
setCanDelegate(false);
|
|
27377
|
+
setExpirationDays(MAX_GRANT_DAYS2);
|
|
27315
27378
|
setPin("");
|
|
27316
27379
|
setError(null);
|
|
27317
27380
|
};
|
|
@@ -27370,15 +27433,7 @@ var GrantPermissionModal = ({ opened, onClose, flowUri, blocks, targetBlockId, s
|
|
|
27370
27433
|
}
|
|
27371
27434
|
}
|
|
27372
27435
|
)))))
|
|
27373
|
-
)), /* @__PURE__ */ React239.createElement(Divider23, null), /* @__PURE__ */ React239.createElement(Stack144, { gap: "xs" }, /* @__PURE__ */ React239.createElement(
|
|
27374
|
-
Checkbox8,
|
|
27375
|
-
{
|
|
27376
|
-
label: "Recipient can grant permissions to others",
|
|
27377
|
-
description: "Allow this recipient to delegate their permissions",
|
|
27378
|
-
checked: canDelegate,
|
|
27379
|
-
onChange: (e) => setCanDelegate(e.currentTarget.checked)
|
|
27380
|
-
}
|
|
27381
|
-
), /* @__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")))
|
|
27382
27437
|
);
|
|
27383
27438
|
};
|
|
27384
27439
|
|
|
@@ -27505,4 +27560,4 @@ export {
|
|
|
27505
27560
|
ixoGraphQLClient,
|
|
27506
27561
|
getEntity
|
|
27507
27562
|
};
|
|
27508
|
-
//# sourceMappingURL=chunk-
|
|
27563
|
+
//# sourceMappingURL=chunk-EWDTMHPF.js.map
|