@ixo/editor 6.15.0 → 6.16.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.
@@ -10,7 +10,7 @@ import {
10
10
  replaceBlockInFragment,
11
11
  swapBlocksInFragment,
12
12
  writeCompiledBlocksToFragment
13
- } from "./chunk-WSRVRHND.js";
13
+ } from "./chunk-TFY73KIE.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-AEMFFWTU.js.map
260
+ //# sourceMappingURL=chunk-6IOOGDDS.js.map
@@ -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-WSRVRHND.js";
80
+ } from "./chunk-TFY73KIE.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
- return () => workItemsMap.unobserve(handler);
39150
- }, [workItemsMap]);
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-SB3QHMRF.js.map
51533
+ //# sourceMappingURL=chunk-MR37B67W.js.map