@powerhousedao/powerhouse-vetra-packages 6.2.2-dev.53 → 6.2.2-dev.54

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-CHj7_KqV.js → entry-D-JZwwGk.js} +2 -2
  2. package/dist/browser/assets/{projection-entry-Deqa5Gd1.js → projection-entry-64-WZZjU.js} +2 -2
  3. package/dist/browser/{connect-CxCgNBS5.js → connect-D1KIMa_5.js} +4 -4
  4. package/dist/browser/{connect-CxCgNBS5.js.map → connect-D1KIMa_5.js.map} +1 -1
  5. package/dist/browser/{dist-BvAny8D6.js → dist-dmLcxsWV.js} +46 -18
  6. package/dist/browser/dist-dmLcxsWV.js.map +1 -0
  7. package/dist/browser/{document-drive-DODPIGg7.js → document-drive-cxHraTVQ.js} +72 -2
  8. package/dist/browser/document-drive-cxHraTVQ.js.map +1 -0
  9. package/dist/browser/document-models/index.js +1 -1
  10. package/dist/browser/{editor-CI2ALn3N.js → editor-BAUTcFP2.js} +6 -6
  11. package/dist/browser/{editor-CI2ALn3N.js.map → editor-BAUTcFP2.js.map} +1 -1
  12. package/dist/browser/{editor-D3t_GHDk.js → editor-PmQcB82h.js} +5 -5
  13. package/dist/browser/{editor-D3t_GHDk.js.map → editor-PmQcB82h.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-BZrdvaCI.js → folder-view-CWnDdLMC.js} +3 -3
  18. package/dist/browser/{folder-view-BZrdvaCI.js.map → folder-view-CWnDdLMC.js.map} +1 -1
  19. package/dist/browser/{graphql-editor-BFPxzM2v.js → graphql-editor-Cq_L5IUQ.js} +3 -3
  20. package/dist/browser/{graphql-editor-BFPxzM2v.js.map → graphql-editor-Cq_L5IUQ.js.map} +1 -1
  21. package/dist/browser/index.js +2 -2
  22. package/dist/browser/{json-editor-aqjhBXZ9.js → json-editor-D8lysNHE.js} +3 -3
  23. package/dist/browser/{json-editor-aqjhBXZ9.js.map → json-editor-D8lysNHE.js.map} +1 -1
  24. package/dist/browser/{lib-V-A4Y98b.js → lib-DKvC6Hnv.js} +3 -4
  25. package/dist/browser/lib-DKvC6Hnv.js.map +1 -0
  26. package/dist/browser/{state-schemas-DQmnR8Nk.js → state-schemas-NyThZN-C.js} +3 -3
  27. package/dist/browser/{state-schemas-DQmnR8Nk.js.map → state-schemas-NyThZN-C.js.map} +1 -1
  28. package/dist/node/{connect-vii63Lqk.mjs → connect-BixjoUPL.mjs} +4 -4
  29. package/dist/node/{connect-vii63Lqk.mjs.map → connect-BixjoUPL.mjs.map} +1 -1
  30. package/dist/node/{dist-DTRphwh_.mjs → dist-BtnA_6jV.mjs} +46 -18
  31. package/dist/node/dist-BtnA_6jV.mjs.map +1 -0
  32. package/dist/node/{document-drive-BMfQ8jKD.mjs → document-drive-ChLoGFvU.mjs} +72 -2
  33. package/dist/node/document-drive-ChLoGFvU.mjs.map +1 -0
  34. package/dist/node/document-models/index.mjs +1 -1
  35. package/dist/node/{editor-C7IrdUqN.mjs → editor-C8Drq-be.mjs} +5 -5
  36. package/dist/node/{editor-C7IrdUqN.mjs.map → editor-C8Drq-be.mjs.map} +1 -1
  37. package/dist/node/{editor-BQ7Hepmx.mjs → editor-cfoi-9LF.mjs} +6 -6
  38. package/dist/node/{editor-BQ7Hepmx.mjs.map → editor-cfoi-9LF.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-PvIixyjx.mjs → folder-view--I9GOsir.mjs} +3 -3
  43. package/dist/node/{folder-view-PvIixyjx.mjs.map → folder-view--I9GOsir.mjs.map} +1 -1
  44. package/dist/node/{graphql-editor-CKzPtn6J.mjs → graphql-editor-BKGQ8ojN.mjs} +3 -3
  45. package/dist/node/{graphql-editor-CKzPtn6J.mjs.map → graphql-editor-BKGQ8ojN.mjs.map} +1 -1
  46. package/dist/node/index.mjs +2 -2
  47. package/dist/node/{json-editor-BaNxPekM.mjs → json-editor-32paCJkU.mjs} +3 -3
  48. package/dist/node/{json-editor-BaNxPekM.mjs.map → json-editor-32paCJkU.mjs.map} +1 -1
  49. package/dist/node/{main-C2GlZ2Rh.mjs → main-DRfab-vL.mjs} +3 -4
  50. package/dist/node/main-DRfab-vL.mjs.map +1 -0
  51. package/dist/node/{state-schemas-C--ZSgHT.mjs → state-schemas-ClrkM0Fn.mjs} +3 -3
  52. package/dist/node/{state-schemas-C--ZSgHT.mjs.map → state-schemas-ClrkM0Fn.mjs.map} +1 -1
  53. package/package.json +7 -7
  54. package/dist/browser/dist-BvAny8D6.js.map +0 -1
  55. package/dist/browser/document-drive-DODPIGg7.js.map +0 -1
  56. package/dist/browser/lib-V-A4Y98b.js.map +0 -1
  57. package/dist/node/dist-DTRphwh_.mjs.map +0 -1
  58. package/dist/node/document-drive-BMfQ8jKD.mjs.map +0 -1
  59. package/dist/node/main-C2GlZ2Rh.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { A as __toESM, D as __commonJSMin, t as capitalCase } from "./dist-B4FWbuEM.js";
