@ixo/editor 1.2.0 → 1.3.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/{chunk-R6LZUDT7.mjs → chunk-N4T5JPKZ.mjs} +1956 -678
- package/dist/chunk-N4T5JPKZ.mjs.map +1 -0
- package/dist/index.d.ts +229 -6
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-R6LZUDT7.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ declare const CheckboxBlockSpec: {
|
|
|
65
65
|
type CheckboxBlockProps = IxoBlockProps;
|
|
66
66
|
|
|
67
67
|
type ProposalActionType = 'Spend' | 'UpdateMembers' | 'Stake' | 'Join' | 'AuthzExec' | 'AuthzGrant' | 'AuthzRevoke' | 'BurnNft' | 'Mint' | 'Execute' | 'Instantiate' | 'ManageSubDaos' | 'ManageCw721' | 'ManageCw20' | 'Migrate' | 'TransferNft' | 'UpdateAdmin' | 'UpdatePreProposeConfig' | 'UpdateVotingConfig' | 'GovernanceVote' | 'WithdrawTokenSwap' | 'UpdateInfo' | 'Custom' | 'ManageStorageItems' | 'ValidatorActions' | 'PerformTokenSwap' | 'DaoAdminExec' | 'StakeToGroup' | 'SendGroupToken' | 'AcceptToMarketplace' | 'CreateEntity';
|
|
68
|
-
interface Member {
|
|
68
|
+
interface Member$1 {
|
|
69
69
|
address: string;
|
|
70
70
|
weight: number;
|
|
71
71
|
}
|
|
@@ -78,7 +78,7 @@ interface SpendData {
|
|
|
78
78
|
amount: string;
|
|
79
79
|
}
|
|
80
80
|
interface ManageMembersData {
|
|
81
|
-
add: Member[];
|
|
81
|
+
add: Member$1[];
|
|
82
82
|
remove: {
|
|
83
83
|
addr: string;
|
|
84
84
|
}[];
|
|
@@ -634,6 +634,95 @@ interface EntityResponse$1 {
|
|
|
634
634
|
interface Asset {
|
|
635
635
|
did: string;
|
|
636
636
|
alsoKnownAs: string;
|
|
637
|
+
name: string;
|
|
638
|
+
icon: string;
|
|
639
|
+
totalCarbon: number;
|
|
640
|
+
price: number;
|
|
641
|
+
available: boolean;
|
|
642
|
+
currency: string;
|
|
643
|
+
}
|
|
644
|
+
interface POD {
|
|
645
|
+
did: string;
|
|
646
|
+
name: string;
|
|
647
|
+
icon: string;
|
|
648
|
+
members: number;
|
|
649
|
+
isMember: boolean;
|
|
650
|
+
totalProposals: number;
|
|
651
|
+
startDate: string;
|
|
652
|
+
endDate: string;
|
|
653
|
+
}
|
|
654
|
+
interface Request {
|
|
655
|
+
did: string;
|
|
656
|
+
name: string;
|
|
657
|
+
icon: string;
|
|
658
|
+
budget: number;
|
|
659
|
+
isMember: boolean;
|
|
660
|
+
currency: string;
|
|
661
|
+
brand: string;
|
|
662
|
+
totalApplications: number;
|
|
663
|
+
}
|
|
664
|
+
interface Oracle {
|
|
665
|
+
did: string;
|
|
666
|
+
name: string;
|
|
667
|
+
icon: string;
|
|
668
|
+
isActive: boolean;
|
|
669
|
+
isInvited: boolean;
|
|
670
|
+
minPoints: number;
|
|
671
|
+
maxPoints: number;
|
|
672
|
+
currency: string;
|
|
673
|
+
brand: string;
|
|
674
|
+
flowsAmount: number;
|
|
675
|
+
}
|
|
676
|
+
interface Proposal {
|
|
677
|
+
did: string;
|
|
678
|
+
name: string;
|
|
679
|
+
icon: string;
|
|
680
|
+
description: string;
|
|
681
|
+
isVotedOn: boolean;
|
|
682
|
+
vote: string | null;
|
|
683
|
+
status: string;
|
|
684
|
+
}
|
|
685
|
+
interface Member {
|
|
686
|
+
did: string;
|
|
687
|
+
username: string;
|
|
688
|
+
address: string;
|
|
689
|
+
icon: string;
|
|
690
|
+
percentage: string;
|
|
691
|
+
role: string;
|
|
692
|
+
}
|
|
693
|
+
interface Validator {
|
|
694
|
+
did: string;
|
|
695
|
+
name: string;
|
|
696
|
+
description: string;
|
|
697
|
+
icon: string;
|
|
698
|
+
amount: number;
|
|
699
|
+
currency: string;
|
|
700
|
+
commission: number;
|
|
701
|
+
isStaked: boolean;
|
|
702
|
+
isBonding: boolean;
|
|
703
|
+
isActive: boolean;
|
|
704
|
+
}
|
|
705
|
+
interface Investment {
|
|
706
|
+
did: string;
|
|
707
|
+
name: string;
|
|
708
|
+
icon: string;
|
|
709
|
+
brand: string;
|
|
710
|
+
isSubscribed: boolean;
|
|
711
|
+
isOpen: boolean;
|
|
712
|
+
currency: string;
|
|
713
|
+
currentAmount: number;
|
|
714
|
+
maxAmount: number;
|
|
715
|
+
status: string;
|
|
716
|
+
price: number;
|
|
717
|
+
}
|
|
718
|
+
interface Collection {
|
|
719
|
+
did: string;
|
|
720
|
+
name: string;
|
|
721
|
+
brand: string;
|
|
722
|
+
icon: string;
|
|
723
|
+
price: number;
|
|
724
|
+
currency: string;
|
|
725
|
+
totalAssets: number;
|
|
637
726
|
}
|
|
638
727
|
interface Transaction {
|
|
639
728
|
transactionHash: string;
|
|
@@ -668,6 +757,47 @@ interface BlocknoteHandlers {
|
|
|
668
757
|
getCurrentUser: () => Promise<User>;
|
|
669
758
|
vote: ({ proposalId, rationale, vote, proposalContractAddress }: VoteParams) => Promise<void>;
|
|
670
759
|
createProposal: (params: CreateProposalParams) => Promise<string>;
|
|
760
|
+
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
761
|
+
getAssets: (collectionDid: string, page: number) => Promise<{
|
|
762
|
+
data: Asset[];
|
|
763
|
+
totalCount: number;
|
|
764
|
+
}>;
|
|
765
|
+
getCollections: (relayerDid: string, page: number) => Promise<{
|
|
766
|
+
data: Collection[];
|
|
767
|
+
totalCount: number;
|
|
768
|
+
}>;
|
|
769
|
+
getTransactions: (address: string, page: number) => Promise<{
|
|
770
|
+
data: Transaction[];
|
|
771
|
+
totalCount: number;
|
|
772
|
+
}>;
|
|
773
|
+
getInvestments: (relayerDid: string, page: number) => Promise<{
|
|
774
|
+
data: Investment[];
|
|
775
|
+
totalCount: number;
|
|
776
|
+
}>;
|
|
777
|
+
getOracles: (relayerDid: string, page: number) => Promise<{
|
|
778
|
+
data: Oracle[];
|
|
779
|
+
totalCount: number;
|
|
780
|
+
}>;
|
|
781
|
+
getPODs: (relayerDid: string, page: number) => Promise<{
|
|
782
|
+
data: POD[];
|
|
783
|
+
totalCount: number;
|
|
784
|
+
}>;
|
|
785
|
+
getProposals: (relayerDid: string, page: number) => Promise<{
|
|
786
|
+
data: Proposal[];
|
|
787
|
+
totalCount: number;
|
|
788
|
+
}>;
|
|
789
|
+
getRequests: (relayerDid: string, page: number) => Promise<{
|
|
790
|
+
data: Request[];
|
|
791
|
+
totalCount: number;
|
|
792
|
+
}>;
|
|
793
|
+
getMembers: (address: string, groupCoreAddress: string, withBalance: boolean, page: number) => Promise<{
|
|
794
|
+
data: Member[];
|
|
795
|
+
totalCount: number;
|
|
796
|
+
}>;
|
|
797
|
+
getValidators: (relayerDid: string, page: number) => Promise<{
|
|
798
|
+
data: Validator[];
|
|
799
|
+
totalCount: number;
|
|
800
|
+
}>;
|
|
671
801
|
executeProposal: (params: {
|
|
672
802
|
proposalId: number;
|
|
673
803
|
proposalContractAddress: string;
|
|
@@ -682,9 +812,6 @@ interface BlocknoteHandlers {
|
|
|
682
812
|
}) => Promise<{
|
|
683
813
|
preProposalContractAddress: string;
|
|
684
814
|
}>;
|
|
685
|
-
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
686
|
-
getAssets: (collectionDid: string) => Promise<Asset[]>;
|
|
687
|
-
getTransactions: (address: string) => Promise<Transaction[]>;
|
|
688
815
|
}
|
|
689
816
|
interface BlocknoteContextValue {
|
|
690
817
|
editor?: IxoEditorType;
|
|
@@ -716,7 +843,23 @@ type AssetsListType = 'assets';
|
|
|
716
843
|
|
|
717
844
|
type TransactionsListType = 'transactions';
|
|
718
845
|
|
|
719
|
-
type
|
|
846
|
+
type CollectionsListType = 'collections';
|
|
847
|
+
|
|
848
|
+
type InvestmentsListType = 'investments';
|
|
849
|
+
|
|
850
|
+
type OraclesListType = 'oracles';
|
|
851
|
+
|
|
852
|
+
type PodsListType = 'pods';
|
|
853
|
+
|
|
854
|
+
type ProposalsListType = 'proposals';
|
|
855
|
+
|
|
856
|
+
type RequestsListType = 'requests';
|
|
857
|
+
|
|
858
|
+
type GroupMembersListType = 'group_members';
|
|
859
|
+
|
|
860
|
+
type ValidatorsListType = 'validators';
|
|
861
|
+
|
|
862
|
+
type ListType = LinkedResourcesListType | AssetsListType | TransactionsListType | CollectionsListType | InvestmentsListType | OraclesListType | PodsListType | ProposalsListType | RequestsListType | GroupMembersListType | ValidatorsListType;
|
|
720
863
|
|
|
721
864
|
interface ListBlockSettings {
|
|
722
865
|
listType: ListType | null;
|
|
@@ -733,6 +876,18 @@ declare const ListBlock: {
|
|
|
733
876
|
readonly listType: {
|
|
734
877
|
readonly default: "";
|
|
735
878
|
};
|
|
879
|
+
readonly sort: {
|
|
880
|
+
readonly default: "{}";
|
|
881
|
+
};
|
|
882
|
+
readonly filter: {
|
|
883
|
+
readonly default: "{}";
|
|
884
|
+
};
|
|
885
|
+
readonly filterOptions: {
|
|
886
|
+
readonly default: "{}";
|
|
887
|
+
};
|
|
888
|
+
readonly sortOptions: {
|
|
889
|
+
readonly default: "{}";
|
|
890
|
+
};
|
|
736
891
|
readonly listConfig: {
|
|
737
892
|
readonly default: "{}";
|
|
738
893
|
};
|
|
@@ -745,6 +900,18 @@ declare const ListBlock: {
|
|
|
745
900
|
readonly listType: {
|
|
746
901
|
readonly default: "";
|
|
747
902
|
};
|
|
903
|
+
readonly sort: {
|
|
904
|
+
readonly default: "{}";
|
|
905
|
+
};
|
|
906
|
+
readonly filter: {
|
|
907
|
+
readonly default: "{}";
|
|
908
|
+
};
|
|
909
|
+
readonly filterOptions: {
|
|
910
|
+
readonly default: "{}";
|
|
911
|
+
};
|
|
912
|
+
readonly sortOptions: {
|
|
913
|
+
readonly default: "{}";
|
|
914
|
+
};
|
|
748
915
|
readonly listConfig: {
|
|
749
916
|
readonly default: "{}";
|
|
750
917
|
};
|
|
@@ -938,6 +1105,18 @@ declare const blockSpecs: {
|
|
|
938
1105
|
readonly listType: {
|
|
939
1106
|
readonly default: "";
|
|
940
1107
|
};
|
|
1108
|
+
readonly sort: {
|
|
1109
|
+
readonly default: "{}";
|
|
1110
|
+
};
|
|
1111
|
+
readonly filter: {
|
|
1112
|
+
readonly default: "{}";
|
|
1113
|
+
};
|
|
1114
|
+
readonly filterOptions: {
|
|
1115
|
+
readonly default: "{}";
|
|
1116
|
+
};
|
|
1117
|
+
readonly sortOptions: {
|
|
1118
|
+
readonly default: "{}";
|
|
1119
|
+
};
|
|
941
1120
|
readonly listConfig: {
|
|
942
1121
|
readonly default: "{}";
|
|
943
1122
|
};
|
|
@@ -946,6 +1125,32 @@ declare const blockSpecs: {
|
|
|
946
1125
|
};
|
|
947
1126
|
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
948
1127
|
readonly type: "list";
|
|
1128
|
+
readonly propSchema: {
|
|
1129
|
+
readonly listType: {
|
|
1130
|
+
readonly default: "";
|
|
1131
|
+
};
|
|
1132
|
+
readonly sort: {
|
|
1133
|
+
readonly default: "{}";
|
|
1134
|
+
};
|
|
1135
|
+
readonly filter: {
|
|
1136
|
+
readonly default: "{}";
|
|
1137
|
+
};
|
|
1138
|
+
readonly filterOptions: {
|
|
1139
|
+
readonly default: "{}";
|
|
1140
|
+
};
|
|
1141
|
+
readonly sortOptions: {
|
|
1142
|
+
readonly default: "{}";
|
|
1143
|
+
};
|
|
1144
|
+
readonly listConfig: {
|
|
1145
|
+
readonly default: "{}";
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
readonly content: "none";
|
|
1149
|
+
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
1150
|
+
};
|
|
1151
|
+
enumChecklist: {
|
|
1152
|
+
config: {
|
|
1153
|
+
readonly type: "enumChecklist";
|
|
949
1154
|
readonly propSchema: {
|
|
950
1155
|
readonly listType: {
|
|
951
1156
|
readonly default: "";
|
|
@@ -953,6 +1158,24 @@ declare const blockSpecs: {
|
|
|
953
1158
|
readonly listConfig: {
|
|
954
1159
|
readonly default: "{}";
|
|
955
1160
|
};
|
|
1161
|
+
readonly selectedIds: {
|
|
1162
|
+
readonly default: "[]";
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
readonly content: "none";
|
|
1166
|
+
};
|
|
1167
|
+
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
1168
|
+
readonly type: "enumChecklist";
|
|
1169
|
+
readonly propSchema: {
|
|
1170
|
+
readonly listType: {
|
|
1171
|
+
readonly default: "";
|
|
1172
|
+
};
|
|
1173
|
+
readonly listConfig: {
|
|
1174
|
+
readonly default: "{}";
|
|
1175
|
+
};
|
|
1176
|
+
readonly selectedIds: {
|
|
1177
|
+
readonly default: "[]";
|
|
1178
|
+
};
|
|
956
1179
|
};
|
|
957
1180
|
readonly content: "none";
|
|
958
1181
|
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
package/dist/index.mjs
CHANGED
package/dist/mantine/index.mjs
CHANGED