@ixo/editor 2.22.0 → 2.24.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.
@@ -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;
@@ -1636,6 +1688,13 @@ interface BlocknoteHandlers {
1636
1688
  description: string;
1637
1689
  serviceEndpoint: string;
1638
1690
  }>;
1691
+ /** Linked entities (e.g., governance groups) */
1692
+ linkedEntity?: Array<{
1693
+ id: string;
1694
+ type: string;
1695
+ relationship: string;
1696
+ service: string;
1697
+ }>;
1639
1698
  /** Start date for the entity (from validFrom) */
1640
1699
  startDate?: string;
1641
1700
  /** End date for the entity (from validUntil) */
@@ -1748,6 +1807,27 @@ interface BlocknoteHandlers {
1748
1807
  * Create a Universal Decentralized Identifier (UDID) for an evaluation result
1749
1808
  */
1750
1809
  createUdid?: (params: CreateUdidParams) => Promise<CreateUdidResponse>;
1810
+ /**
1811
+ * Create a new governance group (categorical, multisig, NFT staking, or token staking).
1812
+ * The implementation is provided by the host application.
1813
+ */
1814
+ createGovernanceGroup?: (params: {
1815
+ /** Type of governance group to create */
1816
+ groupType: 'categorical' | 'multisig' | 'nftStaking' | 'tokenStaking';
1817
+ /** Name of the group */
1818
+ name: string;
1819
+ /** Optional description */
1820
+ description?: string;
1821
+ /** Group-type specific configuration from the survey */
1822
+ config: Record<string, unknown>;
1823
+ }) => Promise<{
1824
+ /** The DAO core contract address */
1825
+ coreAddress: string;
1826
+ /** The voting group contract address */
1827
+ groupAddress: string;
1828
+ /** Transaction hash */
1829
+ transactionHash: string;
1830
+ }>;
1751
1831
  }
1752
1832
  type DocType = 'template' | 'page' | 'flow';
1753
1833
  /**
@@ -3268,6 +3348,9 @@ declare const blockSpecs: {
3268
3348
  readonly errorMessage: {
3269
3349
  readonly default: "";
3270
3350
  };
3351
+ readonly linkedEntities: {
3352
+ readonly default: "[]";
3353
+ };
3271
3354
  readonly assignment: {
3272
3355
  readonly default: string;
3273
3356
  };
@@ -3304,6 +3387,9 @@ declare const blockSpecs: {
3304
3387
  readonly errorMessage: {
3305
3388
  readonly default: "";
3306
3389
  };
3390
+ readonly linkedEntities: {
3391
+ readonly default: "[]";
3392
+ };
3307
3393
  readonly assignment: {
3308
3394
  readonly default: string;
3309
3395
  };
@@ -3373,6 +3459,80 @@ declare const blockSpecs: {
3373
3459
  readonly content: "none";
3374
3460
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
3375
3461
  };
3462
+ governanceGroup: {
3463
+ config: {
3464
+ readonly type: "governanceGroup";
3465
+ readonly propSchema: {
3466
+ readonly title: {
3467
+ readonly default: "";
3468
+ };
3469
+ readonly description: {
3470
+ readonly default: "";
3471
+ };
3472
+ readonly icon: {
3473
+ readonly default: "users";
3474
+ };
3475
+ readonly groupType: {
3476
+ readonly default: "";
3477
+ };
3478
+ readonly surveySchema: {
3479
+ readonly default: "";
3480
+ };
3481
+ readonly answers: {
3482
+ readonly default: "";
3483
+ };
3484
+ readonly lastSubmission: {
3485
+ readonly default: "";
3486
+ };
3487
+ readonly coreAddress: {
3488
+ readonly default: "";
3489
+ };
3490
+ readonly groupAddress: {
3491
+ readonly default: "";
3492
+ };
3493
+ readonly afterCreate: {
3494
+ readonly default: "";
3495
+ };
3496
+ };
3497
+ readonly content: "none";
3498
+ };
3499
+ implementation: _blocknote_core.TiptapBlockImplementation<{
3500
+ readonly type: "governanceGroup";
3501
+ readonly propSchema: {
3502
+ readonly title: {
3503
+ readonly default: "";
3504
+ };
3505
+ readonly description: {
3506
+ readonly default: "";
3507
+ };
3508
+ readonly icon: {
3509
+ readonly default: "users";
3510
+ };
3511
+ readonly groupType: {
3512
+ readonly default: "";
3513
+ };
3514
+ readonly surveySchema: {
3515
+ readonly default: "";
3516
+ };
3517
+ readonly answers: {
3518
+ readonly default: "";
3519
+ };
3520
+ readonly lastSubmission: {
3521
+ readonly default: "";
3522
+ };
3523
+ readonly coreAddress: {
3524
+ readonly default: "";
3525
+ };
3526
+ readonly groupAddress: {
3527
+ readonly default: "";
3528
+ };
3529
+ readonly afterCreate: {
3530
+ readonly default: "";
3531
+ };
3532
+ };
3533
+ readonly content: "none";
3534
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
3535
+ };
3376
3536
  };
3377
3537
  declare const getExtraSlashMenuItems: (editor: any) => {
3378
3538
  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-CQA7MoaR.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-CQA7MoaR.mjs';
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-NK7QyJtH.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-NK7QyJtH.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
@@ -34,7 +34,7 @@ import {
34
34
  useCreateCollaborativeIxoEditor,
35
35
  useCreateIxoEditor,
36
36
  validateCapabilityChain
37
- } from "./chunk-NBT2P6S5.mjs";
37
+ } from "./chunk-HEO27URH.mjs";
38
38
  export {
39
39
  ApiRequestBlockSpec,
40
40
  AuthorizationTab,
@@ -1,5 +1,5 @@
1
- import { ak as IxoBlockProps } from '../graphql-client-CQA7MoaR.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-CQA7MoaR.mjs';
1
+ import { ak as IxoBlockProps } from '../graphql-client-NK7QyJtH.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-NK7QyJtH.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';
@@ -32,7 +32,7 @@ import {
32
32
  useListBlocksUIStore,
33
33
  usePanel,
34
34
  usePanelStore
35
- } from "../chunk-NBT2P6S5.mjs";
35
+ } from "../chunk-HEO27URH.mjs";
36
36
  export {
37
37
  ApiRequestBlockSpec,
38
38
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "2.22.0",
3
+ "version": "2.24.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",