2
- import { A as createZip, C as baseSaveToFileHandle, D as createPresignedHeader, S as baseLoadFromInputVersioned, V as replayDocumentVersioned, X as setName, a as handleTargetNameCollisions, at as validateStateSchemaName, f as logger, i as generateNodesCopy, it as validateModules, l as moveNode, n as copyNode, o as isFileNode, ot as generateId, rt as validateInitialState, s as isFolderNode, t as addFolder, u as updateNode, v as assertAuthPreservedOnDuplicate, w as buildSignedAction, x as baseLoadFromInput } from "./document-drive-DODPIGg7.js";
3
- import { a as SyncStatus, o as DriveCollectionId, s as ModuleNotFoundError, t as gql } from "./lib-V-A4Y98b.js";
2
+ import { A as createZip, C as baseSaveToFileHandle, D as createPresignedHeader, H as replayDocumentVersioned, S as baseLoadFromInputVersioned, Z as setName, a as handleTargetNameCollisions, at as validateInitialState, ct as generateId, f as logger, i as generateNodesCopy, l as moveNode, n as copyNode, o as isFileNode, ot as validateModules, s as isFolderNode, st as validateStateSchemaName, t as addFolder, u as updateNode, v as assertAuthPreservedOnDuplicate, w as buildSignedAction, x as baseLoadFromInput } from "./document-drive-cxHraTVQ.js";
3
+ import { a as SyncStatus, o as DriveCollectionId, s as ModuleNotFoundError, t as gql } from "./lib-DKvC6Hnv.js";
4
4
  import "./parser-CkF6Qt8V.js";
5
5
  import "./printer-CEYr4JOg.js";
6
6
  import { createContext, use, useCallback, useContext, useEffect, useMemo, useState, useSyncExternalStore } from "react";
