@ixo/editor 1.2.0 → 1.4.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-BO2JVTVH.mjs} +2074 -699
- package/dist/chunk-BO2JVTVH.mjs.map +1 -0
- package/dist/index.d.ts +238 -10
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.mjs +1 -1
- package/package.json +2 -2
- 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;
|
|
@@ -660,14 +749,58 @@ interface CreateProposalParams {
|
|
|
660
749
|
coreAddress?: string;
|
|
661
750
|
}
|
|
662
751
|
interface BlocknoteHandlers {
|
|
663
|
-
getCurrentDao: () => Promise<{
|
|
664
|
-
coreAddress: string;
|
|
665
|
-
}>;
|
|
666
752
|
getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
|
|
667
753
|
getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
|
|
668
|
-
getCurrentUser: () =>
|
|
754
|
+
getCurrentUser: () => User;
|
|
755
|
+
getDaoGroupsIds: () => string[] | undefined;
|
|
756
|
+
getEntityDid: () => string | undefined;
|
|
669
757
|
vote: ({ proposalId, rationale, vote, proposalContractAddress }: VoteParams) => Promise<void>;
|
|
670
758
|
createProposal: (params: CreateProposalParams) => Promise<string>;
|
|
759
|
+
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
760
|
+
getAssets: (collectionDid: string, page: number) => Promise<{
|
|
761
|
+
data: Asset[];
|
|
762
|
+
totalCount: number;
|
|
763
|
+
}>;
|
|
764
|
+
getCollections: (relayerDid: string, page: number) => Promise<{
|
|
765
|
+
data: Collection[];
|
|
766
|
+
totalCount: number;
|
|
767
|
+
}>;
|
|
768
|
+
getTransactions: (address: string, page: number) => Promise<{
|
|
769
|
+
data: Transaction[];
|
|
770
|
+
totalCount: number;
|
|
771
|
+
}>;
|
|
772
|
+
getInvestments: (relayerDid: string, page: number) => Promise<{
|
|
773
|
+
data: Investment[];
|
|
774
|
+
totalCount: number;
|
|
775
|
+
}>;
|
|
776
|
+
getOracles: (relayerDid: string, page: number) => Promise<{
|
|
777
|
+
data: Oracle[];
|
|
778
|
+
totalCount: number;
|
|
779
|
+
}>;
|
|
780
|
+
getPODs: (relayerDid: string, page: number) => Promise<{
|
|
781
|
+
data: POD[];
|
|
782
|
+
totalCount: number;
|
|
783
|
+
}>;
|
|
784
|
+
getProposals: (relayerDid: string, page: number) => Promise<{
|
|
785
|
+
data: Proposal[];
|
|
786
|
+
totalCount: number;
|
|
787
|
+
}>;
|
|
788
|
+
getRequests: (relayerDid: string, page: number) => Promise<{
|
|
789
|
+
data: Request[];
|
|
790
|
+
totalCount: number;
|
|
791
|
+
}>;
|
|
792
|
+
getMembers: (address: string, groupCoreAddress: string, withBalance: boolean, page: number) => Promise<{
|
|
793
|
+
data: Member[];
|
|
794
|
+
totalCount: number;
|
|
795
|
+
}>;
|
|
796
|
+
getDaoMembers: (address: string, groupIds: string[], withBalance: boolean, page: number) => Promise<{
|
|
797
|
+
data: Member[];
|
|
798
|
+
totalCount: number;
|
|
799
|
+
}>;
|
|
800
|
+
getValidators: (relayerDid: string, page: number) => Promise<{
|
|
801
|
+
data: Validator[];
|
|
802
|
+
totalCount: number;
|
|
803
|
+
}>;
|
|
671
804
|
executeProposal: (params: {
|
|
672
805
|
proposalId: number;
|
|
673
806
|
proposalContractAddress: string;
|
|
@@ -682,9 +815,6 @@ interface BlocknoteHandlers {
|
|
|
682
815
|
}) => Promise<{
|
|
683
816
|
preProposalContractAddress: string;
|
|
684
817
|
}>;
|
|
685
|
-
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
686
|
-
getAssets: (collectionDid: string) => Promise<Asset[]>;
|
|
687
|
-
getTransactions: (address: string) => Promise<Transaction[]>;
|
|
688
818
|
}
|
|
689
819
|
interface BlocknoteContextValue {
|
|
690
820
|
editor?: IxoEditorType;
|
|
@@ -716,7 +846,25 @@ type AssetsListType = 'assets';
|
|
|
716
846
|
|
|
717
847
|
type TransactionsListType = 'transactions';
|
|
718
848
|
|
|
719
|
-
type
|
|
849
|
+
type CollectionsListType = 'collections';
|
|
850
|
+
|
|
851
|
+
type InvestmentsListType = 'investments';
|
|
852
|
+
|
|
853
|
+
type OraclesListType = 'oracles';
|
|
854
|
+
|
|
855
|
+
type PodsListType = 'pods';
|
|
856
|
+
|
|
857
|
+
type ProposalsListType = 'proposals';
|
|
858
|
+
|
|
859
|
+
type RequestsListType = 'requests';
|
|
860
|
+
|
|
861
|
+
type GroupMembersListType = 'group_members';
|
|
862
|
+
|
|
863
|
+
type ValidatorsListType = 'validators';
|
|
864
|
+
|
|
865
|
+
type DaoMembersListType = 'dao_members';
|
|
866
|
+
|
|
867
|
+
type ListType = LinkedResourcesListType | AssetsListType | TransactionsListType | CollectionsListType | InvestmentsListType | OraclesListType | PodsListType | ProposalsListType | RequestsListType | GroupMembersListType | ValidatorsListType | DaoMembersListType;
|
|
720
868
|
|
|
721
869
|
interface ListBlockSettings {
|
|
722
870
|
listType: ListType | null;
|
|
@@ -733,6 +881,18 @@ declare const ListBlock: {
|
|
|
733
881
|
readonly listType: {
|
|
734
882
|
readonly default: "";
|
|
735
883
|
};
|
|
884
|
+
readonly sort: {
|
|
885
|
+
readonly default: "{}";
|
|
886
|
+
};
|
|
887
|
+
readonly filter: {
|
|
888
|
+
readonly default: "{}";
|
|
889
|
+
};
|
|
890
|
+
readonly filterOptions: {
|
|
891
|
+
readonly default: "{}";
|
|
892
|
+
};
|
|
893
|
+
readonly sortOptions: {
|
|
894
|
+
readonly default: "{}";
|
|
895
|
+
};
|
|
736
896
|
readonly listConfig: {
|
|
737
897
|
readonly default: "{}";
|
|
738
898
|
};
|
|
@@ -745,6 +905,18 @@ declare const ListBlock: {
|
|
|
745
905
|
readonly listType: {
|
|
746
906
|
readonly default: "";
|
|
747
907
|
};
|
|
908
|
+
readonly sort: {
|
|
909
|
+
readonly default: "{}";
|
|
910
|
+
};
|
|
911
|
+
readonly filter: {
|
|
912
|
+
readonly default: "{}";
|
|
913
|
+
};
|
|
914
|
+
readonly filterOptions: {
|
|
915
|
+
readonly default: "{}";
|
|
916
|
+
};
|
|
917
|
+
readonly sortOptions: {
|
|
918
|
+
readonly default: "{}";
|
|
919
|
+
};
|
|
748
920
|
readonly listConfig: {
|
|
749
921
|
readonly default: "{}";
|
|
750
922
|
};
|
|
@@ -938,6 +1110,18 @@ declare const blockSpecs: {
|
|
|
938
1110
|
readonly listType: {
|
|
939
1111
|
readonly default: "";
|
|
940
1112
|
};
|
|
1113
|
+
readonly sort: {
|
|
1114
|
+
readonly default: "{}";
|
|
1115
|
+
};
|
|
1116
|
+
readonly filter: {
|
|
1117
|
+
readonly default: "{}";
|
|
1118
|
+
};
|
|
1119
|
+
readonly filterOptions: {
|
|
1120
|
+
readonly default: "{}";
|
|
1121
|
+
};
|
|
1122
|
+
readonly sortOptions: {
|
|
1123
|
+
readonly default: "{}";
|
|
1124
|
+
};
|
|
941
1125
|
readonly listConfig: {
|
|
942
1126
|
readonly default: "{}";
|
|
943
1127
|
};
|
|
@@ -946,6 +1130,32 @@ declare const blockSpecs: {
|
|
|
946
1130
|
};
|
|
947
1131
|
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
948
1132
|
readonly type: "list";
|
|
1133
|
+
readonly propSchema: {
|
|
1134
|
+
readonly listType: {
|
|
1135
|
+
readonly default: "";
|
|
1136
|
+
};
|
|
1137
|
+
readonly sort: {
|
|
1138
|
+
readonly default: "{}";
|
|
1139
|
+
};
|
|
1140
|
+
readonly filter: {
|
|
1141
|
+
readonly default: "{}";
|
|
1142
|
+
};
|
|
1143
|
+
readonly filterOptions: {
|
|
1144
|
+
readonly default: "{}";
|
|
1145
|
+
};
|
|
1146
|
+
readonly sortOptions: {
|
|
1147
|
+
readonly default: "{}";
|
|
1148
|
+
};
|
|
1149
|
+
readonly listConfig: {
|
|
1150
|
+
readonly default: "{}";
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
readonly content: "none";
|
|
1154
|
+
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
1155
|
+
};
|
|
1156
|
+
enumChecklist: {
|
|
1157
|
+
config: {
|
|
1158
|
+
readonly type: "enumChecklist";
|
|
949
1159
|
readonly propSchema: {
|
|
950
1160
|
readonly listType: {
|
|
951
1161
|
readonly default: "";
|
|
@@ -953,6 +1163,24 @@ declare const blockSpecs: {
|
|
|
953
1163
|
readonly listConfig: {
|
|
954
1164
|
readonly default: "{}";
|
|
955
1165
|
};
|
|
1166
|
+
readonly selectedIds: {
|
|
1167
|
+
readonly default: "[]";
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
readonly content: "none";
|
|
1171
|
+
};
|
|
1172
|
+
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
1173
|
+
readonly type: "enumChecklist";
|
|
1174
|
+
readonly propSchema: {
|
|
1175
|
+
readonly listType: {
|
|
1176
|
+
readonly default: "";
|
|
1177
|
+
};
|
|
1178
|
+
readonly listConfig: {
|
|
1179
|
+
readonly default: "{}";
|
|
1180
|
+
};
|
|
1181
|
+
readonly selectedIds: {
|
|
1182
|
+
readonly default: "[]";
|
|
1183
|
+
};
|
|
956
1184
|
};
|
|
957
1185
|
readonly content: "none";
|
|
958
1186
|
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
package/dist/index.mjs
CHANGED
package/dist/mantine/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A custom BlockNote editor wrapper for IXO team",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@ixo/matrix-crdt": "*",
|
|
53
53
|
"@mantine/core": "^7.11.2",
|
|
54
54
|
"@mantine/hooks": "^7.11.2",
|
|
55
|
-
"matrix-js-sdk": "
|
|
55
|
+
"matrix-js-sdk": "37.5.0",
|
|
56
56
|
"react": "^18.0.0",
|
|
57
57
|
"react-dom": "^18.0.0"
|
|
58
58
|
},
|