@ixo/editor 6.1.0 → 6.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/README.md +208 -328
- package/dist/{chunk-RJOVPEAW.js → chunk-KEGZJCNU.js} +2 -2
- package/dist/chunk-KEGZJCNU.js.map +1 -0
- package/dist/{chunk-JDHRY2V4.js → chunk-LKYQK7IC.js} +2 -2
- package/dist/{chunk-F46UTXLR.js → chunk-SQBAOQH2.js} +33 -7
- package/dist/{chunk-F46UTXLR.js.map → chunk-SQBAOQH2.js.map} +1 -1
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/mantine/index.js +2 -2
- package/dist/{store-CevMFCuS.d.ts → store-DYnbzpF-.d.ts} +5 -5
- package/package.json +1 -1
- package/dist/chunk-RJOVPEAW.js.map +0 -1
- /package/dist/{chunk-JDHRY2V4.js.map → chunk-LKYQK7IC.js.map} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
replaceBlockInFragment,
|
|
11
11
|
swapBlocksInFragment,
|
|
12
12
|
writeCompiledBlocksToFragment
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KEGZJCNU.js";
|
|
14
14
|
|
|
15
15
|
// src/core/lib/flowCompiler/authoring.ts
|
|
16
16
|
import * as Y from "yjs";
|
|
@@ -257,4 +257,4 @@ export {
|
|
|
257
257
|
resetStepRuntime,
|
|
258
258
|
setFormAnswers
|
|
259
259
|
};
|
|
260
|
-
//# sourceMappingURL=chunk-
|
|
260
|
+
//# sourceMappingURL=chunk-LKYQK7IC.js.map
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
verifyCompletion,
|
|
84
84
|
warnOnce,
|
|
85
85
|
writeRunRecordAndReconcile
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-KEGZJCNU.js";
|
|
87
87
|
|
|
88
88
|
// src/mantine/hooks/usePanel.ts
|
|
89
89
|
import { useCallback, useMemo, useEffect, useRef } from "react";
|
|
@@ -46962,7 +46962,7 @@ var ExternalDropZone = ({
|
|
|
46962
46962
|
};
|
|
46963
46963
|
|
|
46964
46964
|
// src/mantine/IxoEditor.tsx
|
|
46965
|
-
import React401, { useMemo as useMemo174 } from "react";
|
|
46965
|
+
import React401, { useEffect as useEffect184, useMemo as useMemo174 } from "react";
|
|
46966
46966
|
import { GridSuggestionMenuController, SuggestionMenuController, getDefaultReactSlashMenuItems } from "@blocknote/react";
|
|
46967
46967
|
import { BlockNoteView } from "@blocknote/mantine";
|
|
46968
46968
|
import { filterSuggestionItems } from "@blocknote/core";
|
|
@@ -47328,6 +47328,32 @@ function IxoEditorContent({
|
|
|
47328
47328
|
const { activePanel } = usePanelStore();
|
|
47329
47329
|
const isPanelOpen = activePanel !== null;
|
|
47330
47330
|
const t = useTranslate();
|
|
47331
|
+
useEffect184(() => {
|
|
47332
|
+
if (!config.slashMenu || !isEditable) {
|
|
47333
|
+
return;
|
|
47334
|
+
}
|
|
47335
|
+
const root = editor.prosemirrorView?.root;
|
|
47336
|
+
if (!root) {
|
|
47337
|
+
return;
|
|
47338
|
+
}
|
|
47339
|
+
const handlePointerDown = (event) => {
|
|
47340
|
+
if (!editor.suggestionMenus.shown) {
|
|
47341
|
+
return;
|
|
47342
|
+
}
|
|
47343
|
+
const target = event.target;
|
|
47344
|
+
if (!(target instanceof Element)) {
|
|
47345
|
+
return;
|
|
47346
|
+
}
|
|
47347
|
+
if (target.closest("#bn-suggestion-menu")) {
|
|
47348
|
+
return;
|
|
47349
|
+
}
|
|
47350
|
+
editor.suggestionMenus.closeMenu();
|
|
47351
|
+
};
|
|
47352
|
+
root.addEventListener("pointerdown", handlePointerDown, true);
|
|
47353
|
+
return () => {
|
|
47354
|
+
root.removeEventListener("pointerdown", handlePointerDown, true);
|
|
47355
|
+
};
|
|
47356
|
+
}, [config.slashMenu, editor, isEditable]);
|
|
47331
47357
|
const editorContent = /* @__PURE__ */ React401.createElement(
|
|
47332
47358
|
BlockNoteView,
|
|
47333
47359
|
{
|
|
@@ -47502,7 +47528,7 @@ function IxoEditor({
|
|
|
47502
47528
|
}
|
|
47503
47529
|
|
|
47504
47530
|
// src/mantine/components/DevUcanGrantButton.tsx
|
|
47505
|
-
import React402, { useEffect as
|
|
47531
|
+
import React402, { useEffect as useEffect185, useMemo as useMemo175, useState as useState218 } from "react";
|
|
47506
47532
|
import { Alert as Alert106, Badge as Badge61, Button as Button101, Checkbox as Checkbox16, Divider as Divider46, Group as Group160, Loader as Loader95, Modal as Modal4, Paper as Paper26, Select as Select12, Stack as Stack293, Text as Text267 } from "@mantine/core";
|
|
47507
47533
|
import { IconKey as IconKey5, IconShieldPlus as IconShieldPlus5 } from "@tabler/icons-react";
|
|
47508
47534
|
var FLOW_AGENT_COMMAND_TYPES = [
|
|
@@ -47612,7 +47638,7 @@ function DevUcanGrantButton({ editor, handlers: propHandlers }) {
|
|
|
47612
47638
|
hasSigningHandler
|
|
47613
47639
|
});
|
|
47614
47640
|
};
|
|
47615
|
-
|
|
47641
|
+
useEffect185(() => {
|
|
47616
47642
|
if (!opened || !roomId || !matrixClient) return;
|
|
47617
47643
|
let cancelled = false;
|
|
47618
47644
|
setLoadingMembers(true);
|
|
@@ -47857,7 +47883,7 @@ var EntitySigningSetup = ({ opened, onClose, entityDid, entityName, onSetup }) =
|
|
|
47857
47883
|
};
|
|
47858
47884
|
|
|
47859
47885
|
// src/mantine/components/FlowPermissionsPanel.tsx
|
|
47860
|
-
import React404, { useState as useState220, useEffect as
|
|
47886
|
+
import React404, { useState as useState220, useEffect as useEffect186, useMemo as useMemo176 } from "react";
|
|
47861
47887
|
import { Stack as Stack295, Text as Text269, Paper as Paper27, Group as Group162, Badge as Badge62, Button as Button103, ActionIcon as ActionIcon53, Loader as Loader96, Alert as Alert108, Divider as Divider47 } from "@mantine/core";
|
|
47862
47888
|
import { IconPlus as IconPlus14, IconTrash as IconTrash17, IconShieldCheck as IconShieldCheck18, IconUser as IconUser14, IconRobot as IconRobot5, IconBuilding as IconBuilding2 } from "@tabler/icons-react";
|
|
47863
47889
|
var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission, onRevokePermission, getUserDisplayName }) => {
|
|
@@ -47870,7 +47896,7 @@ var FlowPermissionsPanel = ({ editor, entityDid, entityName, onGrantPermission,
|
|
|
47870
47896
|
}
|
|
47871
47897
|
return null;
|
|
47872
47898
|
}, [editor]);
|
|
47873
|
-
|
|
47899
|
+
useEffect186(() => {
|
|
47874
47900
|
const loadDelegations = async () => {
|
|
47875
47901
|
setLoading(true);
|
|
47876
47902
|
let allDelegations = [];
|
|
@@ -48258,4 +48284,4 @@ export {
|
|
|
48258
48284
|
ixoGraphQLClient,
|
|
48259
48285
|
getEntity
|
|
48260
48286
|
};
|
|
48261
|
-
//# sourceMappingURL=chunk-
|
|
48287
|
+
//# sourceMappingURL=chunk-SQBAOQH2.js.map
|