@@ -245,7 +245,7 @@ function useDocumentById(id) {
245
245
  Error;
246
246
  JSON;
247
247
  //#endregion
248
- //#region ../reactor-browser/dist/client-s_ISz_Zs.js
248
+ //#region ../reactor-browser/dist/client-DB8gP4hz.js
249
249
  let DocumentChangeType = /* @__PURE__ */ function(DocumentChangeType) {
250
250
  DocumentChangeType["ChildAdded"] = "CHILD_ADDED";
251
251
  DocumentChangeType["ChildRemoved"] = "CHILD_REMOVED";
@@ -477,6 +477,28 @@ gql`
477
477
  }
478
478
  }
479
479
  `;
480
+ gql`
481
+ query EvaluateActions(
482
+ $documentIdentifier: String!
483
+ $branch: String
484
+ $candidates: [ActionCandidateInput!]!
485
+ ) {
486
+ evaluateActions(
487
+ documentIdentifier: $documentIdentifier
488
+ branch: $branch
489
+ candidates: $candidates
490
+ ) {
491
+ evaluations {
492
+ decision
493
+ reason
494
+ }
495
+ allAllowed
496
+ anyAllowed
497
+ allDenied
498
+ anyDenied
499
+ }
500
+ }
501
+ `;
480
502
  gql`
481
503
  mutation CreateDocument($document: JSONObject!, $parentIdentifier: String) {
482
504
  createDocument(document: $document, parentIdentifier: $parentIdentifier) {
@@ -502,13 +524,13 @@ gql`
502
524
  gql`
503
525
  mutation MutateDocument(
504
526
  $documentIdentifier: String!
505
- $actions: [JSONObject!]!
506
- $view: ViewFilterInput
527
+ $actions: [ActionInput!]!
528
+ $branch: String
507
529
  ) {
508
- mutateDocument(
530
+ mutateDocument: execute(
509
531
  documentIdentifier: $documentIdentifier
510
532
  actions: $actions
511
- view: $view
533
+ branch: $branch
512
534
  ) {
513
535
  ...PHDocumentFields
514
536
  }
@@ -518,14 +540,21 @@ gql`
518
540
  gql`
519
541
  mutation MutateDocumentAsync(
520
542
  $documentIdentifier: String!
521
- $actions: [JSONObject!]!
522
- $view: ViewFilterInput
543
+ $actions: [ActionInput!]!
544
+ $branch: String
523
545
  ) {
524
- mutateDocumentAsync(
546
+ mutateDocumentAsync: executeAsync(
525
547
  documentIdentifier: $documentIdentifier
526
548
  actions: $actions
527
- view: $view
528
- )
549
+ branch: $branch
550
+ ) {
551
+ id
552
+ status
553
+ result
554
+ error
555
+ createdAt
556
+ completedAt
557
+ }
529
558
  }
530
559
  `;
531
560
  gql`
@@ -1742,7 +1771,7 @@ slug.setLocale = function(locale) {
1742
1771
  defaultLocale = locales[locale] || {};
1743
1772
  };
1744
1773
  //#endregion
1745
- //#region ../reactor-browser/dist/document-operations-VigJPOEe.js
1774
+ //#region ../reactor-browser/dist/document-operations-C6nce9dH.js
1746
1775
  var DocumentModelNotFoundError = class extends Error {
1747
1776
  documentType;
1748
1777
  name = "DocumentModelNotFoundError";
@@ -2168,16 +2197,15 @@ async function upgradeDocument(documentId, toVersion) {
2168
2197
  gql`
2169
2198
  mutation MutateDocumentWithOperations(
2170
2199
  $documentIdentifier: String!
2171
- $actions: [JSONObject!]!
2172
- $view: ViewFilterInput
2200
+ $actions: [ActionInput!]!
2173
2201
  $sinceRevision: Int
2174
2202
  $scopes: [String!]
2175
2203
  $branch: String
2176
2204
  ) {
2177
- mutateDocument(
2205
+ mutateDocument: execute(
2178
2206
  documentIdentifier: $documentIdentifier
2179
2207
  actions: $actions
2180
- view: $view
2208
+ branch: $branch
2181
2209
  ) {
2182
2210
  ...PHDocumentFields
2183
2211
  operations(
@@ -4098,4 +4126,4 @@ createDebouncedRefreshReactorDataClient();
4098
4126
  //#endregion
4099
4127
  export { showRevisionHistory as A, t$2 as B, addFolder$1 as C, setSelectedNode as D, setSelectedDrive as E, useSelectedDriveId as F, useDocumentById as H, useSelectedDriveSafe as I, useStudioMode as L, useDragNode as M, useDropNode as N, showDeleteNodeModal as O, usePHToast as P, e$1 as R, addDocument as S, isFolderNodeKind as T, t$5 as V, useSelectedNodePath as _, useDownloadDocument as a, useTheme as b, useGetSwitchboardLink as c, useNodeParentFolderById as d, useNodesInSelectedDriveOrFolder as f, useSelectedFolder as g, useSelectedDocumentSafe as h, useDocumentVersionStatus as i, useDisabledEditors as j, showPHModal as k, useNodeActions as l, useSelectedDocumentOfType as m, preloadEditorModule as n, useEditorModules as o, useParentFolderForSelectedNode as p, useAllowedDocumentModelModules as r, useEditorModulesForDocumentType as s, getSyncStatusSync as t, useNodeById as u, useSetPHAppConfig as v, isFileNodeKind as w, useUserPermissions as x, useSetPHDocumentEditorConfig as y, e$4 as z };
4100
4128
 
4101
- //# sourceMappingURL=dist-BvAny8D6.js.map
4129
+ //# sourceMappingURL=dist-dmLcxsWV.js.map