@ixo/editor 1.19.0 → 1.21.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-FDLWSUB5.mjs → chunk-XEZXD5ZV.mjs} +2821 -243
- package/dist/chunk-XEZXD5ZV.mjs.map +1 -0
- package/dist/index.d.ts +398 -22
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.d.ts +18 -0
- package/dist/mantine/index.mjs +7 -3
- package/package.json +2 -1
- package/style-core.css +6 -6
- package/style-mantine.css +6 -6
- package/style.css +6 -6
- package/dist/chunk-FDLWSUB5.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ interface JoinAction extends BaseProposalAction {
|
|
|
182
182
|
type: 'Join';
|
|
183
183
|
data: JoinData;
|
|
184
184
|
}
|
|
185
|
-
interface Coin {
|
|
185
|
+
interface Coin$1 {
|
|
186
186
|
denom: string;
|
|
187
187
|
amount: string;
|
|
188
188
|
}
|
|
@@ -221,27 +221,27 @@ interface MsgWithdrawDelegatorReward {
|
|
|
221
221
|
}
|
|
222
222
|
type BankMsg = {
|
|
223
223
|
send: {
|
|
224
|
-
amount: Coin[];
|
|
224
|
+
amount: Coin$1[];
|
|
225
225
|
to_address: string;
|
|
226
226
|
};
|
|
227
227
|
} | {
|
|
228
228
|
burn: {
|
|
229
|
-
amount: Coin[];
|
|
229
|
+
amount: Coin$1[];
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
232
|
type StakingMsg = {
|
|
233
233
|
delegate: {
|
|
234
|
-
amount: Coin;
|
|
234
|
+
amount: Coin$1;
|
|
235
235
|
validator: string;
|
|
236
236
|
};
|
|
237
237
|
} | {
|
|
238
238
|
undelegate: {
|
|
239
|
-
amount: Coin;
|
|
239
|
+
amount: Coin$1;
|
|
240
240
|
validator: string;
|
|
241
241
|
};
|
|
242
242
|
} | {
|
|
243
243
|
redelegate: {
|
|
244
|
-
amount: Coin;
|
|
244
|
+
amount: Coin$1;
|
|
245
245
|
dst_validator: string;
|
|
246
246
|
src_validator: string;
|
|
247
247
|
};
|
|
@@ -260,7 +260,7 @@ interface IbcTimeout {
|
|
|
260
260
|
}
|
|
261
261
|
type IbcMsg = {
|
|
262
262
|
transfer: {
|
|
263
|
-
amount: Coin;
|
|
263
|
+
amount: Coin$1;
|
|
264
264
|
channel_id: string;
|
|
265
265
|
timeout: IbcTimeout;
|
|
266
266
|
to_address: string;
|
|
@@ -279,14 +279,14 @@ type IbcMsg = {
|
|
|
279
279
|
type WasmMsg = {
|
|
280
280
|
execute: {
|
|
281
281
|
contract_addr: string;
|
|
282
|
-
funds: Coin[];
|
|
282
|
+
funds: Coin$1[];
|
|
283
283
|
msg: Binary;
|
|
284
284
|
};
|
|
285
285
|
} | {
|
|
286
286
|
instantiate: {
|
|
287
287
|
admin?: string | null;
|
|
288
288
|
code_id: number;
|
|
289
|
-
funds: Coin[];
|
|
289
|
+
funds: Coin$1[];
|
|
290
290
|
label: string;
|
|
291
291
|
msg: Binary;
|
|
292
292
|
};
|
|
@@ -364,14 +364,14 @@ interface BurnNftData {
|
|
|
364
364
|
interface ExecuteData {
|
|
365
365
|
address: string;
|
|
366
366
|
message: string;
|
|
367
|
-
funds: Coin[];
|
|
367
|
+
funds: Coin$1[];
|
|
368
368
|
}
|
|
369
369
|
interface InstantiateData {
|
|
370
370
|
admin: string;
|
|
371
371
|
codeId: number;
|
|
372
372
|
label: string;
|
|
373
373
|
message: string;
|
|
374
|
-
funds: Coin[];
|
|
374
|
+
funds: Coin$1[];
|
|
375
375
|
}
|
|
376
376
|
interface ManageSubDaosData {
|
|
377
377
|
toAdd: SubDao[];
|
|
@@ -612,6 +612,10 @@ interface SharedProposalData {
|
|
|
612
612
|
type Addr = string;
|
|
613
613
|
type Uint128 = string;
|
|
614
614
|
type Timestamp = string;
|
|
615
|
+
interface Coin {
|
|
616
|
+
denom: string;
|
|
617
|
+
amount: string;
|
|
618
|
+
}
|
|
615
619
|
type Expiration = {
|
|
616
620
|
at_height: number;
|
|
617
621
|
} | {
|
|
@@ -671,6 +675,13 @@ interface VoteResponse {
|
|
|
671
675
|
interface User {
|
|
672
676
|
address: string;
|
|
673
677
|
}
|
|
678
|
+
type IUserMatrixProfile = {
|
|
679
|
+
walletAddress: string;
|
|
680
|
+
displayname: string;
|
|
681
|
+
avatarUrl: string | null;
|
|
682
|
+
did: string;
|
|
683
|
+
verified?: boolean;
|
|
684
|
+
};
|
|
674
685
|
interface LinkedResource {
|
|
675
686
|
id: string;
|
|
676
687
|
type: string;
|
|
@@ -681,6 +692,58 @@ interface LinkedResource {
|
|
|
681
692
|
description: string;
|
|
682
693
|
serviceEndpoint: string;
|
|
683
694
|
}
|
|
695
|
+
interface Service {
|
|
696
|
+
id: string;
|
|
697
|
+
type: string;
|
|
698
|
+
serviceEndpoint: string;
|
|
699
|
+
}
|
|
700
|
+
interface GQLLinkedResource {
|
|
701
|
+
id: string;
|
|
702
|
+
type: string;
|
|
703
|
+
description: string;
|
|
704
|
+
mediaType: string;
|
|
705
|
+
serviceEndpoint: string;
|
|
706
|
+
proof: string;
|
|
707
|
+
encrypted: string;
|
|
708
|
+
right: string;
|
|
709
|
+
}
|
|
710
|
+
interface EntityNode {
|
|
711
|
+
id: string;
|
|
712
|
+
type: string;
|
|
713
|
+
startDate?: string;
|
|
714
|
+
endDate?: string;
|
|
715
|
+
status: number;
|
|
716
|
+
relayerNode: string;
|
|
717
|
+
credentials?: string[];
|
|
718
|
+
entityVerified: boolean;
|
|
719
|
+
metadata: any;
|
|
720
|
+
accounts: any;
|
|
721
|
+
externalId?: string;
|
|
722
|
+
owner?: string;
|
|
723
|
+
context: any;
|
|
724
|
+
controller: string[];
|
|
725
|
+
verificationMethod: any;
|
|
726
|
+
service: Service[];
|
|
727
|
+
authentication: string[];
|
|
728
|
+
assertionMethod: string[];
|
|
729
|
+
keyAgreement: string[];
|
|
730
|
+
capabilityInvocation: string[];
|
|
731
|
+
capabilityDelegation: string[];
|
|
732
|
+
linkedResource: LinkedResource[];
|
|
733
|
+
linkedClaim: any;
|
|
734
|
+
accordedRight: any;
|
|
735
|
+
linkedEntity: any;
|
|
736
|
+
alsoKnownAs: string;
|
|
737
|
+
settings: any;
|
|
738
|
+
profile?: {
|
|
739
|
+
name?: string;
|
|
740
|
+
[key: string]: any;
|
|
741
|
+
};
|
|
742
|
+
iidById: {
|
|
743
|
+
id: string;
|
|
744
|
+
linkedResource: GQLLinkedResource[];
|
|
745
|
+
};
|
|
746
|
+
}
|
|
684
747
|
interface EntityResponse$1 {
|
|
685
748
|
id: string;
|
|
686
749
|
context: string;
|
|
@@ -825,6 +888,109 @@ interface Transaction {
|
|
|
825
888
|
time: string;
|
|
826
889
|
description?: string;
|
|
827
890
|
}
|
|
891
|
+
interface Bid {
|
|
892
|
+
id: string;
|
|
893
|
+
did: string;
|
|
894
|
+
collection: string;
|
|
895
|
+
type: 'bid';
|
|
896
|
+
address: string;
|
|
897
|
+
data: string;
|
|
898
|
+
role: string;
|
|
899
|
+
created: string;
|
|
900
|
+
}
|
|
901
|
+
interface SubmitBidParams {
|
|
902
|
+
collectionId: string;
|
|
903
|
+
role: EAAgentRoles;
|
|
904
|
+
surveyAnswers: any;
|
|
905
|
+
}
|
|
906
|
+
interface QueryBidsParams {
|
|
907
|
+
collectionId: string;
|
|
908
|
+
pagination?: {
|
|
909
|
+
nextPageToken?: string;
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
interface QueryBidsByDidParams {
|
|
913
|
+
collectionId: string;
|
|
914
|
+
did: string;
|
|
915
|
+
}
|
|
916
|
+
interface ApproveBidParams {
|
|
917
|
+
bidId: string;
|
|
918
|
+
collectionId: string;
|
|
919
|
+
did: string;
|
|
920
|
+
}
|
|
921
|
+
interface RejectBidParams {
|
|
922
|
+
bidId: string;
|
|
923
|
+
collectionId: string;
|
|
924
|
+
did: string;
|
|
925
|
+
reason: string;
|
|
926
|
+
}
|
|
927
|
+
interface BidResponse {
|
|
928
|
+
success: boolean;
|
|
929
|
+
bidId: string;
|
|
930
|
+
}
|
|
931
|
+
interface QueryBidsResponse {
|
|
932
|
+
data: Bid[];
|
|
933
|
+
nextPageToken?: string;
|
|
934
|
+
}
|
|
935
|
+
declare enum EAAgentRoles {
|
|
936
|
+
owners = "PO",
|
|
937
|
+
evaluators = "EA",
|
|
938
|
+
serviceProviders = "SA",
|
|
939
|
+
investors = "IA"
|
|
940
|
+
}
|
|
941
|
+
declare enum AgentRole {
|
|
942
|
+
Owner = "PO",// Collection Controller
|
|
943
|
+
Evaluator = "EA",// Evaluator
|
|
944
|
+
ServiceProvider = "SA",// Contributor/Service Agent
|
|
945
|
+
Investor = "IA"
|
|
946
|
+
}
|
|
947
|
+
type CheckUserRoleParams = {
|
|
948
|
+
/** Address to check role for */
|
|
949
|
+
userAddress: string;
|
|
950
|
+
/** Admin account address of the entity */
|
|
951
|
+
adminAddress: string;
|
|
952
|
+
/** Deed DID */
|
|
953
|
+
deedDid: string;
|
|
954
|
+
/** Claim collection IDs to check roles for */
|
|
955
|
+
collectionIds: string[];
|
|
956
|
+
};
|
|
957
|
+
type ClaimCollectionRole = {
|
|
958
|
+
collectionId: string;
|
|
959
|
+
role: AgentRole;
|
|
960
|
+
};
|
|
961
|
+
type ClaimCollection = {
|
|
962
|
+
id: string;
|
|
963
|
+
name: string;
|
|
964
|
+
description: string;
|
|
965
|
+
entity: string;
|
|
966
|
+
protocol: EntityNode | null;
|
|
967
|
+
admin: string;
|
|
968
|
+
};
|
|
969
|
+
type ClaimCollectionResponse = {
|
|
970
|
+
adminAddress: string;
|
|
971
|
+
collections: ClaimCollection[];
|
|
972
|
+
};
|
|
973
|
+
type Claim = {
|
|
974
|
+
claimId: string;
|
|
975
|
+
collectionId: string;
|
|
976
|
+
agentDid: string;
|
|
977
|
+
agentAddress: string;
|
|
978
|
+
submissionDate: string;
|
|
979
|
+
paymentsStatus: {
|
|
980
|
+
approval: string;
|
|
981
|
+
rejection: string;
|
|
982
|
+
evaluation: string;
|
|
983
|
+
submission: string;
|
|
984
|
+
};
|
|
985
|
+
schemaType: string | null;
|
|
986
|
+
};
|
|
987
|
+
interface GetClaimsPerCollectionIdParams {
|
|
988
|
+
collectionId: string;
|
|
989
|
+
}
|
|
990
|
+
interface GetClaimsPerUserAddressParams {
|
|
991
|
+
collectionId: string;
|
|
992
|
+
userAddress: string;
|
|
993
|
+
}
|
|
828
994
|
interface AssetDetails extends Asset {
|
|
829
995
|
actionSections: SelectionActionSection[];
|
|
830
996
|
}
|
|
@@ -915,6 +1081,7 @@ interface BlocknoteHandlers {
|
|
|
915
1081
|
getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
|
|
916
1082
|
getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
|
|
917
1083
|
getCurrentUser: () => User;
|
|
1084
|
+
getMatrixInfoPerDid: (did: string) => Promise<IUserMatrixProfile>;
|
|
918
1085
|
getDaoGroupsIds: () => Promise<string[] | undefined>;
|
|
919
1086
|
getDAOGroups: () => Promise<DAOGroup[]>;
|
|
920
1087
|
getRelayerDid: () => string | undefined;
|
|
@@ -1009,6 +1176,69 @@ interface BlocknoteHandlers {
|
|
|
1009
1176
|
getValidatorDetails?: (id: string) => Promise<ValidatorDetails>;
|
|
1010
1177
|
getLinkedResourceDetails?: (id: string) => Promise<LinkedResourceDetails>;
|
|
1011
1178
|
getDaoMemberDetails?: (id: string) => Promise<MemberDetails>;
|
|
1179
|
+
getDeedSurveyTemplate: (deedDid: string) => Promise<{
|
|
1180
|
+
surveyTemplate: any;
|
|
1181
|
+
claimCollectionId: string;
|
|
1182
|
+
} | null>;
|
|
1183
|
+
submitClaim: (params: {
|
|
1184
|
+
surveyData: any;
|
|
1185
|
+
deedDid: string;
|
|
1186
|
+
collectionId: string;
|
|
1187
|
+
adminAddress: string;
|
|
1188
|
+
pin: string;
|
|
1189
|
+
}) => Promise<{
|
|
1190
|
+
transactionHash: string;
|
|
1191
|
+
claimId: string;
|
|
1192
|
+
}>;
|
|
1193
|
+
requestPin: (config?: {
|
|
1194
|
+
title?: string;
|
|
1195
|
+
description?: string;
|
|
1196
|
+
submitText?: string;
|
|
1197
|
+
}) => Promise<string>;
|
|
1198
|
+
getClaimCollections: (params: {
|
|
1199
|
+
deedDid: string;
|
|
1200
|
+
}) => Promise<ClaimCollectionResponse>;
|
|
1201
|
+
getClaimsPerCollectionId: (params: GetClaimsPerCollectionIdParams) => Promise<Claim[]>;
|
|
1202
|
+
getClaimsPerUserAddress: (params: GetClaimsPerUserAddressParams) => Promise<Claim[]>;
|
|
1203
|
+
getClaimData: (collectionId: string, claimId: string) => Promise<any>;
|
|
1204
|
+
evaluateClaim: (granteeAddress: string, did: string, payload: {
|
|
1205
|
+
claimId: string;
|
|
1206
|
+
collectionId: string;
|
|
1207
|
+
adminAddress: string;
|
|
1208
|
+
status?: number;
|
|
1209
|
+
verificationProof: string;
|
|
1210
|
+
amount?: Coin;
|
|
1211
|
+
}) => Promise<void>;
|
|
1212
|
+
submitBid: (params: SubmitBidParams) => Promise<BidResponse>;
|
|
1213
|
+
queryBids: (params: QueryBidsParams) => Promise<QueryBidsResponse>;
|
|
1214
|
+
queryBidsByDid: (params: QueryBidsByDidParams) => Promise<{
|
|
1215
|
+
data: Bid[];
|
|
1216
|
+
}>;
|
|
1217
|
+
approveBid: (params: ApproveBidParams) => Promise<BidResponse>;
|
|
1218
|
+
rejectBid: (params: RejectBidParams) => Promise<BidResponse>;
|
|
1219
|
+
getUserRoles: (params: CheckUserRoleParams) => Promise<ClaimCollectionRole[]>;
|
|
1220
|
+
getBidContributorSurveyTemplate: (deedId: string) => Promise<{
|
|
1221
|
+
surveyTemplate: any;
|
|
1222
|
+
} | null>;
|
|
1223
|
+
getBidEvaluatorSurveyTemplate: (deedId: string) => Promise<{
|
|
1224
|
+
surveyTemplate: any;
|
|
1225
|
+
} | null>;
|
|
1226
|
+
approveServiceAgentApplication: (params: {
|
|
1227
|
+
adminAddress: string;
|
|
1228
|
+
collectionId: string;
|
|
1229
|
+
agentQuota: number;
|
|
1230
|
+
deedDid: string;
|
|
1231
|
+
currentUserAddress: string;
|
|
1232
|
+
}) => Promise<void>;
|
|
1233
|
+
approveEvaluatorApplication: (params: {
|
|
1234
|
+
adminAddress: string;
|
|
1235
|
+
collectionId: string;
|
|
1236
|
+
deedDid: string;
|
|
1237
|
+
evaluatorAddress: string;
|
|
1238
|
+
agentQuota?: number;
|
|
1239
|
+
claimIds?: string[];
|
|
1240
|
+
maxAmounts?: Coin[];
|
|
1241
|
+
}) => Promise<void>;
|
|
1012
1242
|
}
|
|
1013
1243
|
type DocType = 'template' | 'page' | 'flow';
|
|
1014
1244
|
interface BlocknoteContextValue {
|
|
@@ -1740,6 +1970,150 @@ declare const blockSpecs: {
|
|
|
1740
1970
|
readonly content: "inline";
|
|
1741
1971
|
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
1742
1972
|
};
|
|
1973
|
+
claim: {
|
|
1974
|
+
config: {
|
|
1975
|
+
readonly type: "claim";
|
|
1976
|
+
readonly propSchema: {
|
|
1977
|
+
readonly title: {
|
|
1978
|
+
readonly default: "";
|
|
1979
|
+
};
|
|
1980
|
+
readonly description: {
|
|
1981
|
+
readonly default: "";
|
|
1982
|
+
};
|
|
1983
|
+
readonly icon: {
|
|
1984
|
+
readonly default: "square-check";
|
|
1985
|
+
};
|
|
1986
|
+
readonly deedDid: {
|
|
1987
|
+
readonly default: "";
|
|
1988
|
+
};
|
|
1989
|
+
readonly selectedCollections: {
|
|
1990
|
+
readonly default: "[]";
|
|
1991
|
+
};
|
|
1992
|
+
readonly adminAddress: {
|
|
1993
|
+
readonly default: "";
|
|
1994
|
+
};
|
|
1995
|
+
};
|
|
1996
|
+
readonly content: "none";
|
|
1997
|
+
};
|
|
1998
|
+
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
1999
|
+
readonly type: "claim";
|
|
2000
|
+
readonly propSchema: {
|
|
2001
|
+
readonly title: {
|
|
2002
|
+
readonly default: "";
|
|
2003
|
+
};
|
|
2004
|
+
readonly description: {
|
|
2005
|
+
readonly default: "";
|
|
2006
|
+
};
|
|
2007
|
+
readonly icon: {
|
|
2008
|
+
readonly default: "square-check";
|
|
2009
|
+
};
|
|
2010
|
+
readonly deedDid: {
|
|
2011
|
+
readonly default: "";
|
|
2012
|
+
};
|
|
2013
|
+
readonly selectedCollections: {
|
|
2014
|
+
readonly default: "[]";
|
|
2015
|
+
};
|
|
2016
|
+
readonly adminAddress: {
|
|
2017
|
+
readonly default: "";
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
readonly content: "none";
|
|
2021
|
+
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
2022
|
+
};
|
|
2023
|
+
bid: {
|
|
2024
|
+
config: {
|
|
2025
|
+
readonly type: "bid";
|
|
2026
|
+
readonly propSchema: {
|
|
2027
|
+
readonly title: {
|
|
2028
|
+
readonly default: "";
|
|
2029
|
+
};
|
|
2030
|
+
readonly description: {
|
|
2031
|
+
readonly default: "";
|
|
2032
|
+
};
|
|
2033
|
+
readonly did: {
|
|
2034
|
+
readonly default: "";
|
|
2035
|
+
};
|
|
2036
|
+
readonly selectedCollections: {
|
|
2037
|
+
readonly default: "[]";
|
|
2038
|
+
};
|
|
2039
|
+
readonly adminAddress: {
|
|
2040
|
+
readonly default: "";
|
|
2041
|
+
};
|
|
2042
|
+
};
|
|
2043
|
+
readonly content: "none";
|
|
2044
|
+
};
|
|
2045
|
+
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
2046
|
+
readonly type: "bid";
|
|
2047
|
+
readonly propSchema: {
|
|
2048
|
+
readonly title: {
|
|
2049
|
+
readonly default: "";
|
|
2050
|
+
};
|
|
2051
|
+
readonly description: {
|
|
2052
|
+
readonly default: "";
|
|
2053
|
+
};
|
|
2054
|
+
readonly did: {
|
|
2055
|
+
readonly default: "";
|
|
2056
|
+
};
|
|
2057
|
+
readonly selectedCollections: {
|
|
2058
|
+
readonly default: "[]";
|
|
2059
|
+
};
|
|
2060
|
+
readonly adminAddress: {
|
|
2061
|
+
readonly default: "";
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
readonly content: "none";
|
|
2065
|
+
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
2066
|
+
};
|
|
2067
|
+
evaluator: {
|
|
2068
|
+
config: {
|
|
2069
|
+
readonly type: "evaluator";
|
|
2070
|
+
readonly propSchema: {
|
|
2071
|
+
readonly title: {
|
|
2072
|
+
readonly default: "";
|
|
2073
|
+
};
|
|
2074
|
+
readonly description: {
|
|
2075
|
+
readonly default: "";
|
|
2076
|
+
};
|
|
2077
|
+
readonly icon: {
|
|
2078
|
+
readonly default: "checklist";
|
|
2079
|
+
};
|
|
2080
|
+
readonly deedDid: {
|
|
2081
|
+
readonly default: "";
|
|
2082
|
+
};
|
|
2083
|
+
readonly selectedCollections: {
|
|
2084
|
+
readonly default: "[]";
|
|
2085
|
+
};
|
|
2086
|
+
readonly adminAddress: {
|
|
2087
|
+
readonly default: "";
|
|
2088
|
+
};
|
|
2089
|
+
};
|
|
2090
|
+
readonly content: "none";
|
|
2091
|
+
};
|
|
2092
|
+
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
2093
|
+
readonly type: "evaluator";
|
|
2094
|
+
readonly propSchema: {
|
|
2095
|
+
readonly title: {
|
|
2096
|
+
readonly default: "";
|
|
2097
|
+
};
|
|
2098
|
+
readonly description: {
|
|
2099
|
+
readonly default: "";
|
|
2100
|
+
};
|
|
2101
|
+
readonly icon: {
|
|
2102
|
+
readonly default: "checklist";
|
|
2103
|
+
};
|
|
2104
|
+
readonly deedDid: {
|
|
2105
|
+
readonly default: "";
|
|
2106
|
+
};
|
|
2107
|
+
readonly selectedCollections: {
|
|
2108
|
+
readonly default: "[]";
|
|
2109
|
+
};
|
|
2110
|
+
readonly adminAddress: {
|
|
2111
|
+
readonly default: "";
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
readonly content: "none";
|
|
2115
|
+
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
2116
|
+
};
|
|
1743
2117
|
};
|
|
1744
2118
|
declare const getExtraSlashMenuItems: (editor: any) => {
|
|
1745
2119
|
title: string;
|
|
@@ -1803,6 +2177,11 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
|
|
|
1803
2177
|
* Current user information (for collaborative editing)
|
|
1804
2178
|
*/
|
|
1805
2179
|
user?: IxoCollaborativeUser;
|
|
2180
|
+
/**
|
|
2181
|
+
* Document type (template, flow, page)
|
|
2182
|
+
* This is a local prop-based value, NOT synced via CRDT
|
|
2183
|
+
*/
|
|
2184
|
+
docType?: 'template' | 'flow' | 'page';
|
|
1806
2185
|
/**
|
|
1807
2186
|
* Get user-specific properties for a block
|
|
1808
2187
|
* @param block - The block to get user properties for
|
|
@@ -1830,16 +2209,6 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
|
|
|
1830
2209
|
* @returns Array of flow blocks
|
|
1831
2210
|
*/
|
|
1832
2211
|
getFlow?: () => any[];
|
|
1833
|
-
/**
|
|
1834
|
-
* Get the document type (template, flow, page, or empty)
|
|
1835
|
-
* @returns Document type string
|
|
1836
|
-
*/
|
|
1837
|
-
getDocType?: () => string;
|
|
1838
|
-
/**
|
|
1839
|
-
* Set the document type (template, flow, page, or empty)
|
|
1840
|
-
* @param value - Document type to set
|
|
1841
|
-
*/
|
|
1842
|
-
setDocType?: (value: 'template' | 'flow' | 'page' | '') => void;
|
|
1843
2212
|
}
|
|
1844
2213
|
/**
|
|
1845
2214
|
* Re-map BlockNote renderer props to use IxoEditorType instead of BlockNoteEditor.
|
|
@@ -1909,6 +2278,12 @@ interface IxoEditorOptions {
|
|
|
1909
2278
|
* @default true
|
|
1910
2279
|
*/
|
|
1911
2280
|
tableHandles?: boolean;
|
|
2281
|
+
/**
|
|
2282
|
+
* Document type (template, flow, page)
|
|
2283
|
+
* This is a local prop and NOT synced via CRDT
|
|
2284
|
+
* @default 'flow'
|
|
2285
|
+
*/
|
|
2286
|
+
docType?: 'template' | 'flow' | 'page';
|
|
1912
2287
|
}
|
|
1913
2288
|
interface IxoCollaborativeUser {
|
|
1914
2289
|
name: string;
|
|
@@ -1984,11 +2359,12 @@ interface IxoEditorProps {
|
|
|
1984
2359
|
mantineTheme?: any;
|
|
1985
2360
|
handlers?: BlocknoteHandlers;
|
|
1986
2361
|
blockRequirements?: BlockRequirements;
|
|
2362
|
+
isPanelVisible?: boolean;
|
|
1987
2363
|
}
|
|
1988
2364
|
/**
|
|
1989
2365
|
* IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
|
|
1990
2366
|
*/
|
|
1991
|
-
declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, }: IxoEditorProps): React.ReactElement | null;
|
|
2367
|
+
declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, }: IxoEditorProps): React.ReactElement | null;
|
|
1992
2368
|
|
|
1993
2369
|
/**
|
|
1994
2370
|
* GraphQL queries and types for IXO network
|
package/dist/index.mjs
CHANGED
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
export { Addr, ApiRequestBlockProps, ApiRequestBlockSpec, AuthzExecActionTypes, BlockRequirements, BlocknoteContextValue, BlocknoteHandlers, BlocknoteProvider, CheckboxBlockProps, CheckboxBlockSpec, CosmosMsgForEmpty, Entity, EntityResponse, EntityVariables, Expiration, GraphQLClient, GraphQLRequest, GraphQLResponse, HttpMethod, IxoCollaborativeEditorOptions, IxoCollaborativeUser, IxoEditor, IxoEditorConfig, IxoEditorOptions, IxoEditorProps, IxoEditorTheme, KeyValuePair, ListBlockProps, ListBlockSettings, ListBlockSpec, OverviewBlock, OverviewBlockProps, OverviewBlockSettings, ProposalAction, ProposalBlockProps, ProposalBlockSpec, ProposalResponse, SingleChoiceProposal, StakeType, StakeType as StakeTypeValue, Status, Threshold, Timestamp, Uint128, User, ValidatorActionType, Vote, VoteInfo, VoteResponse, Votes, blockSpecs, getEntity, getExtraSlashMenuItems, ixoGraphQLClient, useBlocknoteContext, useBlocknoteHandlers, useCreateCollaborativeIxoEditor, useCreateIxoEditor } from '../index.mjs';
|
|
2
|
+
import * as zustand from 'zustand';
|
|
2
3
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
3
4
|
import 'matrix-js-sdk';
|
|
4
5
|
import 'yjs';
|
|
5
6
|
import 'react';
|
|
7
|
+
|
|
8
|
+
interface PanelState {
|
|
9
|
+
activePanel: string | null;
|
|
10
|
+
registeredPanels: Map<string, React.ReactNode>;
|
|
11
|
+
setActivePanel: (panelId: string | null) => void;
|
|
12
|
+
closePanel: () => void;
|
|
13
|
+
registerPanel: (id: string, content: React.ReactNode) => void;
|
|
14
|
+
unregisterPanel: (id: string) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const usePanelStore: zustand.UseBoundStore<zustand.StoreApi<PanelState>>;
|
|
17
|
+
declare const usePanel: (panelId: string, content: React.ReactNode) => {
|
|
18
|
+
opened: boolean;
|
|
19
|
+
open: () => void;
|
|
20
|
+
close: () => void;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { usePanel, usePanelStore };
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -17,8 +17,10 @@ import {
|
|
|
17
17
|
useBlocknoteContext,
|
|
18
18
|
useBlocknoteHandlers,
|
|
19
19
|
useCreateCollaborativeIxoEditor,
|
|
20
|
-
useCreateIxoEditor
|
|
21
|
-
|
|
20
|
+
useCreateIxoEditor,
|
|
21
|
+
usePanel,
|
|
22
|
+
usePanelStore
|
|
23
|
+
} from "../chunk-XEZXD5ZV.mjs";
|
|
22
24
|
export {
|
|
23
25
|
ApiRequestBlockSpec,
|
|
24
26
|
AuthzExecActionTypes,
|
|
@@ -38,6 +40,8 @@ export {
|
|
|
38
40
|
useBlocknoteContext,
|
|
39
41
|
useBlocknoteHandlers,
|
|
40
42
|
useCreateCollaborativeIxoEditor,
|
|
41
|
-
useCreateIxoEditor
|
|
43
|
+
useCreateIxoEditor,
|
|
44
|
+
usePanel,
|
|
45
|
+
usePanelStore
|
|
42
46
|
};
|
|
43
47
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.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",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@blocknote/core": "0.29.1",
|
|
61
61
|
"@blocknote/mantine": "0.29.1",
|
|
62
62
|
"@blocknote/react": "0.29.1",
|
|
63
|
+
"@ixo/surveys": "^0.0.2",
|
|
63
64
|
"@tabler/icons-react": "3.35.0",
|
|
64
65
|
"yjs": "13.6.27",
|
|
65
66
|
"zustand": "5.0.8"
|
package/style-core.css
CHANGED
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
width: 100%;
|
|
7
7
|
min-height: 200px;
|
|
8
|
-
font-family:
|
|
9
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
|
|
10
|
-
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
8
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
11
9
|
-webkit-font-smoothing: antialiased;
|
|
12
10
|
-moz-osx-font-smoothing: grayscale;
|
|
13
11
|
}
|
|
14
12
|
|
|
13
|
+
.ixo-editor .bn-editor {
|
|
14
|
+
border-radius: 0px !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
15
17
|
/* Light theme customizations */
|
|
16
18
|
.ixo-editor--theme-light {
|
|
17
19
|
--bn-colors-editor-background: #ffffff;
|
|
@@ -52,10 +54,9 @@
|
|
|
52
54
|
|
|
53
55
|
/* Editor content styles */
|
|
54
56
|
.ixo-editor .bn-container {
|
|
55
|
-
padding: 20px;
|
|
56
|
-
border-radius: 8px;
|
|
57
57
|
border: 1px solid var(--bn-colors-border);
|
|
58
58
|
transition: border-color 0.2s ease;
|
|
59
|
+
border-radius: 0px !important;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.ixo-editor .bn-container:focus-within {
|
|
@@ -218,7 +219,6 @@
|
|
|
218
219
|
|
|
219
220
|
.ixo-editor .bn-container::-webkit-scrollbar-thumb {
|
|
220
221
|
background-color: var(--bn-colors-border);
|
|
221
|
-
border-radius: 4px;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.ixo-editor .bn-container::-webkit-scrollbar-thumb:hover {
|
package/style-mantine.css
CHANGED
|
@@ -102,13 +102,15 @@
|
|
|
102
102
|
position: relative;
|
|
103
103
|
width: 100%;
|
|
104
104
|
min-height: 200px;
|
|
105
|
-
font-family:
|
|
106
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
|
|
107
|
-
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
105
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
108
106
|
-webkit-font-smoothing: antialiased;
|
|
109
107
|
-moz-osx-font-smoothing: grayscale;
|
|
110
108
|
}
|
|
111
109
|
|
|
110
|
+
.ixo-editor .bn-editor {
|
|
111
|
+
border-radius: 0px !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
112
114
|
/* Light theme customizations */
|
|
113
115
|
.ixo-editor--theme-light {
|
|
114
116
|
--bn-colors-editor-background: #ffffff;
|
|
@@ -149,10 +151,9 @@
|
|
|
149
151
|
|
|
150
152
|
/* Editor content styles */
|
|
151
153
|
.ixo-editor .bn-container {
|
|
152
|
-
padding: 20px;
|
|
153
|
-
border-radius: 8px;
|
|
154
154
|
border: 1px solid var(--bn-colors-border);
|
|
155
155
|
transition: border-color 0.2s ease;
|
|
156
|
+
border-radius: 0px !important;
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
.ixo-editor .bn-container:focus-within {
|
|
@@ -315,7 +316,6 @@
|
|
|
315
316
|
|
|
316
317
|
.ixo-editor .bn-container::-webkit-scrollbar-thumb {
|
|
317
318
|
background-color: var(--bn-colors-border);
|
|
318
|
-
border-radius: 4px;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ixo-editor .bn-container::-webkit-scrollbar-thumb:hover {
|