@ixo/editor 2.21.0 → 2.22.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.
@@ -674,6 +674,11 @@ interface VoteResponse {
674
674
  interface User {
675
675
  address: string;
676
676
  }
677
+ type AwarenessDocActor = {
678
+ name: string;
679
+ did: string;
680
+ src: string | null;
681
+ };
677
682
  type IUserMatrixProfile = {
678
683
  walletAddress: string;
679
684
  displayname: string;
@@ -1286,6 +1291,7 @@ interface BlocknoteHandlers {
1286
1291
  getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
1287
1292
  getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
1288
1293
  getCurrentUser: () => User;
1294
+ getRoomMembers: (roomId: string, mx: MatrixClient) => Promise<AwarenessDocActor[]>;
1289
1295
  getMatrixInfoPerDid: (did: string) => Promise<IUserMatrixProfile>;
1290
1296
  getDaoGroupsIds: () => Promise<string[] | undefined>;
1291
1297
  getDAOGroups: () => Promise<DAOGroup[]>;
@@ -2049,6 +2055,9 @@ declare const ApiRequestBlockSpec: {
2049
2055
  readonly conditions: {
2050
2056
  readonly default: "";
2051
2057
  };
2058
+ readonly assignment: {
2059
+ readonly default: string;
2060
+ };
2052
2061
  };
2053
2062
  readonly content: "inline";
2054
2063
  };
@@ -2088,6 +2097,9 @@ declare const ApiRequestBlockSpec: {
2088
2097
  readonly conditions: {
2089
2098
  readonly default: "";
2090
2099
  };
2100
+ readonly assignment: {
2101
+ readonly default: string;
2102
+ };
2091
2103
  };
2092
2104
  readonly content: "inline";
2093
2105
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2394,6 +2406,9 @@ declare const blockSpecs: {
2394
2406
  readonly conditions: {
2395
2407
  readonly default: "";
2396
2408
  };
2409
+ readonly assignment: {
2410
+ readonly default: string;
2411
+ };
2397
2412
  };
2398
2413
  readonly content: "inline";
2399
2414
  };
@@ -2433,6 +2448,9 @@ declare const blockSpecs: {
2433
2448
  readonly conditions: {
2434
2449
  readonly default: "";
2435
2450
  };
2451
+ readonly assignment: {
2452
+ readonly default: string;
2453
+ };
2436
2454
  };
2437
2455
  readonly content: "inline";
2438
2456
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2608,6 +2626,9 @@ declare const blockSpecs: {
2608
2626
  readonly activationRequireAuthorisedActor: {
2609
2627
  readonly default: false;
2610
2628
  };
2629
+ readonly assignment: {
2630
+ readonly default: string;
2631
+ };
2611
2632
  };
2612
2633
  readonly content: "none";
2613
2634
  };
@@ -2653,6 +2674,9 @@ declare const blockSpecs: {
2653
2674
  readonly activationRequireAuthorisedActor: {
2654
2675
  readonly default: false;
2655
2676
  };
2677
+ readonly assignment: {
2678
+ readonly default: string;
2679
+ };
2656
2680
  };
2657
2681
  readonly content: "none";
2658
2682
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2694,6 +2718,9 @@ declare const blockSpecs: {
2694
2718
  readonly activationRequireAuthorisedActor: {
2695
2719
  readonly default: false;
2696
2720
  };
2721
+ readonly assignment: {
2722
+ readonly default: string;
2723
+ };
2697
2724
  };
2698
2725
  readonly content: "none";
2699
2726
  };
@@ -2733,6 +2760,9 @@ declare const blockSpecs: {
2733
2760
  readonly activationRequireAuthorisedActor: {
2734
2761
  readonly default: false;
2735
2762
  };
2763
+ readonly assignment: {
2764
+ readonly default: string;
2765
+ };
2736
2766
  };
2737
2767
  readonly content: "none";
2738
2768
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -2759,6 +2789,9 @@ declare const blockSpecs: {
2759
2789
  readonly adminAddress: {
2760
2790
  readonly default: "";
2761
2791
  };
2792
+ readonly assignment: {
2793
+ readonly default: string;
2794
+ };
2762
2795
  };
2763
2796
  readonly content: "none";
2764
2797
  };
@@ -2783,6 +2816,9 @@ declare const blockSpecs: {
2783
2816
  readonly adminAddress: {
2784
2817
  readonly default: "";
2785
2818
  };
2819
+ readonly assignment: {
2820
+ readonly default: string;
2821
+ };
2786
2822
  };
2787
2823
  readonly content: "none";
2788
2824
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -3232,6 +3268,9 @@ declare const blockSpecs: {
3232
3268
  readonly errorMessage: {
3233
3269
  readonly default: "";
3234
3270
  };
3271
+ readonly assignment: {
3272
+ readonly default: string;
3273
+ };
3235
3274
  };
3236
3275
  readonly content: "none";
3237
3276
  };
@@ -3265,6 +3304,9 @@ declare const blockSpecs: {
3265
3304
  readonly errorMessage: {
3266
3305
  readonly default: "";
3267
3306
  };
3307
+ readonly assignment: {
3308
+ readonly default: string;
3309
+ };
3268
3310
  };
3269
3311
  readonly content: "none";
3270
3312
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -3585,6 +3627,15 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
3585
3627
  * @returns Flow metadata object
3586
3628
  */
3587
3629
  getFlowMetadata?: () => FlowMetadata;
3630
+ /**
3631
+ * Matrix room ID where this document is synced
3632
+ */
3633
+ getRoomId?: () => string;
3634
+ /**
3635
+ * Get Matrix client
3636
+ * @returns Matrix client
3637
+ */
3638
+ getMatrixClient?: () => MatrixClient;
3588
3639
  /**
3589
3640
  * Get flow-level metadata
3590
3641
  * @returns Flow metadata object
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-B3dAtUfP.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-B3dAtUfP.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-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';
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-BPS3TRQX.mjs";
37
+ } from "./chunk-NBT2P6S5.mjs";
38
38
  export {
39
39
  ApiRequestBlockSpec,
40
40
  AuthorizationTab,
@@ -1,5 +1,5 @@
1
- import { ak as IxoBlockProps } from '../graphql-client-B3dAtUfP.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-B3dAtUfP.mjs';
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';
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-BPS3TRQX.mjs";
35
+ } from "../chunk-NBT2P6S5.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.21.0",
3
+ "version": "2.22.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",