@ixo/editor 2.23.0 → 2.25.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-75HEM77J.mjs → chunk-44NJWFQK.mjs} +2436 -1831
- package/dist/chunk-44NJWFQK.mjs.map +1 -0
- package/dist/{graphql-client-Coy2wjmn.d.ts → graphql-client-sR5y0LAb.d.ts} +110 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.d.ts +2 -2
- package/dist/mantine/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-75HEM77J.mjs.map +0 -1
|
@@ -886,11 +886,38 @@ interface Collection {
|
|
|
886
886
|
totalAssets: number;
|
|
887
887
|
description?: string;
|
|
888
888
|
}
|
|
889
|
+
interface TransactionByHash {
|
|
890
|
+
code: number;
|
|
891
|
+
fee: {
|
|
892
|
+
payer: string;
|
|
893
|
+
amount: Array<{
|
|
894
|
+
denom: string;
|
|
895
|
+
amount: string;
|
|
896
|
+
}>;
|
|
897
|
+
granter: string;
|
|
898
|
+
gasLimit: {
|
|
899
|
+
low: number;
|
|
900
|
+
high: number;
|
|
901
|
+
unsigned: boolean;
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
hash: string;
|
|
905
|
+
height: number;
|
|
906
|
+
memo: string;
|
|
907
|
+
time: string;
|
|
908
|
+
}
|
|
889
909
|
interface Transaction {
|
|
910
|
+
id: number;
|
|
890
911
|
transactionHash: string;
|
|
891
912
|
typeUrl: string;
|
|
892
913
|
memo: string;
|
|
893
914
|
time: string;
|
|
915
|
+
from: string;
|
|
916
|
+
to: string | null;
|
|
917
|
+
denoms: string[];
|
|
918
|
+
tokenNames: string[];
|
|
919
|
+
value: Record<string, any>;
|
|
920
|
+
transactionByTransactionHash?: TransactionByHash;
|
|
894
921
|
description?: string;
|
|
895
922
|
}
|
|
896
923
|
interface DeedSubscription {
|
|
@@ -904,6 +931,30 @@ interface DeedSubscription {
|
|
|
904
931
|
metadata?: Record<string, any>;
|
|
905
932
|
actionSections?: SelectionActionSection[];
|
|
906
933
|
}
|
|
934
|
+
type IAssetsListItem = {
|
|
935
|
+
symbol: string;
|
|
936
|
+
description: string;
|
|
937
|
+
display: string;
|
|
938
|
+
entityId: string;
|
|
939
|
+
assetType: string;
|
|
940
|
+
coinMinimalDenom?: string;
|
|
941
|
+
base: string;
|
|
942
|
+
denomUnits: {
|
|
943
|
+
denom: string;
|
|
944
|
+
exponent: number;
|
|
945
|
+
aliases: string[];
|
|
946
|
+
}[];
|
|
947
|
+
logoURIs: {
|
|
948
|
+
png: string;
|
|
949
|
+
svg: string;
|
|
950
|
+
zlottie: string;
|
|
951
|
+
};
|
|
952
|
+
isStakeCurrency: string;
|
|
953
|
+
isFeeCurrency: string;
|
|
954
|
+
isBondToken: string;
|
|
955
|
+
coingeckoId?: string;
|
|
956
|
+
contractAddress?: string;
|
|
957
|
+
};
|
|
907
958
|
interface Bid {
|
|
908
959
|
id: string;
|
|
909
960
|
did: string;
|
|
@@ -1302,6 +1353,7 @@ interface BlocknoteHandlers {
|
|
|
1302
1353
|
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
1303
1354
|
getDomainCard: () => Promise<DomainCard>;
|
|
1304
1355
|
askCompanion: (prompt: string) => Promise<void>;
|
|
1356
|
+
getCryptoAssets: () => Promise<IAssetsListItem[]>;
|
|
1305
1357
|
getAssets: (collectionDid: string, page: number, ownerAddress?: string) => Promise<{
|
|
1306
1358
|
data: Asset[];
|
|
1307
1359
|
totalCount: number;
|
|
@@ -1776,6 +1828,20 @@ interface BlocknoteHandlers {
|
|
|
1776
1828
|
/** Transaction hash */
|
|
1777
1829
|
transactionHash: string;
|
|
1778
1830
|
}>;
|
|
1831
|
+
/**
|
|
1832
|
+
* Navigate to another flow document
|
|
1833
|
+
* @param docRoomId - Matrix room ID of the target flow document
|
|
1834
|
+
*/
|
|
1835
|
+
navigateToFlow?: (docRoomId: string) => void;
|
|
1836
|
+
/**
|
|
1837
|
+
* Get the status of a flow document
|
|
1838
|
+
* @param docRoomId - Matrix room ID of the flow document
|
|
1839
|
+
* @returns Flow status with optional completion timestamp
|
|
1840
|
+
*/
|
|
1841
|
+
getFlowStatus?: (docRoomId: string) => Promise<{
|
|
1842
|
+
status: 'not_started' | 'in_progress' | 'completed';
|
|
1843
|
+
completedAt?: string;
|
|
1844
|
+
}>;
|
|
1779
1845
|
}
|
|
1780
1846
|
type DocType = 'template' | 'page' | 'flow';
|
|
1781
1847
|
/**
|
|
@@ -3481,6 +3547,50 @@ declare const blockSpecs: {
|
|
|
3481
3547
|
readonly content: "none";
|
|
3482
3548
|
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
3483
3549
|
};
|
|
3550
|
+
flowLink: {
|
|
3551
|
+
config: {
|
|
3552
|
+
readonly type: "flowLink";
|
|
3553
|
+
readonly propSchema: {
|
|
3554
|
+
readonly title: {
|
|
3555
|
+
readonly default: "";
|
|
3556
|
+
};
|
|
3557
|
+
readonly description: {
|
|
3558
|
+
readonly default: "";
|
|
3559
|
+
};
|
|
3560
|
+
readonly icon: {
|
|
3561
|
+
readonly default: "external-link";
|
|
3562
|
+
};
|
|
3563
|
+
readonly links: {
|
|
3564
|
+
readonly default: "[]";
|
|
3565
|
+
};
|
|
3566
|
+
readonly conditions: {
|
|
3567
|
+
readonly default: "";
|
|
3568
|
+
};
|
|
3569
|
+
};
|
|
3570
|
+
readonly content: "none";
|
|
3571
|
+
};
|
|
3572
|
+
implementation: _blocknote_core.TiptapBlockImplementation<{
|
|
3573
|
+
readonly type: "flowLink";
|
|
3574
|
+
readonly propSchema: {
|
|
3575
|
+
readonly title: {
|
|
3576
|
+
readonly default: "";
|
|
3577
|
+
};
|
|
3578
|
+
readonly description: {
|
|
3579
|
+
readonly default: "";
|
|
3580
|
+
};
|
|
3581
|
+
readonly icon: {
|
|
3582
|
+
readonly default: "external-link";
|
|
3583
|
+
};
|
|
3584
|
+
readonly links: {
|
|
3585
|
+
readonly default: "[]";
|
|
3586
|
+
};
|
|
3587
|
+
readonly conditions: {
|
|
3588
|
+
readonly default: "";
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3591
|
+
readonly content: "none";
|
|
3592
|
+
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
3593
|
+
};
|
|
3484
3594
|
};
|
|
3485
3595
|
declare const getExtraSlashMenuItems: (editor: any) => {
|
|
3486
3596
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FlowNode, a as FlowNodeAuthzExtension, b as FlowNodeRuntimeState, I as IxoEditorType, S as SignedCapability, E as EvaluationStatus, C as Capability, c as CapabilityValidationResult } from './graphql-client-
|
|
2
|
-
export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, W as BlocknoteHandlers, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, D as DelegationGrant, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from './graphql-client-
|
|
1
|
+
import { F as FlowNode, a as FlowNodeAuthzExtension, b as FlowNodeRuntimeState, I as IxoEditorType, S as SignedCapability, E as EvaluationStatus, C as Capability, c as CapabilityValidationResult } from './graphql-client-sR5y0LAb.mjs';
|
|
2
|
+
export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, W as BlocknoteHandlers, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, D as DelegationGrant, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from './graphql-client-sR5y0LAb.mjs';
|
|
3
3
|
import { Map } from 'yjs';
|
|
4
4
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
5
5
|
import 'react';
|
package/dist/index.mjs
CHANGED
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ak as IxoBlockProps } from '../graphql-client-
|
|
2
|
-
export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, W as BlocknoteHandlers, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, av as DomainCardData, au as DomainCardRenderer, am as DropPosition, ar as DynamicListData, as as DynamicListDataProvider, at as DynamicListPanelRenderer, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, al as ExternalDropZone, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, I as IxoEditorType, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, an as PageHeader, ap as PageHeaderMenuItem, ao as PageHeaderProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, aq as VisualizationRenderer, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from '../graphql-client-
|
|
1
|
+
import { ak as IxoBlockProps } from '../graphql-client-sR5y0LAb.mjs';
|
|
2
|
+
export { a3 as Addr, J as ApiRequestBlockProps, t as ApiRequestBlockSpec, A as AuthorizationTab, i as AuthorizationTabState, U as AuthzExecActionTypes, Y as BlockRequirements, X as BlocknoteContextValue, W as BlocknoteHandlers, N as BlocknoteProvider, x as CheckboxBlockProps, s as CheckboxBlockSpec, aa as CosmosMsgForEmpty, g as CoverImage, h as CoverImageProps, av as DomainCardData, au as DomainCardRenderer, am as DropPosition, ar as DynamicListData, as as DynamicListDataProvider, at as DynamicListPanelRenderer, ad as Entity, ae as EntityResponse, l as EntitySigningSetup, af as EntityVariables, j as EvaluationTab, k as EvaluationTabState, a6 as Expiration, al as ExternalDropZone, m as FlowPermissionsPanel, G as GrantPermissionModal, ag as GraphQLClient, aj as GraphQLRequest, ai as GraphQLResponse, K as HttpMethod, r as IxoCollaborativeEditorOptions, q as IxoCollaborativeUser, e as IxoEditor, p as IxoEditorConfig, n as IxoEditorOptions, f as IxoEditorProps, o as IxoEditorTheme, I as IxoEditorType, M as KeyValuePair, z as ListBlockProps, y as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, B as OverviewBlockProps, an as PageHeader, ap as PageHeaderMenuItem, ao as PageHeaderProps, ab as ProposalAction, H as ProposalBlockProps, P as ProposalBlockSpec, Z as ProposalResponse, _ as SingleChoiceProposal, T as StakeType, T as StakeTypeValue, a7 as Status, a8 as Threshold, a5 as Timestamp, a4 as Uint128, a2 as User, V as ValidatorActionType, aq as VisualizationRenderer, a1 as Vote, a0 as VoteInfo, $ as VoteResponse, a9 as Votes, v as blockSpecs, ac as getEntity, w as getExtraSlashMenuItems, ah as ixoGraphQLClient, Q as useBlocknoteContext, R as useBlocknoteHandlers, d as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor } from '../graphql-client-sR5y0LAb.mjs';
|
|
3
3
|
import React$1, { PropsWithChildren } from 'react';
|
|
4
4
|
import * as zustand from 'zustand';
|
|
5
5
|
import * as _blocknote_core from '@blocknote/core';
|
package/dist/mantine/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.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",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"@blocknote/core": "0.29.1",
|
|
62
62
|
"@blocknote/mantine": "0.29.1",
|
|
63
63
|
"@blocknote/react": "0.29.1",
|
|
64
|
+
"@dnd-kit/core": "^6.3.1",
|
|
64
65
|
"@tabler/icons-react": "3.35.0",
|
|
65
66
|
"yjs": "13.6.27",
|
|
66
67
|
"zustand": "5.0.8"
|