@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.1 → 6.2.3-dev.10

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.
Files changed (59) hide show
  1. package/dist/browser/assets/{entry-5_Eh4a2Z.js → entry-DvpdFGdw.js} +2 -2
  2. package/dist/browser/assets/{projection-entry-5PVbP10h.js → projection-entry-QU4xTPM_.js} +3 -3
  3. package/dist/browser/{connect-BqgnsniX.js → connect-kwnl2v6o.js} +11 -5
  4. package/dist/browser/{connect-BqgnsniX.js.map → connect-kwnl2v6o.js.map} +1 -1
  5. package/dist/browser/{dist-C-xkNfyD.js → dist-D0tSbK8B.js} +90 -10
  6. package/dist/browser/dist-D0tSbK8B.js.map +1 -0
  7. package/dist/browser/{document-drive-ZQzPQfEL.js → document-drive-fcQ4o8i3.js} +127 -44
  8. package/dist/browser/document-drive-fcQ4o8i3.js.map +1 -0
  9. package/dist/browser/document-models/index.js +1 -1
  10. package/dist/browser/{editor-BNgF9-uX.js → editor-CbJkIqg_.js} +6 -6
  11. package/dist/browser/{editor-BNgF9-uX.js.map → editor-CbJkIqg_.js.map} +1 -1
  12. package/dist/browser/{editor-DZP1WlYy.js → editor-D_gIraSB.js} +5 -5
  13. package/dist/browser/{editor-DZP1WlYy.js.map → editor-D_gIraSB.js.map} +1 -1
  14. package/dist/browser/editors/document-model-editor/module.js +1 -1
  15. package/dist/browser/editors/generic-drive-explorer/index.js +4 -4
  16. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  17. package/dist/browser/{folder-view-tx0A96ZI.js → folder-view-CGcqEbak.js} +3 -3
  18. package/dist/browser/{folder-view-tx0A96ZI.js.map → folder-view-CGcqEbak.js.map} +1 -1
  19. package/dist/browser/{graphql-editor-Cbkb5KRZ.js → graphql-editor-C9wxFf0b.js} +3 -3
  20. package/dist/browser/{graphql-editor-Cbkb5KRZ.js.map → graphql-editor-C9wxFf0b.js.map} +1 -1
  21. package/dist/browser/index.js +2 -2
  22. package/dist/browser/{json-editor-CN6kPtl1.js → json-editor-BIGVi54h.js} +3 -3
  23. package/dist/browser/{json-editor-CN6kPtl1.js.map → json-editor-BIGVi54h.js.map} +1 -1
  24. package/dist/browser/{lib-ewnRj2dJ.js → lib-BWPfFpyy.js} +2 -2
  25. package/dist/browser/lib-BWPfFpyy.js.map +1 -0
  26. package/dist/browser/{state-schemas-CKh98ehP.js → state-schemas-C9Nb7S5z.js} +3 -3
  27. package/dist/browser/{state-schemas-CKh98ehP.js.map → state-schemas-C9Nb7S5z.js.map} +1 -1
  28. package/dist/node/{connect-CeLh6yfj.mjs → connect-D3-HufsW.mjs} +11 -5
  29. package/dist/node/{connect-CeLh6yfj.mjs.map → connect-D3-HufsW.mjs.map} +1 -1
  30. package/dist/node/{dist-CUFTZwfc.mjs → dist-D5Xp9PwJ.mjs} +90 -10
  31. package/dist/node/dist-D5Xp9PwJ.mjs.map +1 -0
  32. package/dist/node/{document-drive-D1NMjQQc.mjs → document-drive-DuGBBYw5.mjs} +127 -44
  33. package/dist/node/document-drive-DuGBBYw5.mjs.map +1 -0
  34. package/dist/node/document-models/index.mjs +1 -1
  35. package/dist/node/{editor-Dg2OZEJu.mjs → editor-CJSAZpIG.mjs} +5 -5
  36. package/dist/node/{editor-Dg2OZEJu.mjs.map → editor-CJSAZpIG.mjs.map} +1 -1
  37. package/dist/node/{editor-CXQOsbup.mjs → editor-D8SL0ydm.mjs} +6 -6
  38. package/dist/node/{editor-CXQOsbup.mjs.map → editor-D8SL0ydm.mjs.map} +1 -1
  39. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  40. package/dist/node/editors/generic-drive-explorer/index.mjs +4 -4
  41. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  42. package/dist/node/{folder-view-DZ0o2-Ef.mjs → folder-view-ChtWc33j.mjs} +3 -3
  43. package/dist/node/{folder-view-DZ0o2-Ef.mjs.map → folder-view-ChtWc33j.mjs.map} +1 -1
  44. package/dist/node/{graphql-editor-DNxebuTn.mjs → graphql-editor-CnK5kIk9.mjs} +3 -3
  45. package/dist/node/{graphql-editor-DNxebuTn.mjs.map → graphql-editor-CnK5kIk9.mjs.map} +1 -1
  46. package/dist/node/index.mjs +2 -2
  47. package/dist/node/{json-editor-BpnEn9AS.mjs → json-editor-j8_JGfcP.mjs} +3 -3
  48. package/dist/node/{json-editor-BpnEn9AS.mjs.map → json-editor-j8_JGfcP.mjs.map} +1 -1
  49. package/dist/node/{main-B1tRsYOp.mjs → main-7sul-YJl.mjs} +2 -2
  50. package/dist/node/main-7sul-YJl.mjs.map +1 -0
  51. package/dist/node/{state-schemas-CuSHxrn6.mjs → state-schemas-DURvYjxG.mjs} +3 -3
  52. package/dist/node/{state-schemas-CuSHxrn6.mjs.map → state-schemas-DURvYjxG.mjs.map} +1 -1
  53. package/package.json +7 -7
  54. package/dist/browser/dist-C-xkNfyD.js.map +0 -1
  55. package/dist/browser/document-drive-ZQzPQfEL.js.map +0 -1
  56. package/dist/browser/lib-ewnRj2dJ.js.map +0 -1
  57. package/dist/node/dist-CUFTZwfc.mjs.map +0 -1
  58. package/dist/node/document-drive-D1NMjQQc.mjs.map +0 -1
  59. package/dist/node/main-B1tRsYOp.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { D as __commonJSMin, M as __toESM, r as pascalCase, t as capitalCase } from "./dist-DT7jI9ol.mjs";
