@powerhousedao/powerhouse-vetra-packages 6.2.0-dev.17 → 6.2.0-dev.19

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 (43) hide show
  1. package/dist/browser/{connect-8jhflBGU.js → connect-BPAGykLm.js} +2 -2
  2. package/dist/browser/{connect-8jhflBGU.js.map → connect-BPAGykLm.js.map} +1 -1
  3. package/dist/browser/dist-DXM8ccKa.js.map +1 -1
  4. package/dist/browser/{dist-DwrlqD9M.js → dist-vCEZRfyv.js} +28 -28
  5. package/dist/browser/dist-vCEZRfyv.js.map +1 -0
  6. package/dist/browser/{editor-r68XaVdr.js → editor-BV_K8zvJ.js} +5 -5
  7. package/dist/browser/{editor-r68XaVdr.js.map → editor-BV_K8zvJ.js.map} +1 -1
  8. package/dist/browser/{editor-90hQUK4d.js → editor-CnFlkBjt.js} +4 -4
  9. package/dist/browser/{editor-90hQUK4d.js.map → editor-CnFlkBjt.js.map} +1 -1
  10. package/dist/browser/editors/document-model-editor/module.js +1 -1
  11. package/dist/browser/editors/generic-drive-explorer/index.js +3 -3
  12. package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
  13. package/dist/browser/{folder-view-D75ptmmg.js → folder-view-hA2ZtS8W.js} +3 -3
  14. package/dist/browser/{folder-view-D75ptmmg.js.map → folder-view-hA2ZtS8W.js.map} +1 -1
  15. package/dist/browser/{graphql-editor-DV2bMlp7.js → graphql-editor-CW_YbfRD.js} +2 -2
  16. package/dist/browser/{graphql-editor-DV2bMlp7.js.map → graphql-editor-CW_YbfRD.js.map} +1 -1
  17. package/dist/browser/{json-editor-QL0ua7r7.js → json-editor-bRLHOtAr.js} +2 -2
  18. package/dist/browser/{json-editor-QL0ua7r7.js.map → json-editor-bRLHOtAr.js.map} +1 -1
  19. package/dist/browser/{state-schemas-DO2c-vjr.js → state-schemas-CEx9YTvx.js} +3 -3
  20. package/dist/browser/{state-schemas-DO2c-vjr.js.map → state-schemas-CEx9YTvx.js.map} +1 -1
  21. package/dist/node/{connect-DtoanAef.mjs → connect-l0Wp-4tN.mjs} +2 -2
  22. package/dist/node/{connect-DtoanAef.mjs.map → connect-l0Wp-4tN.mjs.map} +1 -1
  23. package/dist/node/{dist-CN7Orn8A.mjs → dist-B9MKbLuf.mjs} +28 -28
  24. package/dist/node/dist-B9MKbLuf.mjs.map +1 -0
  25. package/dist/node/dist-C88eUERe.mjs.map +1 -1
  26. package/dist/node/{editor-BwBjLHwq.mjs → editor-CxRCNVOW.mjs} +4 -4
  27. package/dist/node/{editor-BwBjLHwq.mjs.map → editor-CxRCNVOW.mjs.map} +1 -1
  28. package/dist/node/{editor-BZHviN9x.mjs → editor-DDnx-p8m.mjs} +5 -5
  29. package/dist/node/{editor-BZHviN9x.mjs.map → editor-DDnx-p8m.mjs.map} +1 -1
  30. package/dist/node/editors/document-model-editor/module.mjs +1 -1
  31. package/dist/node/editors/generic-drive-explorer/index.mjs +3 -3
  32. package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
  33. package/dist/node/{folder-view-BMWf5XZ3.mjs → folder-view-CfA2vsqM.mjs} +3 -3
  34. package/dist/node/{folder-view-BMWf5XZ3.mjs.map → folder-view-CfA2vsqM.mjs.map} +1 -1
  35. package/dist/node/{graphql-editor-DyFndPCw.mjs → graphql-editor-BU_r17EG.mjs} +2 -2
  36. package/dist/node/{graphql-editor-DyFndPCw.mjs.map → graphql-editor-BU_r17EG.mjs.map} +1 -1
  37. package/dist/node/{json-editor-BacoHu-A.mjs → json-editor-Cx_f0UqT.mjs} +2 -2
  38. package/dist/node/{json-editor-BacoHu-A.mjs.map → json-editor-Cx_f0UqT.mjs.map} +1 -1
  39. package/dist/node/{state-schemas-B7TlH3a9.mjs → state-schemas-_kX1MbCz.mjs} +3 -3
  40. package/dist/node/{state-schemas-B7TlH3a9.mjs.map → state-schemas-_kX1MbCz.mjs.map} +1 -1
  41. package/package.json +6 -6
  42. package/dist/browser/dist-DwrlqD9M.js.map +0 -1
  43. package/dist/node/dist-CN7Orn8A.mjs.map +0 -1
