@ixo/editor 5.30.0 → 5.31.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.
@@ -65,7 +65,7 @@ import {
65
65
  transformSurveyToCredentialSubject,
66
66
  updateXeroWorkReviewPayloadForEditor,
67
67
  upsertXeroWorkItemForEditor
68
- } from "./chunk-FOYB7GE7.mjs";
68
+ } from "./chunk-OP7EY4CE.mjs";
69
69
 
70
70
  // src/mantine/hooks/usePanel.ts
71
71
  import { useCallback, useMemo, useEffect, useRef } from "react";
@@ -28738,13 +28738,12 @@ var BidInboxSection = ({ deedDid, collectionId, adminAddress, isDisabled, handle
28738
28738
  maxAmounts: maxAmounts.length > 0 ? maxAmounts : void 0
28739
28739
  });
28740
28740
  } else {
28741
- const currentUser = h.getCurrentUser?.();
28742
28741
  await h.approveServiceAgentApplication({
28743
28742
  adminAddress,
28744
28743
  collectionId,
28745
28744
  agentQuota: quotaNum,
28746
28745
  deedDid,
28747
- currentUserAddress: currentUser?.address || ""
28746
+ currentUserAddress: selectedBid.address
28748
28747
  });
28749
28748
  }
28750
28749
  } else {
@@ -43847,10 +43846,13 @@ function useCreateCollaborativeIxoEditor(options) {
43847
43846
  root.set("createdAt", (/* @__PURE__ */ new Date()).toISOString());
43848
43847
  root.set("createdBy", memoizedUser.id || "anonymous");
43849
43848
  root.set("flowOwnerDid", memoizedUser.did || "");
43849
+ if (options.sourceTemplateId && !root.get("source_template_id")) {
43850
+ root.set("source_template_id", options.sourceTemplateId);
43851
+ }
43850
43852
  if (titleText.length === 0 && options.title) {
43851
43853
  titleText.insert(0, options.title);
43852
43854
  }
43853
- }, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, memoizedUser.id]);
43855
+ }, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, options.sourceTemplateId, memoizedUser.id]);
43854
43856
  const [connectedUsers, setConnectedUsers] = useState194([]);
43855
43857
  const activeBlockIdRef = useRef46(null);
43856
43858
  const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
@@ -46482,4 +46484,4 @@ export {
46482
46484
  ixoGraphQLClient,
46483
46485
  getEntity
46484
46486
  };
46485
- //# sourceMappingURL=chunk-OPJWGL45.mjs.map
46487
+ //# sourceMappingURL=chunk-2WCWAKG6.mjs.map