@ixo/editor 1.19.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-FDLWSUB5.mjs → chunk-O477KPVK.mjs} +177 -95
- package/dist/chunk-O477KPVK.mjs.map +1 -0
- package/dist/index.d.ts +2 -1
- 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-FDLWSUB5.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1984,11 +1984,12 @@ interface IxoEditorProps {
|
|
|
1984
1984
|
mantineTheme?: any;
|
|
1985
1985
|
handlers?: BlocknoteHandlers;
|
|
1986
1986
|
blockRequirements?: BlockRequirements;
|
|
1987
|
+
isPanelVisible?: boolean;
|
|
1987
1988
|
}
|
|
1988
1989
|
/**
|
|
1989
1990
|
* IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
|
|
1990
1991
|
*/
|
|
1991
|
-
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;
|
|
1992
1993
|
|
|
1993
1994
|
/**
|
|
1994
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
|