@ixo/editor 1.8.1 → 1.8.2

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/index.d.ts CHANGED
@@ -64,6 +64,70 @@ declare const CheckboxBlockSpec: {
64
64
 
65
65
  type CheckboxBlockProps = IxoBlockProps;
66
66
 
67
+ declare const ListBlockSpec: {
68
+ config: {
69
+ readonly type: "list";
70
+ readonly propSchema: {
71
+ readonly listType: {
72
+ readonly default: "";
73
+ };
74
+ readonly sort: {
75
+ readonly default: "{}";
76
+ };
77
+ readonly filter: {
78
+ readonly default: "{}";
79
+ };
80
+ readonly filterOptions: {
81
+ readonly default: "{}";
82
+ };
83
+ readonly sortOptions: {
84
+ readonly default: "{}";
85
+ };
86
+ readonly listConfig: {
87
+ readonly default: "{}";
88
+ };
89
+ readonly icon: {
90
+ readonly default: "📋";
91
+ };
92
+ };
93
+ readonly content: "none";
94
+ };
95
+ implementation: _blocknote_core.TiptapBlockImplementation<{
96
+ readonly type: "list";
97
+ readonly propSchema: {
98
+ readonly listType: {
99
+ readonly default: "";
100
+ };
101
+ readonly sort: {
102
+ readonly default: "{}";
103
+ };
104
+ readonly filter: {
105
+ readonly default: "{}";
106
+ };
107
+ readonly filterOptions: {
108
+ readonly default: "{}";
109
+ };
110
+ readonly sortOptions: {
111
+ readonly default: "{}";
112
+ };
113
+ readonly listConfig: {
114
+ readonly default: "{}";
115
+ };
116
+ readonly icon: {
117
+ readonly default: "📋";
118
+ };
119
+ };
120
+ readonly content: "none";
121
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
122
+ };
123
+
124
+ interface ListBlockSettings {
125
+ listType: string | null;
126
+ listConfig: string;
127
+ }
128
+ interface ListBlockProps extends IxoBlockProps {
129
+ }
130
+
67
131
  type ProposalActionType = 'Spend' | 'UpdateMembers' | 'Stake' | 'Join' | 'AuthzExec' | 'AuthzGrant' | 'AuthzRevoke' | 'BurnNft' | 'Mint' | 'Execute' | 'Instantiate' | 'ManageSubDaos' | 'ManageCw721' | 'ManageCw20' | 'Migrate' | 'TransferNft' | 'UpdateAdmin' | 'UpdatePreProposeConfig' | 'UpdateVotingConfig' | 'GovernanceVote' | 'WithdrawTokenSwap' | 'UpdateInfo' | 'Custom' | 'ManageStorageItems' | 'ValidatorActions' | 'PerformTokenSwap' | 'DaoAdminExec' | 'StakeToGroup' | 'SendGroupToken' | 'AcceptToMarketplace' | 'CreateEntity';
68
132
  interface Member$1 {
69
133
  addr: string;
@@ -848,91 +912,6 @@ declare const BlocknoteProvider: React.FC<{
848
912
  declare const useBlocknoteContext: () => BlocknoteContextValue;
849
913
  declare const useBlocknoteHandlers: () => BlocknoteHandlers;
850
914
 
851
- type LinkedResourcesListType = 'linked_resources';
852
-
853
- type AssetsListType = 'assets';
854
-
855
- type TransactionsListType = 'transactions';
856
-
857
- type CollectionsListType = 'collections';
858
-
859
- type InvestmentsListType = 'investments';
860
-
861
- type OraclesListType = 'oracles';
862
-
863
- type PodsListType = 'pods';
864
-
865
- type ProposalsListType = 'proposals';
866
-
867
- type RequestsListType = 'requests';
868
-
869
- type GroupMembersListType = 'group_members';
870
-
871
- type ValidatorsListType = 'validators';
872
-
873
- type DaoMembersListType = 'dao_members';
874
-
875
- type ListType = LinkedResourcesListType | AssetsListType | TransactionsListType | CollectionsListType | InvestmentsListType | OraclesListType | PodsListType | ProposalsListType | RequestsListType | GroupMembersListType | ValidatorsListType | DaoMembersListType;
876
-
877
- interface ListBlockSettings {
878
- listType: ListType | null;
879
- listConfig: Record<string, any>;
880
- }
881
- interface ListBlockProps {
882
- block: any;
883
- editor: any;
884
- }
885
- declare const ListBlock: {
886
- config: {
887
- readonly type: "list";
888
- readonly propSchema: {
889
- readonly listType: {
890
- readonly default: "";
891
- };
892
- readonly sort: {
893
- readonly default: "{}";
894
- };
895
- readonly filter: {
896
- readonly default: "{}";
897
- };
898
- readonly filterOptions: {
899
- readonly default: "{}";
900
- };
901
- readonly sortOptions: {
902
- readonly default: "{}";
903
- };
904
- readonly listConfig: {
905
- readonly default: "{}";
906
- };
907
- };
908
- readonly content: "none";
909
- };
910
- implementation: _blocknote_core.TiptapBlockImplementation<{
911
- readonly type: "list";
912
- readonly propSchema: {
913
- readonly listType: {
914
- readonly default: "";
915
- };
916
- readonly sort: {
917
- readonly default: "{}";
918
- };
919
- readonly filter: {
920
- readonly default: "{}";
921
- };
922
- readonly filterOptions: {
923
- readonly default: "{}";
924
- };
925
- readonly sortOptions: {
926
- readonly default: "{}";
927
- };
928
- readonly listConfig: {
929
- readonly default: "{}";
930
- };
931
- };
932
- readonly content: "none";
933
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
934
- };
935
-
936
915
  interface OverviewBlockSettings {
937
916
  did: string;
938
917
  }
@@ -1219,6 +1198,9 @@ declare const blockSpecs: {
1219
1198
  readonly listConfig: {
1220
1199
  readonly default: "{}";
1221
1200
  };
1201
+ readonly icon: {
1202
+ readonly default: "📋";
1203
+ };
1222
1204
  };
1223
1205
  readonly content: "none";
1224
1206
  };
@@ -1243,6 +1225,9 @@ declare const blockSpecs: {
1243
1225
  readonly listConfig: {
1244
1226
  readonly default: "{}";
1245
1227
  };
1228
+ readonly icon: {
1229
+ readonly default: "📋";
1230
+ };
1246
1231
  };
1247
1232
  readonly content: "none";
1248
1233
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
@@ -1774,4 +1759,4 @@ declare class GraphQLClient {
1774
1759
  }
1775
1760
  declare const ixoGraphQLClient: GraphQLClient;
1776
1761
 
1777
- export { type Addr, type ApiRequestBlockProps, ApiRequestBlockSpec, AuthzExecActionTypes, type BlockRequirements, type BlocknoteContextValue, type BlocknoteHandlers, BlocknoteProvider, type CheckboxBlockProps, CheckboxBlockSpec, type CosmosMsgForEmpty, type Entity, type EntityResponse, type EntityVariables, type Expiration, GraphQLClient, type GraphQLRequest, type GraphQLResponse, type HttpMethod, type IxoCollaborativeEditorOptions, type IxoCollaborativeUser, IxoEditor, type IxoEditorConfig, type IxoEditorOptions, type IxoEditorProps, type IxoEditorTheme, type KeyValuePair, ListBlock, type ListBlockProps, type ListBlockSettings, OverviewBlock, type OverviewBlockProps, type OverviewBlockSettings, type ProposalAction, type ProposalBlockProps, ProposalBlockSpec, type ProposalResponse, type SingleChoiceProposal, StakeType, StakeType as StakeTypeValue, type Status, type Threshold, type Timestamp, type Uint128, type User, ValidatorActionType, type Vote, type VoteInfo, type VoteResponse, type Votes, blockSpecs, getEntity, getExtraSlashMenuItems, ixoGraphQLClient, useBlocknoteContext, useBlocknoteHandlers, useCreateCollaborativeIxoEditor, useCreateIxoEditor };
1762
+ export { type Addr, type ApiRequestBlockProps, ApiRequestBlockSpec, AuthzExecActionTypes, type BlockRequirements, type BlocknoteContextValue, type BlocknoteHandlers, BlocknoteProvider, type CheckboxBlockProps, CheckboxBlockSpec, type CosmosMsgForEmpty, type Entity, type EntityResponse, type EntityVariables, type Expiration, GraphQLClient, type GraphQLRequest, type GraphQLResponse, type HttpMethod, type IxoCollaborativeEditorOptions, type IxoCollaborativeUser, IxoEditor, type IxoEditorConfig, type IxoEditorOptions, type IxoEditorProps, type IxoEditorTheme, type KeyValuePair, type ListBlockProps, type ListBlockSettings, ListBlockSpec, OverviewBlock, type OverviewBlockProps, type OverviewBlockSettings, type ProposalAction, type ProposalBlockProps, ProposalBlockSpec, type ProposalResponse, type SingleChoiceProposal, StakeType, StakeType as StakeTypeValue, type Status, type Threshold, type Timestamp, type Uint128, type User, ValidatorActionType, type Vote, type VoteInfo, type VoteResponse, type Votes, blockSpecs, getEntity, getExtraSlashMenuItems, ixoGraphQLClient, useBlocknoteContext, useBlocknoteHandlers, useCreateCollaborativeIxoEditor, useCreateIxoEditor };
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  CheckboxBlockSpec,
6
6
  GraphQLClient,
7
7
  IxoEditor,
8
- ListBlock,
8
+ ListBlockSpec,
9
9
  OverviewBlock,
10
10
  ProposalBlockSpec,
11
11
  StakeType,
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "./chunk-ASAGPCCF.mjs";
21
+ } from "./chunk-NJ34FIYQ.mjs";
22
22
  export {
23
23
  ApiRequestBlockSpec,
24
24
  AuthzExecActionTypes,
@@ -26,7 +26,7 @@ export {
26
26
  CheckboxBlockSpec,
27
27
  GraphQLClient,
28
28
  IxoEditor,
29
- ListBlock,
29
+ ListBlockSpec,
30
30
  OverviewBlock,
31
31
  ProposalBlockSpec,
32
32
  StakeType,
@@ -1,4 +1,4 @@
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, ListBlock, ListBlockProps, ListBlockSettings, 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';
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
2
  export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
3
3
  import 'matrix-js-sdk';
4
4
  import 'yjs';
@@ -5,7 +5,7 @@ import {
5
5
  CheckboxBlockSpec,
6
6
  GraphQLClient,
7
7
  IxoEditor,
8
- ListBlock,
8
+ ListBlockSpec,
9
9
  OverviewBlock,
10
10
  ProposalBlockSpec,
11
11
  StakeType,
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "../chunk-ASAGPCCF.mjs";
21
+ } from "../chunk-NJ34FIYQ.mjs";
22
22
  export {
23
23
  ApiRequestBlockSpec,
24
24
  AuthzExecActionTypes,
@@ -26,7 +26,7 @@ export {
26
26
  CheckboxBlockSpec,
27
27
  GraphQLClient,
28
28
  IxoEditor,
29
- ListBlock,
29
+ ListBlockSpec,
30
30
  OverviewBlock,
31
31
  ProposalBlockSpec,
32
32
  StakeType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",