2
- import { A as createPresignedHeader, D as buildSignedAction, E as baseSaveToFileHandle, G as replayDocumentVersioned, N as createZip, T as baseLoadFromInputVersioned, _ as UnsupportedDocumentModelVersionError, a as getDescendants, c as isFileNode, ct as validateInitialState, d as moveNode, dt as zipEntries, et as setName, f as updateNode, ft as generateId, i as generateNodesCopy, l as isFolderNode, lt as validateModules, m as logger, n as copyNode, o as getNextCopyNumber, s as handleTargetNameCollisions, t as addFolder, ut as validateStateSchemaName, w as baseLoadFromInput, x as assertAuthPreservedOnDuplicate } from "./document-drive-D1NMjQQc.mjs";
3
- import { a as DriveCollectionId, i as SyncStatus, o as ModuleNotFoundError, t as require_main } from "./main-B1tRsYOp.mjs";
2
+ import { A as createPresignedHeader, D as buildSignedAction, E as baseSaveToFileHandle, G as replayDocumentVersioned, N as createZip, T as baseLoadFromInputVersioned, _ as UnsupportedDocumentModelVersionError, a as getDescendants, c as isFileNode, ct as validateInitialState, d as moveNode, dt as zipEntries, et as setName, f as updateNode, ft as generateId, i as generateNodesCopy, l as isFolderNode, lt as validateModules, m as logger, n as copyNode, o as getNextCopyNumber, s as handleTargetNameCollisions, t as addFolder, ut as validateStateSchemaName, w as baseLoadFromInput, x as assertAuthPreservedOnDuplicate } from "./document-drive-DuGBBYw5.mjs";
3
+ import { a as DriveCollectionId, i as SyncStatus, o as ModuleNotFoundError, t as require_main } from "./main-7sul-YJl.mjs";
4
4
  import { t as require_graphql } from "./graphql-BfAoPeWM.mjs";
5
5
  import { createContext, use, useCallback, useContext, useEffect, useMemo, useState, useSyncExternalStore } from "react";
6
6
  import "react/jsx-runtime";
@@ -52,7 +52,7 @@ function makePHEventFunctions(key) {
52
52
  };
53
53
  }
54
54
  //#endregion