@@ -3,7 +3,7 @@ import { B as setName, C as createZip, J as validateModules, X as generateId, Y
3
3
  import { a as SyncStatus, n as require_main, o as DriveCollectionId, s as ModuleNotFoundError, t as reactorDriveDocumentModelModule } from "./dist-C88eUERe.mjs";
4
4
  import { Children, cloneElement, forwardRef, isValidElement, use, useEffect, useMemo, useState, useSyncExternalStore } from "react";
5
5
  import "react/jsx-runtime";
6
- //#region ../reactor-browser/dist/make-ph-event-functions-DwiD1zH9.js
6
+ //#region ../reactor-browser/dist/make-ph-event-functions-BHoLPif5.js
7
7
  const isServer$1 = typeof window === "undefined";
8
8
  function makePHEventFunctions(key) {
9
9
  const setEventName = `ph:set${capitalCase(key)}`;
@@ -51,7 +51,7 @@ function makePHEventFunctions(key) {
51
51
  };
52
52
  }
53
53
  //#endregion
54
- //#region ../reactor-browser/dist/document-by-id-BrIy0iHX.js
54
+ //#region ../reactor-browser/dist/document-by-id-dLYFX-xz.js
55
55
  async function queueActions(document, actionOrActions) {
56
56
  if (!document) throw new Error("No document provided");
57
57
  if (!actionOrActions) throw new Error("No actions provided");
@@ -214,7 +214,7 @@ function useDocumentById(id) {
214
214
  return [document, dispatch];
215
215
  }
216
216
  //#endregion
217
- //#region ../reactor-browser/dist/client-CvgFU1Dv.js
217
+ //#region ../reactor-browser/dist/client-_Gh2Uf0E.js
218
218
  var import_main = require_main();
219
219
  const PhDocumentFieldsFragmentDoc = import_main.gql`
220
220
  fragment PHDocumentFields on PHDocument {
@@ -726,7 +726,7 @@ function extractQueryParts(doc, fallbackBody) {
726
726
  extractSelectionSet(GetDocumentOperationsDocument, "documentOperations", "{ items { index } }");
727
727
  extractQueryParts(GetDocumentDocument, "document(identifier: $identifier) { document { id name documentType state revisionsList { scope revision } createdAtUtcIso lastModifiedAtUtcIso } childIds }");
728
728
  //#endregion
729
- //#region ../reactor-browser/dist/renown-Dzmo1gJD.js
729
+ //#region ../reactor-browser/dist/renown-AB7PunGY.js
730
730
  const { useValue: useLoading, setValue: setLoading, addEventHandler: addLoadingEventHandler } = makePHEventFunctions("loading");
731
731
  const renownEventFunctions = makePHEventFunctions("renown");
732
732
  renownEventFunctions.addEventHandler;
@@ -2695,6 +2695,29 @@ async function copyNode$1(driveId, src, target) {
2695
2695
  }
2696
2696
  return await queueActions(drive, copyNodesInput.map((copyNodeInput) => copyNode(copyNodeInput)));
2697
2697
  }
2698
+ const modalEventFunctions = makePHEventFunctions("modal");
2699
+ modalEventFunctions.useValue;
2700
+ /** Sets the current modal */
2701
+ const setPHModal = modalEventFunctions.setValue;
2702
+ modalEventFunctions.addEventHandler;
2703
+ /** Shows a modal */
2704
+ function showPHModal(modal) {
2705
+ setPHModal(modal);
2706
+ }
2707
+ /** Shows the create document modal */
2708
+ function showCreateDocumentModal(documentType) {
2709
+ setPHModal({
2710
+ type: "createDocument",
2711
+ documentType
2712
+ });
2713
+ }
2714
+ /** Shows the delete node modal */
2715
+ function showDeleteNodeModal(nodeOrId) {
2716
+ setPHModal({
2717
+ type: "deleteItem",
2718
+ id: typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id
2719
+ });
2720
+ }
2698
2721
  const baseDocumentModelsMap = {
2699
2722
  DocumentModel: documentModelDocumentModelModule,
2700
2723
  DocumentDrive: driveDocumentModelModule,
@@ -3219,29 +3242,6 @@ const graphQLReactorClientEventFunctions = makePHEventFunctions("reactorGraphQLC
3219
3242
  graphQLReactorClientEventFunctions.useValue;
3220
3243
  graphQLReactorClientEventFunctions.setValue;
3221
3244
  graphQLReactorClientEventFunctions.addEventHandler;
3222
- const modalEventFunctions = makePHEventFunctions("modal");
3223
- modalEventFunctions.useValue;
3224
- /** Sets the current modal */
3225
- const setPHModal = modalEventFunctions.setValue;
3226
- modalEventFunctions.addEventHandler;
3227
- /** Shows a modal */
3228
- function showPHModal(modal) {
3229
- setPHModal(modal);
3230
- }
3231
- /** Shows the create document modal */
3232
- function showCreateDocumentModal(documentType) {
3233
- setPHModal({
3234
- type: "createDocument",
3235
- documentType
3236
- });
3237
- }
3238
- /** Shows the delete node modal */
3239
- function showDeleteNodeModal(nodeOrId) {
3240
- setPHModal({
3241
- type: "deleteItem",
3242
- id: typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id
3243
- });
3244
- }
3245
3245
  const packageDiscoveryFunctions = makePHEventFunctions("packageDiscoveryService");
3246
3246
  packageDiscoveryFunctions.useValue;
3247
3247
  packageDiscoveryFunctions.setValue;
@@ -3780,4 +3780,4 @@ createDebouncedRefreshReactorDataClient();
3780
3780
  //#endregion
3781
3781
  export { e$4 as A, useSelectedDriveSafe as C, useTheme as D, useSetPHDocumentEditorConfig as E, t$5 as M, useDocumentById as N, useUserPermissions as O, useSelectedDriveId as S, useSetPHAppConfig as T, useNodeParentFolderById as _, setSelectedDrive as a, useSelectedDocumentOfType as b, showDeleteNodeModal as c, useDownloadDocument as d, useDragNode as f, useNodeById as g, useNodeActions as h, isFolderNodeKind as i, t$2 as j, e$1 as k, showRevisionHistory as l, useGetSwitchboardLink as m, getSyncStatusSync as n, setSelectedNode as o, useDropNode as p, isFileNodeKind as r, showCreateDocumentModal as s, addFolder as t, useDocumentModelModules as u, useNodesInSelectedDriveOrFolder as v, useSelectedNodePath as w, useSelectedDocumentSafe as x, usePHToast as y };
3782
3782
 
3783
- //# sourceMappingURL=dist-CN7Orn8A.mjs.map
3783
+ //# sourceMappingURL=dist-B9MKbLuf.mjs.map