@ixo/editor 1.3.0 → 1.5.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-N4T5JPKZ.mjs → chunk-VGSTHGS4.mjs} +907 -1005
- package/dist/chunk-VGSTHGS4.mjs.map +1 -0
- package/dist/index.d.ts +20 -41
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-N4T5JPKZ.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -749,12 +749,11 @@ interface CreateProposalParams {
|
|
|
749
749
|
coreAddress?: string;
|
|
750
750
|
}
|
|
751
751
|
interface BlocknoteHandlers {
|
|
752
|
-
getCurrentDao: () => Promise<{
|
|
753
|
-
coreAddress: string;
|
|
754
|
-
}>;
|
|
755
752
|
getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
|
|
756
753
|
getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
|
|
757
|
-
getCurrentUser: () =>
|
|
754
|
+
getCurrentUser: () => User;
|
|
755
|
+
getDaoGroupsIds: () => string[] | undefined;
|
|
756
|
+
getEntityDid: () => string | undefined;
|
|
758
757
|
vote: ({ proposalId, rationale, vote, proposalContractAddress }: VoteParams) => Promise<void>;
|
|
759
758
|
createProposal: (params: CreateProposalParams) => Promise<string>;
|
|
760
759
|
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
@@ -794,6 +793,10 @@ interface BlocknoteHandlers {
|
|
|
794
793
|
data: Member[];
|
|
795
794
|
totalCount: number;
|
|
796
795
|
}>;
|
|
796
|
+
getDaoMembers: (address: string, groupIds: string[], withBalance: boolean, page: number) => Promise<{
|
|
797
|
+
data: Member[];
|
|
798
|
+
totalCount: number;
|
|
799
|
+
}>;
|
|
797
800
|
getValidators: (relayerDid: string, page: number) => Promise<{
|
|
798
801
|
data: Validator[];
|
|
799
802
|
totalCount: number;
|
|
@@ -859,7 +862,9 @@ type GroupMembersListType = 'group_members';
|
|
|
859
862
|
|
|
860
863
|
type ValidatorsListType = 'validators';
|
|
861
864
|
|
|
862
|
-
type
|
|
865
|
+
type DaoMembersListType = 'dao_members';
|
|
866
|
+
|
|
867
|
+
type ListType = LinkedResourcesListType | AssetsListType | TransactionsListType | CollectionsListType | InvestmentsListType | OraclesListType | PodsListType | ProposalsListType | RequestsListType | GroupMembersListType | ValidatorsListType | DaoMembersListType;
|
|
863
868
|
|
|
864
869
|
interface ListBlockSettings {
|
|
865
870
|
listType: ListType | null;
|
|
@@ -955,15 +960,6 @@ declare const ProposalVoteBlockSpec: {
|
|
|
955
960
|
readonly dependsOn: {
|
|
956
961
|
readonly default: string;
|
|
957
962
|
};
|
|
958
|
-
readonly proposalBlockId: {
|
|
959
|
-
readonly default: "";
|
|
960
|
-
};
|
|
961
|
-
readonly hasDependencies: {
|
|
962
|
-
readonly default: true;
|
|
963
|
-
};
|
|
964
|
-
readonly dependencies: {
|
|
965
|
-
readonly default: "";
|
|
966
|
-
};
|
|
967
963
|
readonly title: {
|
|
968
964
|
readonly default: "";
|
|
969
965
|
};
|
|
@@ -994,15 +990,6 @@ declare const ProposalVoteBlockSpec: {
|
|
|
994
990
|
readonly dependsOn: {
|
|
995
991
|
readonly default: string;
|
|
996
992
|
};
|
|
997
|
-
readonly proposalBlockId: {
|
|
998
|
-
readonly default: "";
|
|
999
|
-
};
|
|
1000
|
-
readonly hasDependencies: {
|
|
1001
|
-
readonly default: true;
|
|
1002
|
-
};
|
|
1003
|
-
readonly dependencies: {
|
|
1004
|
-
readonly default: "";
|
|
1005
|
-
};
|
|
1006
993
|
readonly title: {
|
|
1007
994
|
readonly default: "";
|
|
1008
995
|
};
|
|
@@ -1207,15 +1194,6 @@ declare const blockSpecs: {
|
|
|
1207
1194
|
readonly dependsOn: {
|
|
1208
1195
|
readonly default: string;
|
|
1209
1196
|
};
|
|
1210
|
-
readonly proposalBlockId: {
|
|
1211
|
-
readonly default: "";
|
|
1212
|
-
};
|
|
1213
|
-
readonly hasDependencies: {
|
|
1214
|
-
readonly default: true;
|
|
1215
|
-
};
|
|
1216
|
-
readonly dependencies: {
|
|
1217
|
-
readonly default: "";
|
|
1218
|
-
};
|
|
1219
1197
|
readonly title: {
|
|
1220
1198
|
readonly default: "";
|
|
1221
1199
|
};
|
|
@@ -1246,15 +1224,6 @@ declare const blockSpecs: {
|
|
|
1246
1224
|
readonly dependsOn: {
|
|
1247
1225
|
readonly default: string;
|
|
1248
1226
|
};
|
|
1249
|
-
readonly proposalBlockId: {
|
|
1250
|
-
readonly default: "";
|
|
1251
|
-
};
|
|
1252
|
-
readonly hasDependencies: {
|
|
1253
|
-
readonly default: true;
|
|
1254
|
-
};
|
|
1255
|
-
readonly dependencies: {
|
|
1256
|
-
readonly default: "";
|
|
1257
|
-
};
|
|
1258
1227
|
readonly title: {
|
|
1259
1228
|
readonly default: "";
|
|
1260
1229
|
};
|
|
@@ -1460,6 +1429,16 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
|
|
|
1460
1429
|
* @returns Array of flow blocks
|
|
1461
1430
|
*/
|
|
1462
1431
|
getFlow?: () => any[];
|
|
1432
|
+
/**
|
|
1433
|
+
* Get the document type (template, flow, page, or empty)
|
|
1434
|
+
* @returns Document type string
|
|
1435
|
+
*/
|
|
1436
|
+
getDocType?: () => string;
|
|
1437
|
+
/**
|
|
1438
|
+
* Set the document type (template, flow, page, or empty)
|
|
1439
|
+
* @param value - Document type to set
|
|
1440
|
+
*/
|
|
1441
|
+
setDocType?: (value: 'template' | 'flow' | 'page' | '') => void;
|
|
1463
1442
|
}
|
|
1464
1443
|
/**
|
|
1465
1444
|
* Re-map BlockNote renderer props to use IxoEditorType instead of BlockNoteEditor.
|
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.5.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
|
},
|