55
- //#region ../reactor-browser/dist/document-by-id-BSZqTN66.js
55
+ //#region ../reactor-browser/dist/document-by-id-B4FIzG1w.js
56
56
  async function queueActions(document, actionOrActions) {
57
57
  if (!document) throw new Error("No document provided");
58
58
  if (!actionOrActions) throw new Error("No actions provided");
@@ -231,7 +231,9 @@ function useDispatch(document) {
231
231
  * @param onErrors - Callback invoked with any errors that occurred during action execution.
232
232
  */
233
233
  function dispatch(actionOrActions, onErrors, onSuccess) {
234
- dispatchActions(actionOrActions, document, onErrors, onSuccess).catch(logger.error);
234
+ dispatchActions(actionOrActions, document, onErrors, onSuccess).catch((error) => {
235
+ logger.error("Failed to dispatch actions: @error", error);
236
+ });
235
237
  }
236
238
  return [document, dispatch];
237
239
  }
@@ -1027,8 +1029,6 @@ slug.extend = function(customMap) {
1027
1029
  slug.setLocale = function(locale) {
1028
1030
  defaultLocale = locales[locale] || {};
1029
1031
  };
1030
- //#endregion
1031
- //#region ../reactor-browser/dist/document-model-modules-DfQBNGc-.js
1032
1032
  var UnsupportedDocumentTypeError = class extends Error {
1033
1033
  constructor(documentType) {
1034
1034
  super(`Document type ${documentType} is not supported`);
@@ -1298,7 +1298,7 @@ Error;
1298
1298
  var import_graphql = require_graphql();
1299
1299
  JSON;
1300
1300
  //#endregion
1301
- //#region ../reactor-browser/dist/client-D66jVnot.js
1301
+ //#region ../reactor-browser/dist/client-D4bkR4pH.js
1302
1302
  var import_main = require_main();
1303
1303
  let DocumentChangeType = /* @__PURE__ */ function(DocumentChangeType) {
1304
1304
  DocumentChangeType["ChildAdded"] = "CHILD_ADDED";
@@ -1330,6 +1330,16 @@ const PhDocumentFieldsFragmentDoc = import_main.gql`
1330
1330
  lastModifiedAtUtcIso
1331
1331
  }
1332
1332
  `;
1333
+ const DocumentRelationshipFieldsFragmentDoc = import_main.gql`
1334
+ fragment DocumentRelationshipFields on DocumentRelationship {
1335
+ sourceId
1336
+ targetId
1337
+ relationshipType
1338
+ metadata
1339
+ createdAt
1340
+ updatedAt
1341
+ }
1342
+ `;
1333
1343
  import_main.gql`
1334
1344
  query GetDocumentModels($namespace: String, $paging: PagingInput) {
1335
1345
  documentModels(namespace: $namespace, paging: $paging) {
@@ -1458,6 +1468,54 @@ import_main.gql`
1458
1468
  }
1459
1469
  ${PhDocumentFieldsFragmentDoc}
1460
1470
  `;
1471
+ import_main.gql`
1472
+ query GetDocumentOutgoingRelationshipEdges(
1473
+ $sourceIdentifier: String!
1474
+ $relationshipType: String
1475
+ $view: ViewFilterInput
1476
+ $paging: PagingInput
1477
+ ) {
1478
+ documentOutgoingRelationshipEdges(
1479
+ sourceIdentifier: $sourceIdentifier
1480
+ relationshipType: $relationshipType
1481
+ view: $view
1482
+ paging: $paging
1483
+ ) {
1484
+ items {
1485
+ ...DocumentRelationshipFields
1486
+ }
1487
+ totalCount
1488
+ hasNextPage
1489
+ hasPreviousPage
1490
+ cursor
1491
+ }
1492
+ }
1493
+ ${DocumentRelationshipFieldsFragmentDoc}
1494
+ `;
1495
+ import_main.gql`
1496
+ query GetDocumentIncomingRelationshipEdges(
1497
+ $targetIdentifier: String!
1498
+ $relationshipType: String
1499
+ $view: ViewFilterInput
1500
+ $paging: PagingInput
1501
+ ) {
1502
+ documentIncomingRelationshipEdges(
1503
+ targetIdentifier: $targetIdentifier
1504
+ relationshipType: $relationshipType
1505
+ view: $view
1506
+ paging: $paging
1507
+ ) {
1508
+ items {
1509
+ ...DocumentRelationshipFields
1510
+ }
1511
+ totalCount
1512
+ hasNextPage
1513
+ hasPreviousPage
1514
+ cursor
1515
+ }
1516
+ }
1517
+ ${DocumentRelationshipFieldsFragmentDoc}
1518
+ `;
1461
1519
  import_main.gql`
1462
1520
  query FindDocuments(
1463
1521
  $search: SearchFilterInput
@@ -1648,12 +1706,34 @@ import_main.gql`
1648
1706
  $sourceIdentifier: String!
1649
1707
  $targetIdentifier: String!
1650
1708
  $relationshipType: String!
1709
+ $metadata: JSONObject
1651
1710
  $branch: String
1652
1711
  ) {
1653
1712
  addRelationship(
1654
1713
  sourceIdentifier: $sourceIdentifier
1655
1714
  targetIdentifier: $targetIdentifier
1656
1715
  relationshipType: $relationshipType
1716
+ metadata: $metadata
1717
+ branch: $branch
1718
+ ) {
1719
+ ...PHDocumentFields
1720
+ }
1721
+ }
1722
+ ${PhDocumentFieldsFragmentDoc}
1723
+ `;
1724
+ import_main.gql`
1725
+ mutation UpdateRelationship(
1726
+ $sourceIdentifier: String!
1727
+ $targetIdentifier: String!
1728
+ $relationshipType: String!
1729
+ $metadata: JSONObject
1730
+ $branch: String
1731
+ ) {
1732
+ updateRelationship(
1733
+ sourceIdentifier: $sourceIdentifier
1734
+ targetIdentifier: $targetIdentifier
1735
+ relationshipType: $relationshipType
1736
+ metadata: $metadata
1657
1737
  branch: $branch
1658
1738
  ) {
1659
1739
  ...PHDocumentFields
@@ -2068,7 +2148,7 @@ var MessageType = /* @__PURE__ */ ((MessageType2) => {
2068
2148
  })(MessageType || {});
2069
2149
  Error;
2070
2150
  //#endregion
2071
- //#region ../reactor-browser/dist/document-operations-Bgo6A6W2.js
2151
+ //#region ../reactor-browser/dist/document-operations-Cm4EtaZs.js
2072
2152
  const modalEventFunctions = makePHEventFunctions("modal");
2073
2153
  modalEventFunctions.useValue;
2074
2154
  /** Sets the current modal */
@@ -3147,7 +3227,7 @@ const usePHToast = toastEventFunctions.useValue;
3147
3227
  toastEventFunctions.setValue;
3148
3228
  toastEventFunctions.addEventHandler;
3149
3229
  //#endregion
3150
- //#region ../reactor-browser/dist/switchboard-D4-_jwk-.js
3230
+ //#region ../reactor-browser/dist/switchboard-CaXQ4-5Q.js
3151
3231
  /** Returns a document of a specific type, throws an error if the found document has a different type */
3152
3232
  function useDocumentOfType(documentId, documentType) {
3153
3233
  const [document, dispatch] = useDocumentById(documentId);
@@ -4646,4 +4726,4 @@ createDebouncedRefreshReactorDataClient();
4646
4726
  //#endregion
4647
4727
  export { useDropNode as A, setSelectedNode as B, addDocument as C, showRevisionHistory as D, showPHModal as E, t$2 as F, useSelectedDriveSafe as H, t$5 as I, isFileNodeKind as L, useStudioMode as M, e$1 as N, useDisabledEditors as O, e$4 as P, isFolderNodeKind as R, useSelectedDocumentSafe as S, showDeleteNodeModal as T, useDocumentById as U, useSelectedDriveId as V, useSetPHAppConfig as _, useDownloadDocument as a, useUserPermissions as b, useEditorModulesForDocumentType as c, useNodeById as d, useNodeParentFolderById as f, useSelectedNodePath as g, useSelectedFolder as h, useDocumentVersionStatus as i, usePHToast as j, useDragNode as k, useGetSwitchboardLink as l, useParentFolderForSelectedNode as m, preloadEditorModule as n, useDownloadFolder as o, useNodesInSelectedDriveOrFolder as p, useAllowedDocumentModelModules as r, useEditorModules as s, getSyncStatusSync as t, useNodeActions as u, useSetPHDocumentEditorConfig as v, addFolder$1 as w, useSelectedDocumentOfType as x, useTheme as y, setSelectedDrive as z };
4648
4728
 
4649
- //# sourceMappingURL=dist-CUFTZwfc.mjs.map
4729
+ //# sourceMappingURL=dist-D5Xp9PwJ.mjs.map