@ixo/editor 2.0.1 → 2.1.1
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.mjs
CHANGED
package/dist/mantine/index.d.ts
CHANGED
|
@@ -20,4 +20,26 @@ declare const usePanel: (panelId: string, content: React.ReactNode) => {
|
|
|
20
20
|
close: () => void;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
type CollapseEvent = 'collapse' | 'expand' | 'toggle';
|
|
24
|
+
type Listener = (event: CollapseEvent) => void;
|
|
25
|
+
interface ListBlocksUIContextValue {
|
|
26
|
+
broadcastCollapse: (event: CollapseEvent) => void;
|
|
27
|
+
subscribe: (listener: Listener) => () => void;
|
|
28
|
+
}
|
|
29
|
+
interface ListBlocksUIState {
|
|
30
|
+
listeners: Set<Listener>;
|
|
31
|
+
broadcastCollapse: (event: CollapseEvent) => void;
|
|
32
|
+
subscribe: (listener: Listener) => () => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Zustand store for managing list blocks UI state (collapse/expand)
|
|
36
|
+
* Works across multiple React instances (no React Context needed)
|
|
37
|
+
*/
|
|
38
|
+
declare const useListBlocksUIStore: zustand.UseBoundStore<zustand.StoreApi<ListBlocksUIState>>;
|
|
39
|
+
/**
|
|
40
|
+
* Hook to access list blocks UI functionality
|
|
41
|
+
* No provider needed - uses Zustand store directly
|
|
42
|
+
*/
|
|
43
|
+
declare const useListBlocksUI: () => ListBlocksUIContextValue;
|
|
44
|
+
|
|
45
|
+
export { type CollapseEvent, type ListBlocksUIContextValue, type Listener, useListBlocksUI, useListBlocksUIStore, usePanel, usePanelStore };
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -19,9 +19,11 @@ import {
|
|
|
19
19
|
useBlocknoteHandlers,
|
|
20
20
|
useCreateCollaborativeIxoEditor,
|
|
21
21
|
useCreateIxoEditor,
|
|
22
|
+
useListBlocksUI,
|
|
23
|
+
useListBlocksUIStore,
|
|
22
24
|
usePanel,
|
|
23
25
|
usePanelStore
|
|
24
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-DYUWLMSF.mjs";
|
|
25
27
|
export {
|
|
26
28
|
ApiRequestBlockSpec,
|
|
27
29
|
AuthzExecActionTypes,
|
|
@@ -43,6 +45,8 @@ export {
|
|
|
43
45
|
useBlocknoteHandlers,
|
|
44
46
|
useCreateCollaborativeIxoEditor,
|
|
45
47
|
useCreateIxoEditor,
|
|
48
|
+
useListBlocksUI,
|
|
49
|
+
useListBlocksUIStore,
|
|
46
50
|
usePanel,
|
|
47
51
|
usePanelStore
|
|
48
52
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A custom BlockNote editor wrapper for IXO team",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"private": false,
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@ixo/matrix-crdt": "*",
|
|
53
|
+
"@ixo/surveys": "^0.0.2",
|
|
53
54
|
"@mantine/core": "^7.11.2",
|
|
54
55
|
"@mantine/hooks": "^7.11.2",
|
|
55
56
|
"matrix-js-sdk": "37.5.0",
|
|
@@ -60,12 +61,12 @@
|
|
|
60
61
|
"@blocknote/core": "0.29.1",
|
|
61
62
|
"@blocknote/mantine": "0.29.1",
|
|
62
63
|
"@blocknote/react": "0.29.1",
|
|
63
|
-
"@ixo/surveys": "^0.0.2",
|
|
64
64
|
"@tabler/icons-react": "3.35.0",
|
|
65
65
|
"yjs": "13.6.27",
|
|
66
66
|
"zustand": "5.0.8"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
+
"@ixo/surveys": "^0.0.2",
|
|
69
70
|
"@commitlint/cli": "^20.0.0",
|
|
70
71
|
"@commitlint/config-conventional": "^20.0.0",
|
|
71
72
|
"@eslint/compat": "^1.4.0",
|