@powerhousedao/vetra 6.2.2-dev.6 → 6.2.2-dev.60
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/codegen/index.d.ts +5 -5
- package/dist/codegen/index.js +5 -5
- package/dist/codegen/spec.d.ts +1 -1
- package/dist/codegen/spec.js +1 -1
- package/dist/{connect-CjGVphlq.js → connect-qpJ9OUaH.js} +1 -1
- package/dist/{connect-CjGVphlq.js.map → connect-qpJ9OUaH.js.map} +1 -1
- package/dist/document-models/app-module/index.d.ts +1 -1
- package/dist/document-models/app-module/index.js +35 -2
- package/dist/document-models/app-module/index.js.map +1 -0
- package/dist/document-models/document-editor/index.d.ts +1 -1
- package/dist/document-models/document-editor/index.js +37 -4
- package/dist/document-models/document-editor/index.js.map +1 -0
- package/dist/document-models/index.d.ts +5 -5
- package/dist/document-models/index.js +4 -4
- package/dist/document-models/processor-module/index.d.ts +1 -1
- package/dist/document-models/processor-module/index.js +37 -4
- package/dist/document-models/processor-module/index.js.map +1 -0
- package/dist/document-models/subgraph-module/index.d.ts +1 -1
- package/dist/document-models/subgraph-module/index.js +37 -4
- package/dist/document-models/subgraph-module/index.js.map +1 -0
- package/dist/document-models/vetra-package/index.d.ts +1 -1
- package/dist/document-models/vetra-package/index.js +3 -2
- package/dist/{editor-CtN1Sy88.js → editor-C13SvgUy.js} +4 -4
- package/dist/{editor-CtN1Sy88.js.map → editor-C13SvgUy.js.map} +1 -1
- package/dist/{editor-De5XaIXa.js → editor-CCdg1mJL.js} +4 -4
- package/dist/{editor-De5XaIXa.js.map → editor-CCdg1mJL.js.map} +1 -1
- package/dist/{editor-saGUzfCl.js → editor-CLbvu3pG.js} +4 -4
- package/dist/{editor-saGUzfCl.js.map → editor-CLbvu3pG.js.map} +1 -1
- package/dist/{editor-BmYxPe_4.js → editor-Fgw7attg.js} +1 -1
- package/dist/{editor-BmYxPe_4.js.map → editor-Fgw7attg.js.map} +1 -1
- package/dist/{editor-bA5TTxfU.js → editor-LRAwrgdQ.js} +3 -3
- package/dist/{editor-bA5TTxfU.js.map → editor-LRAwrgdQ.js.map} +1 -1
- package/dist/{editor-fNaLqnMc.js → editor-_0gdltOt.js} +4 -4
- package/dist/{editor-fNaLqnMc.js.map → editor-_0gdltOt.js.map} +1 -1
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/{factory-Cn0UwIFB.js → factory-5eiZohiv.js} +2 -2
- package/dist/{factory-Cn0UwIFB.js.map → factory-5eiZohiv.js.map} +1 -1
- package/dist/{factory-B6hBnFAf.js → factory-DMl8eB3P.js} +3 -3
- package/dist/{factory-B6hBnFAf.js.map → factory-DMl8eB3P.js.map} +1 -1
- package/dist/{hooks-D_8Uwk1s.js → hooks-BIgFcbaF.js} +1 -1
- package/dist/{hooks-D_8Uwk1s.js.map → hooks-BIgFcbaF.js.map} +1 -1
- package/dist/{index-HHjpYUNP.d.ts → index-B5ijieNt.d.ts} +1 -1
- package/dist/{index-HHjpYUNP.d.ts.map → index-B5ijieNt.d.ts.map} +1 -1
- package/dist/{index-DMMMQaUe.d.ts → index-Dm_gN1DR.d.ts} +1 -1
- package/dist/{index-DMMMQaUe.d.ts.map → index-Dm_gN1DR.d.ts.map} +1 -1
- package/dist/{index-D2tNV62S.d.ts → index-SB-AtQdU.d.ts} +1 -1
- package/dist/{index-D2tNV62S.d.ts.map → index-SB-AtQdU.d.ts.map} +1 -1
- package/dist/{index-BES2zg3c.d.ts → index-f_um1g-i.d.ts} +1 -1
- package/dist/{index-BES2zg3c.d.ts.map → index-f_um1g-i.d.ts.map} +1 -1
- package/dist/index.d.ts +10 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/{logger-DLnGUZk9.js → logger-WHD0fyLm.js} +1 -1
- package/dist/{logger-DLnGUZk9.js.map → logger-WHD0fyLm.js.map} +1 -1
- package/dist/{module-C0jUPu9F.js → module-Bx1OEHxF.js} +2 -2
- package/dist/{module-C0jUPu9F.js.map → module-Bx1OEHxF.js.map} +1 -1
- package/dist/{module-1hr_ne9w.js → module-CRfHlbnq.js} +1 -1
- package/dist/{module-1hr_ne9w.js.map → module-CRfHlbnq.js.map} +1 -1
- package/dist/{module-DP3bVbak.js → module-Chqkdq4U.js} +2 -2
- package/dist/{module-DP3bVbak.js.map → module-Chqkdq4U.js.map} +1 -1
- package/dist/{module-BhsG8kkn.js → module-DXT-FMxU.js} +7 -7
- package/dist/{module-BhsG8kkn.js.map → module-DXT-FMxU.js.map} +1 -1
- package/dist/{module-mtR8W4L4.js → module-bKT_e3CH.js} +2 -2
- package/dist/{module-mtR8W4L4.js.map → module-bKT_e3CH.js.map} +1 -1
- package/dist/{module-D3n9Z2mN.d.ts → module-ciAK1LUC.d.ts} +1 -1
- package/dist/{module-D3n9Z2mN.d.ts.map → module-ciAK1LUC.d.ts.map} +1 -1
- package/dist/{ph-factories-Dvy-HW6C.js → ph-factories-Ce8oAqs9.js} +1 -1
- package/dist/{ph-factories-Dvy-HW6C.js.map → ph-factories-Ce8oAqs9.js.map} +1 -1
- package/dist/{ph-factories-BKH_LPa8.js → ph-factories-CjbIAMgT.js} +2 -2
- package/dist/{ph-factories-BKH_LPa8.js.map → ph-factories-CjbIAMgT.js.map} +1 -1
- package/dist/{ph-factories-qCTFKODg.js → ph-factories-CljTAAVS.js} +2 -2
- package/dist/{ph-factories-qCTFKODg.js.map → ph-factories-CljTAAVS.js.map} +1 -1
- package/dist/{ph-factories-BL1-hdeG.js → ph-factories-dVj6mIlR.js} +2 -2
- package/dist/{ph-factories-BL1-hdeG.js.map → ph-factories-dVj6mIlR.js.map} +1 -1
- package/dist/{processor-D2z8Eq93.js → processor-trJFuoHh.js} +2 -2
- package/dist/{processor-D2z8Eq93.js.map → processor-trJFuoHh.js.map} +1 -1
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.js +1 -1
- package/dist/processors/vetra-read-model/index.js +1 -1
- package/dist/{spec-api-CT1DqmgF.js → spec-api-DobY5TUJ.js} +8 -8
- package/dist/{spec-api-CT1DqmgF.js.map → spec-api-DobY5TUJ.js.map} +1 -1
- package/dist/{specs-_7A7Tl_N.d.ts → specs-BeVdfCwg.d.ts} +1 -1
- package/dist/{specs-_7A7Tl_N.d.ts.map → specs-BeVdfCwg.d.ts.map} +1 -1
- package/dist/switchboard-Bf0uvxSu.js +8 -0
- package/dist/{switchboard-CvWiUgBP.js.map → switchboard-Bf0uvxSu.js.map} +1 -1
- package/dist/upgrade-manifest-BGuy0v65.js +15 -0
- package/dist/upgrade-manifest-BGuy0v65.js.map +1 -0
- package/dist/upgrade-manifest-Ck3Mgwhc.js +15 -0
- package/dist/upgrade-manifest-Ck3Mgwhc.js.map +1 -0
- package/dist/upgrade-manifest-NaS4SWk9.js +15 -0
- package/dist/upgrade-manifest-NaS4SWk9.js.map +1 -0
- package/dist/upgrade-manifest-OlS1ALVv.js +15 -0
- package/dist/upgrade-manifest-OlS1ALVv.js.map +1 -0
- package/dist/upgrade-manifest-XdOLymuP.js +15 -0
- package/dist/upgrade-manifest-XdOLymuP.js.map +1 -0
- package/dist/{useVetraDocument-BpPD6DKR.js → useVetraDocument-BlLdlhrQ.js} +1 -1
- package/dist/{useVetraDocument-BpPD6DKR.js.map → useVetraDocument-BlLdlhrQ.js.map} +1 -1
- package/dist/{utils-BiV3cs9Y.js → utils-CkxGmQ2_.js} +1 -1
- package/dist/{utils-BiV3cs9Y.js.map → utils-CkxGmQ2_.js.map} +1 -1
- package/dist/{utils-D0ejTHeY.js → utils-DXCsvCXL.js} +1 -1
- package/dist/{utils-D0ejTHeY.js.map → utils-DXCsvCXL.js.map} +1 -1
- package/dist/{utils-CkWB3DRk.js → utils-DmOIDVQo.js} +1 -1
- package/dist/{utils-CkWB3DRk.js.map → utils-DmOIDVQo.js.map} +1 -1
- package/dist/{vetra-package-Ds8CruJz.js → vetra-package-Bl6TC4wx.js} +3 -15
- package/dist/vetra-package-Bl6TC4wx.js.map +1 -0
- package/package.json +10 -10
- package/dist/app-module-dG7ug7Cm.js +0 -48
- package/dist/app-module-dG7ug7Cm.js.map +0 -1
- package/dist/document-editor-5gSBaTUM.js +0 -48
- package/dist/document-editor-5gSBaTUM.js.map +0 -1
- package/dist/processor-module-NP3ktbdr.js +0 -48
- package/dist/processor-module-NP3ktbdr.js.map +0 -1
- package/dist/subgraph-module-B_5B8e3I.js +0 -48
- package/dist/subgraph-module-B_5B8e3I.js.map +0 -1
- package/dist/switchboard-CvWiUgBP.js +0 -8
- package/dist/vetra-package-Ds8CruJz.js.map +0 -1
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { l as isDocumentEditorDocument, s as assertIsDocumentEditorDocument } from "./utils-D0ejTHeY.js";
|
|
2
|
-
import { t as DocumentEditor } from "./module-DP3bVbak.js";
|
|
3
|
-
import { PHDocumentController } from "document-model";
|
|
4
|
-
import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
|
|
5
|
-
//#region document-models/document-editor/v1/gen/controller.ts
|
|
6
|
-
/**
|
|
7
|
-
* WARNING: DO NOT EDIT
|
|
8
|
-
* This file is auto-generated and updated by codegen
|
|
9
|
-
*/
|
|
10
|
-
const DocumentEditorController = PHDocumentController.forDocumentModel(DocumentEditor);
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region document-models/document-editor/v1/hooks.ts
|
|
13
|
-
/** Hook to get a DocumentEditor document by its id */
|
|
14
|
-
function useDocumentEditorDocumentById(documentId) {
|
|
15
|
-
const [document, dispatch] = useDocumentById(documentId);
|
|
16
|
-
if (!isDocumentEditorDocument(document)) return [void 0, void 0];
|
|
17
|
-
return [document, dispatch];
|
|
18
|
-
}
|
|
19
|
-
/** Hook to get the selected DocumentEditor document */
|
|
20
|
-
function useSelectedDocumentEditorDocument() {
|
|
21
|
-
const [document, dispatch] = useSelectedDocument();
|
|
22
|
-
assertIsDocumentEditorDocument(document);
|
|
23
|
-
return [document, dispatch];
|
|
24
|
-
}
|
|
25
|
-
/** Hook to get all DocumentEditor documents in the selected drive */
|
|
26
|
-
function useDocumentEditorDocumentsInSelectedDrive() {
|
|
27
|
-
return useDocumentsInSelectedDrive()?.filter(isDocumentEditorDocument);
|
|
28
|
-
}
|
|
29
|
-
/** Hook to get all DocumentEditor documents in the selected folder */
|
|
30
|
-
function useDocumentEditorDocumentsInSelectedFolder() {
|
|
31
|
-
return useDocumentsInSelectedFolder()?.filter(isDocumentEditorDocument);
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region document-models/document-editor/upgrades/versions.ts
|
|
35
|
-
const supportedVersions = [1];
|
|
36
|
-
const latestVersion = supportedVersions[0];
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region document-models/document-editor/upgrades/upgrade-manifest.ts
|
|
39
|
-
const documentEditorUpgradeManifest = {
|
|
40
|
-
documentType: "powerhouse/document-editor",
|
|
41
|
-
latestVersion,
|
|
42
|
-
supportedVersions,
|
|
43
|
-
upgrades: {}
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
export { useDocumentEditorDocumentsInSelectedDrive as a, DocumentEditorController as c, useDocumentEditorDocumentById as i, latestVersion as n, useDocumentEditorDocumentsInSelectedFolder as o, supportedVersions as r, useSelectedDocumentEditorDocument as s, documentEditorUpgradeManifest as t };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=document-editor-5gSBaTUM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-editor-5gSBaTUM.js","names":[],"sources":["../document-models/document-editor/v1/gen/controller.ts","../document-models/document-editor/v1/hooks.ts","../document-models/document-editor/upgrades/versions.ts","../document-models/document-editor/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { DocumentEditor } from \"../module.js\";\nimport type { DocumentEditorAction, DocumentEditorPHState } from \"./types.js\";\n\nexport const DocumentEditorController = PHDocumentController.forDocumentModel<\n DocumentEditorPHState,\n DocumentEditorAction\n>(DocumentEditor);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n DocumentEditorAction,\n DocumentEditorDocument,\n} from \"document-models/document-editor/v1\";\nimport {\n assertIsDocumentEditorDocument,\n isDocumentEditorDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a DocumentEditor document by its id */\nexport function useDocumentEditorDocumentById(\n documentId: string | null | undefined,\n):\n | [DocumentEditorDocument, DocumentDispatch<DocumentEditorAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isDocumentEditorDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected DocumentEditor document */\nexport function useSelectedDocumentEditorDocument(): [\n DocumentEditorDocument,\n DocumentDispatch<DocumentEditorAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsDocumentEditorDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all DocumentEditor documents in the selected drive */\nexport function useDocumentEditorDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isDocumentEditorDocument);\n}\n\n/** Hook to get all DocumentEditor documents in the selected folder */\nexport function useDocumentEditorDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isDocumentEditorDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const documentEditorUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/document-editor\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,2BAA2B,qBAAqB,iBAG3D,eAAe;;;;ACUjB,SAAgB,8BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,yBAAyB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACtE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,oCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,gCAA+B,SAAS;AACxC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,4CAA4C;AAE1D,QADiC,6BAA6B,EAC7B,OAAO,yBAAyB;;;AAInE,SAAgB,6CAA6C;AAE3D,QADkC,8BAA8B,EAC9B,OAAO,yBAAyB;;;;ACnDpE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,gCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { l as isProcessorModuleDocument, s as assertIsProcessorModuleDocument } from "./utils-CkWB3DRk.js";
|
|
2
|
-
import { t as ProcessorModule } from "./module-mtR8W4L4.js";
|
|
3
|
-
import { PHDocumentController } from "document-model";
|
|
4
|
-
import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
|
|
5
|
-
//#region document-models/processor-module/v1/gen/controller.ts
|
|
6
|
-
/**
|
|
7
|
-
* WARNING: DO NOT EDIT
|
|
8
|
-
* This file is auto-generated and updated by codegen
|
|
9
|
-
*/
|
|
10
|
-
const ProcessorModuleController = PHDocumentController.forDocumentModel(ProcessorModule);
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region document-models/processor-module/v1/hooks.ts
|
|
13
|
-
/** Hook to get a ProcessorModule document by its id */
|
|
14
|
-
function useProcessorModuleDocumentById(documentId) {
|
|
15
|
-
const [document, dispatch] = useDocumentById(documentId);
|
|
16
|
-
if (!isProcessorModuleDocument(document)) return [void 0, void 0];
|
|
17
|
-
return [document, dispatch];
|
|
18
|
-
}
|
|
19
|
-
/** Hook to get the selected ProcessorModule document */
|
|
20
|
-
function useSelectedProcessorModuleDocument() {
|
|
21
|
-
const [document, dispatch] = useSelectedDocument();
|
|
22
|
-
assertIsProcessorModuleDocument(document);
|
|
23
|
-
return [document, dispatch];
|
|
24
|
-
}
|
|
25
|
-
/** Hook to get all ProcessorModule documents in the selected drive */
|
|
26
|
-
function useProcessorModuleDocumentsInSelectedDrive() {
|
|
27
|
-
return useDocumentsInSelectedDrive()?.filter(isProcessorModuleDocument);
|
|
28
|
-
}
|
|
29
|
-
/** Hook to get all ProcessorModule documents in the selected folder */
|
|
30
|
-
function useProcessorModuleDocumentsInSelectedFolder() {
|
|
31
|
-
return useDocumentsInSelectedFolder()?.filter(isProcessorModuleDocument);
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region document-models/processor-module/upgrades/versions.ts
|
|
35
|
-
const supportedVersions = [1];
|
|
36
|
-
const latestVersion = supportedVersions[0];
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region document-models/processor-module/upgrades/upgrade-manifest.ts
|
|
39
|
-
const processorModuleUpgradeManifest = {
|
|
40
|
-
documentType: "powerhouse/processor",
|
|
41
|
-
latestVersion,
|
|
42
|
-
supportedVersions,
|
|
43
|
-
upgrades: {}
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
export { useProcessorModuleDocumentsInSelectedDrive as a, ProcessorModuleController as c, useProcessorModuleDocumentById as i, latestVersion as n, useProcessorModuleDocumentsInSelectedFolder as o, supportedVersions as r, useSelectedProcessorModuleDocument as s, processorModuleUpgradeManifest as t };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=processor-module-NP3ktbdr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processor-module-NP3ktbdr.js","names":[],"sources":["../document-models/processor-module/v1/gen/controller.ts","../document-models/processor-module/v1/hooks.ts","../document-models/processor-module/upgrades/versions.ts","../document-models/processor-module/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { ProcessorModule } from \"../module.js\";\nimport type { ProcessorModuleAction, ProcessorModulePHState } from \"./types.js\";\n\nexport const ProcessorModuleController = PHDocumentController.forDocumentModel<\n ProcessorModulePHState,\n ProcessorModuleAction\n>(ProcessorModule);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n ProcessorModuleAction,\n ProcessorModuleDocument,\n} from \"document-models/processor-module/v1\";\nimport {\n assertIsProcessorModuleDocument,\n isProcessorModuleDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a ProcessorModule document by its id */\nexport function useProcessorModuleDocumentById(\n documentId: string | null | undefined,\n):\n | [ProcessorModuleDocument, DocumentDispatch<ProcessorModuleAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isProcessorModuleDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected ProcessorModule document */\nexport function useSelectedProcessorModuleDocument(): [\n ProcessorModuleDocument,\n DocumentDispatch<ProcessorModuleAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsProcessorModuleDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all ProcessorModule documents in the selected drive */\nexport function useProcessorModuleDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isProcessorModuleDocument);\n}\n\n/** Hook to get all ProcessorModule documents in the selected folder */\nexport function useProcessorModuleDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isProcessorModuleDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const processorModuleUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/processor\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,4BAA4B,qBAAqB,iBAG5D,gBAAgB;;;;ACUlB,SAAgB,+BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,0BAA0B,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACvE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,qCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,iCAAgC,SAAS;AACzC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,6CAA6C;AAE3D,QADiC,6BAA6B,EAC7B,OAAO,0BAA0B;;;AAIpE,SAAgB,8CAA8C;AAE5D,QADkC,8BAA8B,EAC9B,OAAO,0BAA0B;;;;ACnDrE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,iCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { l as isSubgraphModuleDocument, s as assertIsSubgraphModuleDocument } from "./utils-BiV3cs9Y.js";
|
|
2
|
-
import { t as SubgraphModule } from "./module-C0jUPu9F.js";
|
|
3
|
-
import { PHDocumentController } from "document-model";
|
|
4
|
-
import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
|
|
5
|
-
//#region document-models/subgraph-module/v1/gen/controller.ts
|
|
6
|
-
/**
|
|
7
|
-
* WARNING: DO NOT EDIT
|
|
8
|
-
* This file is auto-generated and updated by codegen
|
|
9
|
-
*/
|
|
10
|
-
const SubgraphModuleController = PHDocumentController.forDocumentModel(SubgraphModule);
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region document-models/subgraph-module/v1/hooks.ts
|
|
13
|
-
/** Hook to get a SubgraphModule document by its id */
|
|
14
|
-
function useSubgraphModuleDocumentById(documentId) {
|
|
15
|
-
const [document, dispatch] = useDocumentById(documentId);
|
|
16
|
-
if (!isSubgraphModuleDocument(document)) return [void 0, void 0];
|
|
17
|
-
return [document, dispatch];
|
|
18
|
-
}
|
|
19
|
-
/** Hook to get the selected SubgraphModule document */
|
|
20
|
-
function useSelectedSubgraphModuleDocument() {
|
|
21
|
-
const [document, dispatch] = useSelectedDocument();
|
|
22
|
-
assertIsSubgraphModuleDocument(document);
|
|
23
|
-
return [document, dispatch];
|
|
24
|
-
}
|
|
25
|
-
/** Hook to get all SubgraphModule documents in the selected drive */
|
|
26
|
-
function useSubgraphModuleDocumentsInSelectedDrive() {
|
|
27
|
-
return useDocumentsInSelectedDrive()?.filter(isSubgraphModuleDocument);
|
|
28
|
-
}
|
|
29
|
-
/** Hook to get all SubgraphModule documents in the selected folder */
|
|
30
|
-
function useSubgraphModuleDocumentsInSelectedFolder() {
|
|
31
|
-
return useDocumentsInSelectedFolder()?.filter(isSubgraphModuleDocument);
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region document-models/subgraph-module/upgrades/versions.ts
|
|
35
|
-
const supportedVersions = [1];
|
|
36
|
-
const latestVersion = supportedVersions[0];
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region document-models/subgraph-module/upgrades/upgrade-manifest.ts
|
|
39
|
-
const subgraphModuleUpgradeManifest = {
|
|
40
|
-
documentType: "powerhouse/subgraph",
|
|
41
|
-
latestVersion,
|
|
42
|
-
supportedVersions,
|
|
43
|
-
upgrades: {}
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
export { useSubgraphModuleDocumentById as a, SubgraphModuleController as c, useSelectedSubgraphModuleDocument as i, latestVersion as n, useSubgraphModuleDocumentsInSelectedDrive as o, supportedVersions as r, useSubgraphModuleDocumentsInSelectedFolder as s, subgraphModuleUpgradeManifest as t };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=subgraph-module-B_5B8e3I.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph-module-B_5B8e3I.js","names":[],"sources":["../document-models/subgraph-module/v1/gen/controller.ts","../document-models/subgraph-module/v1/hooks.ts","../document-models/subgraph-module/upgrades/versions.ts","../document-models/subgraph-module/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { SubgraphModule } from \"../module.js\";\nimport type { SubgraphModuleAction, SubgraphModulePHState } from \"./types.js\";\n\nexport const SubgraphModuleController = PHDocumentController.forDocumentModel<\n SubgraphModulePHState,\n SubgraphModuleAction\n>(SubgraphModule);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n SubgraphModuleAction,\n SubgraphModuleDocument,\n} from \"document-models/subgraph-module/v1\";\nimport {\n assertIsSubgraphModuleDocument,\n isSubgraphModuleDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a SubgraphModule document by its id */\nexport function useSubgraphModuleDocumentById(\n documentId: string | null | undefined,\n):\n | [SubgraphModuleDocument, DocumentDispatch<SubgraphModuleAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isSubgraphModuleDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected SubgraphModule document */\nexport function useSelectedSubgraphModuleDocument(): [\n SubgraphModuleDocument,\n DocumentDispatch<SubgraphModuleAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsSubgraphModuleDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all SubgraphModule documents in the selected drive */\nexport function useSubgraphModuleDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isSubgraphModuleDocument);\n}\n\n/** Hook to get all SubgraphModule documents in the selected folder */\nexport function useSubgraphModuleDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isSubgraphModuleDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const subgraphModuleUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/subgraph\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,2BAA2B,qBAAqB,iBAG3D,eAAe;;;;ACUjB,SAAgB,8BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,yBAAyB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACtE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,oCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,gCAA+B,SAAS;AACxC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,4CAA4C;AAE1D,QADiC,6BAA6B,EAC7B,OAAO,yBAAyB;;;AAInE,SAAgB,6CAA6C;AAE3D,QADkC,8BAA8B,EAC9B,OAAO,yBAAyB;;;;ACnDpE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,gCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as codegenFactoryBuilder } from "./factory-B6hBnFAf.js";
|
|
2
|
-
import { t as vetraReadModelFactoryBuilder } from "./factory-Cn0UwIFB.js";
|
|
3
|
-
//#region processors/switchboard.ts
|
|
4
|
-
const processorFactoryBuilders = [vetraReadModelFactoryBuilder, codegenFactoryBuilder];
|
|
5
|
-
//#endregion
|
|
6
|
-
export { processorFactoryBuilders };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=switchboard-CvWiUgBP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vetra-package-Ds8CruJz.js","names":["createState"],"sources":["../document-models/vetra-package/v1/gen/controller.ts","../document-models/vetra-package/v1/gen/ph-factories.ts","../document-models/vetra-package/v1/hooks.ts","../document-models/vetra-package/upgrades/versions.ts","../document-models/vetra-package/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { VetraPackage } from \"../module.js\";\nimport type { VetraPackageAction, VetraPackagePHState } from \"./types.js\";\n\nexport const VetraPackageController = PHDocumentController.forDocumentModel<\n VetraPackagePHState,\n VetraPackageAction\n>(VetraPackage);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating VetraPackageDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n VetraPackageDocument,\n VetraPackageGlobalState,\n VetraPackageLocalState,\n VetraPackagePHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): VetraPackageGlobalState {\n return {\n name: null,\n description: null,\n category: null,\n author: {\n name: null,\n website: null,\n },\n keywords: [],\n githubUrl: null,\n npmUrl: null,\n };\n}\n\nexport function defaultLocalState(): VetraPackageLocalState {\n return {};\n}\n\nexport function defaultPHState(): VetraPackagePHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<VetraPackageGlobalState>,\n): VetraPackageGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<VetraPackageLocalState>,\n): VetraPackageLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as VetraPackageLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<VetraPackageGlobalState>,\n localState?: Partial<VetraPackageLocalState>,\n): VetraPackagePHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a VetraPackageDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createVetraPackageDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<VetraPackageGlobalState>;\n local?: Partial<VetraPackageLocalState>;\n }>,\n): VetraPackageDocument {\n const document = utils.createDocument(\n state\n ? createState(\n createBaseState(state.auth, state.document),\n state.global,\n state.local,\n )\n : undefined,\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n VetraPackageAction,\n VetraPackageDocument,\n} from \"document-models/vetra-package/v1\";\nimport {\n assertIsVetraPackageDocument,\n isVetraPackageDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a VetraPackage document by its id */\nexport function useVetraPackageDocumentById(\n documentId: string | null | undefined,\n):\n | [VetraPackageDocument, DocumentDispatch<VetraPackageAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isVetraPackageDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected VetraPackage document */\nexport function useSelectedVetraPackageDocument(): [\n VetraPackageDocument,\n DocumentDispatch<VetraPackageAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsVetraPackageDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all VetraPackage documents in the selected drive */\nexport function useVetraPackageDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isVetraPackageDocument);\n}\n\n/** Hook to get all VetraPackage documents in the selected folder */\nexport function useVetraPackageDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isVetraPackageDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const vetraPackageUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/package\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,yBAAyB,qBAAqB,iBAGzD,aAAa;;;ACIf,SAAgB,qBAA8C;AAC5D,QAAO;EACL,MAAM;EACN,aAAa;EACb,UAAU;EACV,QAAQ;GACN,MAAM;GACN,SAAS;GACV;EACD,UAAU,EAAE;EACZ,WAAW;EACX,QAAQ;EACT;;AAGH,SAAgB,oBAA4C;AAC1D,QAAO,EAAE;;AAGX,SAAgB,iBAAsC;AACpD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OACyB;AACzB,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OACwB;AACxB,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACqB;AACrB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,2BACd,OAMsB;AAWtB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL;;;;;ACxEH,SAAgB,4BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,uBAAuB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACpE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,kCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,8BAA6B,SAAS;AACtC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,0CAA0C;AAExD,QADiC,6BAA6B,EAC7B,OAAO,uBAAuB;;;AAIjE,SAAgB,2CAA2C;AAEzD,QADkC,8BAA8B,EAC9B,OAAO,uBAAuB;;;;ACnDlE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,8BAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|