@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.0 → 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.
- package/dist/browser/assets/{entry-5_Eh4a2Z.js → entry-DvpdFGdw.js} +2 -2
- package/dist/browser/assets/{projection-entry-5PVbP10h.js → projection-entry-QU4xTPM_.js} +3 -3
- package/dist/browser/{connect-DqkYyEcC.js → connect-kwnl2v6o.js} +11 -5
- package/dist/browser/{connect-DqkYyEcC.js.map → connect-kwnl2v6o.js.map} +1 -1
- package/dist/browser/{dist-C1pi89al.js → dist-D0tSbK8B.js} +90 -10
- package/dist/browser/dist-D0tSbK8B.js.map +1 -0
- package/dist/browser/{document-drive-ZQzPQfEL.js → document-drive-fcQ4o8i3.js} +127 -44
- package/dist/browser/document-drive-fcQ4o8i3.js.map +1 -0
- package/dist/browser/document-models/index.js +1 -1
- package/dist/browser/{editor-Bl02Hko1.js → editor-CbJkIqg_.js} +6 -6
- package/dist/browser/{editor-Bl02Hko1.js.map → editor-CbJkIqg_.js.map} +1 -1
- package/dist/browser/{editor-CbtY05JH.js → editor-D_gIraSB.js} +5 -5
- package/dist/browser/{editor-CbtY05JH.js.map → editor-D_gIraSB.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +4 -4
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-BBm_YnKn.js → folder-view-CGcqEbak.js} +3 -3
- package/dist/browser/{folder-view-BBm_YnKn.js.map → folder-view-CGcqEbak.js.map} +1 -1
- package/dist/browser/{graphql-editor-LSj3LCtL.js → graphql-editor-C9wxFf0b.js} +3 -3
- package/dist/browser/{graphql-editor-LSj3LCtL.js.map → graphql-editor-C9wxFf0b.js.map} +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/browser/{json-editor-TVSHA4PZ.js → json-editor-BIGVi54h.js} +3 -3
- package/dist/browser/{json-editor-TVSHA4PZ.js.map → json-editor-BIGVi54h.js.map} +1 -1
- package/dist/browser/{lib-ewnRj2dJ.js → lib-BWPfFpyy.js} +2 -2
- package/dist/browser/lib-BWPfFpyy.js.map +1 -0
- package/dist/browser/{state-schemas-Bsryt22c.js → state-schemas-C9Nb7S5z.js} +3 -3
- package/dist/browser/{state-schemas-Bsryt22c.js.map → state-schemas-C9Nb7S5z.js.map} +1 -1
- package/dist/node/{connect-B2yHg8VF.mjs → connect-D3-HufsW.mjs} +11 -5
- package/dist/node/{connect-B2yHg8VF.mjs.map → connect-D3-HufsW.mjs.map} +1 -1
- package/dist/node/{dist-BAXIB1_k.mjs → dist-D5Xp9PwJ.mjs} +90 -10
- package/dist/node/dist-D5Xp9PwJ.mjs.map +1 -0
- package/dist/node/{document-drive-D1NMjQQc.mjs → document-drive-DuGBBYw5.mjs} +127 -44
- package/dist/node/document-drive-DuGBBYw5.mjs.map +1 -0
- package/dist/node/document-models/index.mjs +1 -1
- package/dist/node/{editor-BY22Tx5_.mjs → editor-CJSAZpIG.mjs} +5 -5
- package/dist/node/{editor-BY22Tx5_.mjs.map → editor-CJSAZpIG.mjs.map} +1 -1
- package/dist/node/{editor--v67sph0.mjs → editor-D8SL0ydm.mjs} +6 -6
- package/dist/node/{editor--v67sph0.mjs.map → editor-D8SL0ydm.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +4 -4
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-D_99HJFI.mjs → folder-view-ChtWc33j.mjs} +3 -3
- package/dist/node/{folder-view-D_99HJFI.mjs.map → folder-view-ChtWc33j.mjs.map} +1 -1
- package/dist/node/{graphql-editor-Bzs-PolA.mjs → graphql-editor-CnK5kIk9.mjs} +3 -3
- package/dist/node/{graphql-editor-Bzs-PolA.mjs.map → graphql-editor-CnK5kIk9.mjs.map} +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/node/{json-editor-CCsBXZ6y.mjs → json-editor-j8_JGfcP.mjs} +3 -3
- package/dist/node/{json-editor-CCsBXZ6y.mjs.map → json-editor-j8_JGfcP.mjs.map} +1 -1
- package/dist/node/{main-B1tRsYOp.mjs → main-7sul-YJl.mjs} +2 -2
- package/dist/node/main-7sul-YJl.mjs.map +1 -0
- package/dist/node/{state-schemas-DxJBYOC0.mjs → state-schemas-DURvYjxG.mjs} +3 -3
- package/dist/node/{state-schemas-DxJBYOC0.mjs.map → state-schemas-DURvYjxG.mjs.map} +1 -1
- package/package.json +7 -7
- package/dist/browser/dist-C1pi89al.js.map +0 -1
- package/dist/browser/document-drive-ZQzPQfEL.js.map +0 -1
- package/dist/browser/lib-ewnRj2dJ.js.map +0 -1
- package/dist/node/dist-BAXIB1_k.mjs.map +0 -1
- package/dist/node/document-drive-D1NMjQQc.mjs.map +0 -1
- package/dist/node/main-B1tRsYOp.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as __toESM, D as __commonJSMin, r as pascalCase, t as capitalCase } from "./dist-B4FWbuEM.js";
|
|
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-
|
|
3
|
-
import { a as SyncStatus, o as DriveCollectionId, s as ModuleNotFoundError, t as gql } from "./lib-
|
|
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-fcQ4o8i3.js";
|
|
3
|
+
import { a as SyncStatus, o as DriveCollectionId, s as ModuleNotFoundError, t as gql } from "./lib-BWPfFpyy.js";
|
|
4
4
|
import { c as Kind, t as parse } from "./parser-CkF6Qt8V.js";
|
|
5
5
|
import "./printer-CEYr4JOg.js";
|
|
6
6
|
import { createContext, use, useCallback, useContext, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
@@ -53,7 +53,7 @@ function makePHEventFunctions(key) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region ../reactor-browser/dist/document-by-id-
|
|
56
|
+
//#region ../reactor-browser/dist/document-by-id-B4FIzG1w.js
|
|
57
57
|
async function queueActions(document, actionOrActions) {
|
|
58
58
|
if (!document) throw new Error("No document provided");
|
|
59
59
|
if (!actionOrActions) throw new Error("No actions provided");
|
|
@@ -232,7 +232,9 @@ function useDispatch(document) {
|
|
|
232
232
|
* @param onErrors - Callback invoked with any errors that occurred during action execution.
|
|
233
233
|
*/
|
|
234
234
|
function dispatch(actionOrActions, onErrors, onSuccess) {
|
|
235
|
-
dispatchActions(actionOrActions, document, onErrors, onSuccess).catch(
|
|
235
|
+
dispatchActions(actionOrActions, document, onErrors, onSuccess).catch((error) => {
|
|
236
|
+
logger.error("Failed to dispatch actions: @error", error);
|
|
237
|
+
});
|
|
236
238
|
}
|
|
237
239
|
return [document, dispatch];
|
|
238
240
|
}
|
|
@@ -1028,8 +1030,6 @@ slug.extend = function(customMap) {
|
|
|
1028
1030
|
slug.setLocale = function(locale) {
|
|
1029
1031
|
defaultLocale = locales[locale] || {};
|
|
1030
1032
|
};
|
|
1031
|
-
//#endregion
|
|
1032
|
-
//#region ../reactor-browser/dist/document-model-modules-DfQBNGc-.js
|
|
1033
1033
|
var UnsupportedDocumentTypeError = class extends Error {
|
|
1034
1034
|
constructor(documentType) {
|
|
1035
1035
|
super(`Document type ${documentType} is not supported`);
|
|
@@ -1296,7 +1296,7 @@ function useDocumentModelModuleById(id, version) {
|
|
|
1296
1296
|
Error;
|
|
1297
1297
|
JSON;
|
|
1298
1298
|
//#endregion
|
|
1299
|
-
//#region ../reactor-browser/dist/client-
|
|
1299
|
+
//#region ../reactor-browser/dist/client-D4bkR4pH.js
|
|
1300
1300
|
let DocumentChangeType = /* @__PURE__ */ function(DocumentChangeType) {
|
|
1301
1301
|
DocumentChangeType["ChildAdded"] = "CHILD_ADDED";
|
|
1302
1302
|
DocumentChangeType["ChildRemoved"] = "CHILD_REMOVED";
|
|
@@ -1327,6 +1327,16 @@ const PhDocumentFieldsFragmentDoc = gql`
|
|
|
1327
1327
|
lastModifiedAtUtcIso
|
|
1328
1328
|
}
|
|
1329
1329
|
`;
|
|
1330
|
+
const DocumentRelationshipFieldsFragmentDoc = gql`
|
|
1331
|
+
fragment DocumentRelationshipFields on DocumentRelationship {
|
|
1332
|
+
sourceId
|
|
1333
|
+
targetId
|
|
1334
|
+
relationshipType
|
|
1335
|
+
metadata
|
|
1336
|
+
createdAt
|
|
1337
|
+
updatedAt
|
|
1338
|
+
}
|
|
1339
|
+
`;
|
|
1330
1340
|
gql`
|
|
1331
1341
|
query GetDocumentModels($namespace: String, $paging: PagingInput) {
|
|
1332
1342
|
documentModels(namespace: $namespace, paging: $paging) {
|
|
@@ -1455,6 +1465,54 @@ gql`
|
|
|
1455
1465
|
}
|
|
1456
1466
|
${PhDocumentFieldsFragmentDoc}
|
|
1457
1467
|
`;
|
|
1468
|
+
gql`
|
|
1469
|
+
query GetDocumentOutgoingRelationshipEdges(
|
|
1470
|
+
$sourceIdentifier: String!
|
|
1471
|
+
$relationshipType: String
|
|
1472
|
+
$view: ViewFilterInput
|
|
1473
|
+
$paging: PagingInput
|
|
1474
|
+
) {
|
|
1475
|
+
documentOutgoingRelationshipEdges(
|
|
1476
|
+
sourceIdentifier: $sourceIdentifier
|
|
1477
|
+
relationshipType: $relationshipType
|
|
1478
|
+
view: $view
|
|
1479
|
+
paging: $paging
|
|
1480
|
+
) {
|
|
1481
|
+
items {
|
|
1482
|
+
...DocumentRelationshipFields
|
|
1483
|
+
}
|
|
1484
|
+
totalCount
|
|
1485
|
+
hasNextPage
|
|
1486
|
+
hasPreviousPage
|
|
1487
|
+
cursor
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
${DocumentRelationshipFieldsFragmentDoc}
|
|
1491
|
+
`;
|
|
1492
|
+
gql`
|
|
1493
|
+
query GetDocumentIncomingRelationshipEdges(
|
|
1494
|
+
$targetIdentifier: String!
|
|
1495
|
+
$relationshipType: String
|
|
1496
|
+
$view: ViewFilterInput
|
|
1497
|
+
$paging: PagingInput
|
|
1498
|
+
) {
|
|
1499
|
+
documentIncomingRelationshipEdges(
|
|
1500
|
+
targetIdentifier: $targetIdentifier
|
|
1501
|
+
relationshipType: $relationshipType
|
|
1502
|
+
view: $view
|
|
1503
|
+
paging: $paging
|
|
1504
|
+
) {
|
|
1505
|
+
items {
|
|
1506
|
+
...DocumentRelationshipFields
|
|
1507
|
+
}
|
|
1508
|
+
totalCount
|
|
1509
|
+
hasNextPage
|
|
1510
|
+
hasPreviousPage
|
|
1511
|
+
cursor
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
${DocumentRelationshipFieldsFragmentDoc}
|
|
1515
|
+
`;
|
|
1458
1516
|
gql`
|
|
1459
1517
|
query FindDocuments(
|
|
1460
1518
|
$search: SearchFilterInput
|
|
@@ -1645,12 +1703,34 @@ gql`
|
|
|
1645
1703
|
$sourceIdentifier: String!
|
|
1646
1704
|
$targetIdentifier: String!
|
|
1647
1705
|
$relationshipType: String!
|
|
1706
|
+
$metadata: JSONObject
|
|
1648
1707
|
$branch: String
|
|
1649
1708
|
) {
|
|
1650
1709
|
addRelationship(
|
|
1651
1710
|
sourceIdentifier: $sourceIdentifier
|
|
1652
1711
|
targetIdentifier: $targetIdentifier
|
|
1653
1712
|
relationshipType: $relationshipType
|
|
1713
|
+
metadata: $metadata
|
|
1714
|
+
branch: $branch
|
|
1715
|
+
) {
|
|
1716
|
+
...PHDocumentFields
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
${PhDocumentFieldsFragmentDoc}
|
|
1720
|
+
`;
|
|
1721
|
+
gql`
|
|
1722
|
+
mutation UpdateRelationship(
|
|
1723
|
+
$sourceIdentifier: String!
|
|
1724
|
+
$targetIdentifier: String!
|
|
1725
|
+
$relationshipType: String!
|
|
1726
|
+
$metadata: JSONObject
|
|
1727
|
+
$branch: String
|
|
1728
|
+
) {
|
|
1729
|
+
updateRelationship(
|
|
1730
|
+
sourceIdentifier: $sourceIdentifier
|
|
1731
|
+
targetIdentifier: $targetIdentifier
|
|
1732
|
+
relationshipType: $relationshipType
|
|
1733
|
+
metadata: $metadata
|
|
1654
1734
|
branch: $branch
|
|
1655
1735
|
) {
|
|
1656
1736
|
...PHDocumentFields
|
|
@@ -2065,7 +2145,7 @@ var MessageType = /* @__PURE__ */ ((MessageType2) => {
|
|
|
2065
2145
|
})(MessageType || {});
|
|
2066
2146
|
Error;
|
|
2067
2147
|
//#endregion
|
|
2068
|
-
//#region ../reactor-browser/dist/document-operations-
|
|
2148
|
+
//#region ../reactor-browser/dist/document-operations-Cm4EtaZs.js
|
|
2069
2149
|
const modalEventFunctions = makePHEventFunctions("modal");
|
|
2070
2150
|
modalEventFunctions.useValue;
|
|
2071
2151
|
/** Sets the current modal */
|
|
@@ -3139,7 +3219,7 @@ const usePHToast = toastEventFunctions.useValue;
|
|
|
3139
3219
|
toastEventFunctions.setValue;
|
|
3140
3220
|
toastEventFunctions.addEventHandler;
|
|
3141
3221
|
//#endregion
|
|
3142
|
-
//#region ../reactor-browser/dist/switchboard-
|
|
3222
|
+
//#region ../reactor-browser/dist/switchboard-CaXQ4-5Q.js
|
|
3143
3223
|
/** Returns a document of a specific type, throws an error if the found document has a different type */
|
|
3144
3224
|
function useDocumentOfType(documentId, documentType) {
|
|
3145
3225
|
const [document, dispatch] = useDocumentById(documentId);
|
|
@@ -4638,4 +4718,4 @@ createDebouncedRefreshReactorDataClient();
|
|
|
4638
4718
|
//#endregion
|
|
4639
4719
|
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 };
|
|
4640
4720
|
|
|
4641
|
-
//# sourceMappingURL=dist-
|
|
4721
|
+
//# sourceMappingURL=dist-D0tSbK8B.js.map
|