@ixo/editor 1.18.0 → 1.20.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-JQ2HK6IY.mjs → chunk-O477KPVK.mjs} +844 -678
- package/dist/chunk-O477KPVK.mjs.map +1 -0
- package/dist/index.d.ts +17 -2
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.d.ts +18 -0
- package/dist/mantine/index.mjs +7 -3
- package/package.json +1 -1
- package/dist/chunk-JQ2HK6IY.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -740,6 +740,17 @@ interface Dao {
|
|
|
740
740
|
icon: string;
|
|
741
741
|
description?: string;
|
|
742
742
|
}
|
|
743
|
+
interface Balance {
|
|
744
|
+
denom: string;
|
|
745
|
+
tokenName: string;
|
|
746
|
+
chainCount: number;
|
|
747
|
+
tokenImage: string;
|
|
748
|
+
amount: number;
|
|
749
|
+
usdAmount: number;
|
|
750
|
+
isCoin: boolean;
|
|
751
|
+
isShare: boolean;
|
|
752
|
+
isCredit: boolean;
|
|
753
|
+
}
|
|
743
754
|
interface Oracle {
|
|
744
755
|
did: string;
|
|
745
756
|
name: string;
|
|
@@ -911,7 +922,7 @@ interface BlocknoteHandlers {
|
|
|
911
922
|
vote: ({ proposalId, rationale, vote, proposalContractAddress }: VoteParams) => Promise<void>;
|
|
912
923
|
createProposal: (params: CreateProposalParams) => Promise<string>;
|
|
913
924
|
getEntity: (did: string) => Promise<EntityResponse$1>;
|
|
914
|
-
getAssets: (collectionDid: string, page: number) => Promise<{
|
|
925
|
+
getAssets: (collectionDid: string, page: number, ownerAddress?: string) => Promise<{
|
|
915
926
|
data: Asset[];
|
|
916
927
|
totalCount: number;
|
|
917
928
|
}>;
|
|
@@ -982,6 +993,9 @@ interface BlocknoteHandlers {
|
|
|
982
993
|
}) => Promise<{
|
|
983
994
|
groupContractAddress: string;
|
|
984
995
|
}>;
|
|
996
|
+
getBalances: (address: string) => Promise<{
|
|
997
|
+
data: Balance[];
|
|
998
|
+
}>;
|
|
985
999
|
sendNotification: (params: NotificationParams) => Promise<NotificationResponse>;
|
|
986
1000
|
getAssetDetails?: (id: string) => Promise<AssetDetails>;
|
|
987
1001
|
getCollectionDetails?: (id: string) => Promise<CollectionDetails>;
|
|
@@ -1970,11 +1984,12 @@ interface IxoEditorProps {
|
|
|
1970
1984
|
mantineTheme?: any;
|
|
1971
1985
|
handlers?: BlocknoteHandlers;
|
|
1972
1986
|
blockRequirements?: BlockRequirements;
|
|
1987
|
+
isPanelVisible?: boolean;
|
|
1973
1988
|
}
|
|
1974
1989
|
/**
|
|
1975
1990
|
* IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
|
|
1976
1991
|
*/
|
|
1977
|
-
declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, }: IxoEditorProps): React.ReactElement | null;
|
|
1992
|
+
declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, }: IxoEditorProps): React.ReactElement | null;
|
|
1978
1993
|
|
|
1979
1994
|
/**
|
|
1980
1995
|
* GraphQL queries and types for IXO network
|
package/dist/index.mjs
CHANGED
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
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
|
+
import * as zustand from 'zustand';
|
|
2
3
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
3
4
|
import 'matrix-js-sdk';
|
|
4
5
|
import 'yjs';
|
|
5
6
|
import 'react';
|
|
7
|
+
|
|
8
|
+
interface PanelState {
|
|
9
|
+
activePanel: string | null;
|
|
10
|
+
registeredPanels: Map<string, React.ReactNode>;
|
|
11
|
+
setActivePanel: (panelId: string | null) => void;
|
|
12
|
+
closePanel: () => void;
|
|
13
|
+
registerPanel: (id: string, content: React.ReactNode) => void;
|
|
14
|
+
unregisterPanel: (id: string) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const usePanelStore: zustand.UseBoundStore<zustand.StoreApi<PanelState>>;
|
|
17
|
+
declare const usePanel: (panelId: string, content: React.ReactNode) => {
|
|
18
|
+
opened: boolean;
|
|
19
|
+
open: () => void;
|
|
20
|
+
close: () => void;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { usePanel, usePanelStore };
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -17,8 +17,10 @@ import {
|
|
|
17
17
|
useBlocknoteContext,
|
|
18
18
|
useBlocknoteHandlers,
|
|
19
19
|
useCreateCollaborativeIxoEditor,
|
|
20
|
-
useCreateIxoEditor
|
|
21
|
-
|
|
20
|
+
useCreateIxoEditor,
|
|
21
|
+
usePanel,
|
|
22
|
+
usePanelStore
|
|
23
|
+
} from "../chunk-O477KPVK.mjs";
|
|
22
24
|
export {
|
|
23
25
|
ApiRequestBlockSpec,
|
|
24
26
|
AuthzExecActionTypes,
|
|
@@ -38,6 +40,8 @@ export {
|
|
|
38
40
|
useBlocknoteContext,
|
|
39
41
|
useBlocknoteHandlers,
|
|
40
42
|
useCreateCollaborativeIxoEditor,
|
|
41
|
-
useCreateIxoEditor
|
|
43
|
+
useCreateIxoEditor,
|
|
44
|
+
usePanel,
|
|
45
|
+
usePanelStore
|
|
42
46
|
};
|
|
43
47
|
//# sourceMappingURL=index.mjs.map
|