@ixo/editor 2.22.0 → 2.23.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.
@@ -1636,6 +1636,13 @@ interface BlocknoteHandlers {
1636
1636
  description: string;
1637
1637
  serviceEndpoint: string;
1638
1638
  }>;
1639
+ /** Linked entities (e.g., governance groups) */
1640
+ linkedEntity?: Array<{
1641
+ id: string;
1642
+ type: string;
1643
+ relationship: string;
1644
+ service: string;
1645
+ }>;
1639
1646
  /** Start date for the entity (from validFrom) */
1640
1647
  startDate?: string;
1641
1648
  /** End date for the entity (from validUntil) */
@@ -1748,6 +1755,27 @@ interface BlocknoteHandlers {
1748
1755
  * Create a Universal Decentralized Identifier (UDID) for an evaluation result
1749
1756
  */
1750
1757
  createUdid?: (params: CreateUdidParams) => Promise<CreateUdidResponse>;
1758
+ /**
1759
+ * Create a new governance group (categorical, multisig, NFT staking, or token staking).
1760
+ * The implementation is provided by the host application.
1761
+ */
1762
+ createGovernanceGroup?: (params: {
1763
+ /** Type of governance group to create */
1764
+ groupType: 'categorical' | 'multisig' | 'nftStaking' | 'tokenStaking';
1765
+ /** Name of the group */
1766
+ name: string;
1767
+ /** Optional description */
1768
+ description?: string;
1769
+ /** Group-type specific configuration from the survey */
1770
+ config: Record<string, unknown>;
1771
+ }) => Promise<{
1772
+ /** The DAO core contract address */
1773
+ coreAddress: string;
1774
+ /** The voting group contract address */
1775
+ groupAddress: string;
1776
+ /** Transaction hash */
1777
+ transactionHash: string;
1778
+ }>;
1751
1779
  }
1752
1780
  type DocType = 'template' | 'page' | 'flow';
1753
1781
  /**
@@ -3268,6 +3296,9 @@ declare const blockSpecs: {
3268
3296
  readonly errorMessage: {
3269
3297
  readonly default: "";
3270
3298
  };
3299
+ readonly linkedEntities: {
3300
+ readonly default: "[]";
3301
+ };
3271
3302
  readonly assignment: {
3272
3303
  readonly default: string;
3273
3304
  };
@@ -3304,6 +3335,9 @@ declare const blockSpecs: {
3304
3335
  readonly errorMessage: {
3305
3336
  readonly default: "";
3306
3337
  };
3338
+ readonly linkedEntities: {
3339
+ readonly default: "[]";
3340
+ };
3307
3341
  readonly assignment: {
3308
3342
  readonly default: string;
3309
3343
  };
@@ -3373,6 +3407,80 @@ declare const blockSpecs: {
3373
3407
  readonly content: "none";
3374
3408
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
3375
3409
  };
3410
+ governanceGroup: {
3411
+ config: {
3412
+ readonly type: "governanceGroup";
3413
+ readonly propSchema: {
3414
+ readonly title: {
3415
+ readonly default: "";
3416
+ };
3417
+ readonly description: {
3418
+ readonly default: "";
3419
+ };
3420
+ readonly icon: {
3421
+ readonly default: "users";
3422
+ };
3423
+ readonly groupType: {
3424
+ readonly default: "";
3425
+ };
3426
+ readonly surveySchema: {
3427
+ readonly default: "";
3428
+ };
3429
+ readonly answers: {
3430
+ readonly default: "";
3431
+ };
3432
+ readonly lastSubmission: {
3433
+ readonly default: "";
3434
+ };
3435
+ readonly coreAddress: {
3436
+ readonly default: "";
3437
+ };
3438
+ readonly groupAddress: {
3439
+ readonly default: "";
3440
+ };
3441
+ readonly afterCreate: {
3442
+ readonly default: "";
3443
+ };
3444
+ };
3445
+ readonly content: "none";
3446
+ };
3447
+ implementation: _blocknote_core.TiptapBlockImplementation<{
3448
+ readonly type: "governanceGroup";
3449
+ readonly propSchema: {
3450
+ readonly title: {
3451
+ readonly default: "";
3452
+ };
3453
+ readonly description: {
3454
+ readonly default: "";
3455
+ };
3456
+ readonly icon: {
3457
+ readonly default: "users";
3458
+ };
3459
+ readonly groupType: {
3460
+ readonly default: "";
3461
+ };
3462
+ readonly surveySchema: {
3463
+ readonly default: "";
3464
+ };
3465
+ readonly answers: {
3466
+ readonly default: "";
3467
+ };
3468
+ readonly lastSubmission: {
3469
+ readonly default: "";
3470
+ };
3471
+ readonly coreAddress: {
3472
+ readonly default: "";
3473
+ };
3474
+ readonly groupAddress: {
3475
+ readonly default: "";
3476
+ };
3477
+ readonly afterCreate: {
3478
+ readonly default: "";
3479
+ };
3480
+ };
3481
+ readonly content: "none";
3482
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
3483
+ };
3376
3484
  };
3377
3485
  declare const getExtraSlashMenuItems: (editor: any) => {
3378
3486
  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-Coy2wjmn.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-Coy2wjmn.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-75HEM77J.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-Coy2wjmn.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-Coy2wjmn.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-75HEM77J.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.23.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",