@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 { c as ModuleNotFoundError, n as gql, o as SyncStatus, s as DriveCollectionId, t as reactorDriveDocumentModelModule } from "./dist-DXM8ccKa.js";
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
  const PhDocumentFieldsFragmentDoc = gql`
219
219
  fragment PHDocumentFields on PHDocument {
220
220
  id
@@ -725,7 +725,7 @@ function extractQueryParts(doc, fallbackBody) {
725
725
  extractSelectionSet(GetDocumentOperationsDocument, "documentOperations", "{ items { index } }");
726
726
  extractQueryParts(GetDocumentDocument, "document(identifier: $identifier) { document { id name documentType state revisionsList { scope revision } createdAtUtcIso lastModifiedAtUtcIso } childIds }");
727
727
  //#endregion
728
- //#region ../reactor-browser/dist/renown-Dzmo1gJD.js
728
+ //#region ../reactor-browser/dist/renown-AB7PunGY.js
729
729
  const { useValue: useLoading, setValue: setLoading, addEventHandler: addLoadingEventHandler } = makePHEventFunctions("loading");
730
730
  const renownEventFunctions = makePHEventFunctions("renown");
731
731
  renownEventFunctions.addEventHandler;
@@ -2694,6 +2694,29 @@ async function copyNode$1(driveId, src, target) {
2694
2694
  }
2695
2695
  return await queueActions(drive, copyNodesInput.map((copyNodeInput) => copyNode(copyNodeInput)));
2696
2696
  }
2697
+ const modalEventFunctions = makePHEventFunctions("modal");
2698
+ modalEventFunctions.useValue;
2699
+ /** Sets the current modal */
2700
+ const setPHModal = modalEventFunctions.setValue;
2701
+ modalEventFunctions.addEventHandler;
2702
+ /** Shows a modal */
2703
+ function showPHModal(modal) {
2704
+ setPHModal(modal);
2705
+ }
2706
+ /** Shows the create document modal */
2707
+ function showCreateDocumentModal(documentType) {
2708
+ setPHModal({
2709
+ type: "createDocument",
2710
+ documentType
2711
+ });
2712
+ }
2713
+ /** Shows the delete node modal */
2714
+ function showDeleteNodeModal(nodeOrId) {
2715
+ setPHModal({
2716
+ type: "deleteItem",
2717
+ id: typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id
2718
+ });
2719
+ }
2697
2720
  const baseDocumentModelsMap = {
2698
2721
  DocumentModel: documentModelDocumentModelModule,
2699
2722
  DocumentDrive: driveDocumentModelModule,
@@ -3218,29 +3241,6 @@ const graphQLReactorClientEventFunctions = makePHEventFunctions("reactorGraphQLC
3218
3241
  graphQLReactorClientEventFunctions.useValue;
3219
3242
  graphQLReactorClientEventFunctions.setValue;
3220
3243
  graphQLReactorClientEventFunctions.addEventHandler;
3221
- const modalEventFunctions = makePHEventFunctions("modal");
3222
- modalEventFunctions.useValue;
3223
- /** Sets the current modal */
3224
- const setPHModal = modalEventFunctions.setValue;
3225
- modalEventFunctions.addEventHandler;
3226
- /** Shows a modal */
3227
- function showPHModal(modal) {
3228
- setPHModal(modal);
3229
- }
3230
- /** Shows the create document modal */
3231
- function showCreateDocumentModal(documentType) {
3232
- setPHModal({
3233
- type: "createDocument",
3234
- documentType
3235
- });
3236
- }
3237
- /** Shows the delete node modal */
3238
- function showDeleteNodeModal(nodeOrId) {
3239
- setPHModal({
3240
- type: "deleteItem",
3241
- id: typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id
3242
- });
3243
- }
3244
3244
  const packageDiscoveryFunctions = makePHEventFunctions("packageDiscoveryService");
3245
3245
  packageDiscoveryFunctions.useValue;
3246
3246
  packageDiscoveryFunctions.setValue;
@@ -3779,4 +3779,4 @@ createDebouncedRefreshReactorDataClient();
3779
3779
  //#endregion
3780
3780
  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 };
3781
3781
 
3782
- //# sourceMappingURL=dist-DwrlqD9M.js.map
3782
+ //# sourceMappingURL=dist-vCEZRfyv.js.map