@ixo/editor 6.15.0 → 6.16.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/{chunk-SB3QHMRF.js → chunk-EWKSBZ62.js} +10 -4
- package/dist/{chunk-SB3QHMRF.js.map → chunk-EWKSBZ62.js.map} +1 -1
- package/dist/{chunk-AEMFFWTU.js → chunk-SSHQ3OTO.js} +2 -2
- package/dist/{chunk-WSRVRHND.js → chunk-WYIBJ24C.js} +69 -13
- package/dist/chunk-WYIBJ24C.js.map +1 -0
- package/dist/core/index.d.ts +28 -2
- package/dist/core/index.js +6 -2
- package/dist/core/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/mantine/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-WSRVRHND.js.map +0 -1
- /package/dist/{chunk-AEMFFWTU.js.map → chunk-SSHQ3OTO.js.map} +0 -0
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
OUTLOOK_SEND_SCHEMA,
|
|
8
8
|
SLACK_SEND_SCHEMA,
|
|
9
9
|
STEP_COMPLETED_EVENT_NAME,
|
|
10
|
+
XERO_WORK_TERMINAL_MAP_NAME,
|
|
10
11
|
buildActionRunInputs,
|
|
11
12
|
buildDomainCardLinkedResource,
|
|
12
13
|
buildFlowNodeFromBlock,
|
|
@@ -76,7 +77,7 @@ import {
|
|
|
76
77
|
verifyCompletion,
|
|
77
78
|
warnOnce,
|
|
78
79
|
writeRunRecordAndReconcile
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-WYIBJ24C.js";
|
|
80
81
|
|
|
81
82
|
// src/mantine/hooks/usePanel.ts
|
|
82
83
|
import { useCallback, useMemo, useEffect, useRef } from "react";
|
|
@@ -39141,13 +39142,18 @@ import { IconX as IconX19 } from "@tabler/icons-react";
|
|
|
39141
39142
|
import { useEffect as useEffect140, useMemo as useMemo140, useState as useState200 } from "react";
|
|
39142
39143
|
function useXeroWorkItems(editor, filter) {
|
|
39143
39144
|
const workItemsMap = editor?._yXeroWorkItems || null;
|
|
39145
|
+
const terminalMap = workItemsMap?.doc?.getMap?.(XERO_WORK_TERMINAL_MAP_NAME) || null;
|
|
39144
39146
|
const [rev, setRev] = useState200(0);
|
|
39145
39147
|
useEffect140(() => {
|
|
39146
39148
|
if (!workItemsMap?.observe) return;
|
|
39147
39149
|
const handler = () => setRev((value) => value + 1);
|
|
39148
39150
|
workItemsMap.observe(handler);
|
|
39149
|
-
|
|
39150
|
-
|
|
39151
|
+
terminalMap?.observe?.(handler);
|
|
39152
|
+
return () => {
|
|
39153
|
+
workItemsMap.unobserve(handler);
|
|
39154
|
+
terminalMap?.unobserve?.(handler);
|
|
39155
|
+
};
|
|
39156
|
+
}, [workItemsMap, terminalMap]);
|
|
39151
39157
|
return useMemo140(() => findXeroWorkItemsForEditor(editor, filter), [editor, filter.kind, filter.assignedBlockId, filter.statuses?.join("|"), rev]);
|
|
39152
39158
|
}
|
|
39153
39159
|
|
|
@@ -51524,4 +51530,4 @@ export {
|
|
|
51524
51530
|
ixoGraphQLClient,
|
|
51525
51531
|
getEntity
|
|
51526
51532
|
};
|
|
51527
|
-
//# sourceMappingURL=chunk-
|
|
51533
|
+
//# sourceMappingURL=chunk-EWKSBZ62.js.map
|