@ixo/editor 5.30.0 → 5.31.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.
@@ -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";
@@ -43847,10 +43847,13 @@ function useCreateCollaborativeIxoEditor(options) {
43847
43847
  root.set("createdAt", (/* @__PURE__ */ new Date()).toISOString());
43848
43848
  root.set("createdBy", memoizedUser.id || "anonymous");
43849
43849
  root.set("flowOwnerDid", memoizedUser.did || "");
43850
+ if (options.sourceTemplateId && !root.get("source_template_id")) {
43851
+ root.set("source_template_id", options.sourceTemplateId);
43852
+ }
43850
43853
  if (titleText.length === 0 && options.title) {
43851
43854
  titleText.insert(0, options.title);
43852
43855
  }
43853
- }, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, memoizedUser.id]);
43856
+ }, [connectionStatus, root, titleText, permissions.write, options.docId, options.title, options.sourceTemplateId, memoizedUser.id]);
43854
43857
  const [connectedUsers, setConnectedUsers] = useState194([]);
43855
43858
  const activeBlockIdRef = useRef46(null);
43856
43859
  const awarenessInstance = matrixProvider?.awarenessInstance ?? null;
@@ -46482,4 +46485,4 @@ export {
46482
46485
  ixoGraphQLClient,
46483
46486
  getEntity
46484
46487
  };
46485
- //# sourceMappingURL=chunk-OPJWGL45.mjs.map
46488
+ //# sourceMappingURL=chunk-U7MABD7T.mjs.map