@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,7 +1,7 @@
|
|
|
1
1
|
import { b as setAppStatus, g as addDocumentType, h as setDragAndDropEnabled, v as removeDocumentType, x as setDocumentTypes, y as setAppName } from "./utils-B4KdjDnp.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useSelectedAppModuleDocument } from "./document-models/app-module/index.js";
|
|
3
3
|
import { StatusPill } from "./editors/components/index.js";
|
|
4
|
-
import { t as useDebounce } from "./hooks-
|
|
4
|
+
import { t as useDebounce } from "./hooks-BIgFcbaF.js";
|
|
5
5
|
import { useDocumentTypesInSelectedDrive, useSetPHDocumentEditorConfig, useSupportedDocumentTypesInReactor } from "@powerhousedao/reactor-browser";
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
7
|
import { twMerge } from "tailwind-merge";
|
|
@@ -197,4 +197,4 @@ function Editor() {
|
|
|
197
197
|
//#endregion
|
|
198
198
|
export { Editor as default };
|
|
199
199
|
|
|
200
|
-
//# sourceMappingURL=editor-
|
|
200
|
+
//# sourceMappingURL=editor-LRAwrgdQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-bA5TTxfU.js","names":[],"sources":["../editors/app-editor/components/AppEditorForm.tsx","../editors/app-editor/config.ts","../editors/app-editor/editor.tsx"],"sourcesContent":["import {\n useDocumentTypesInSelectedDrive,\n useSupportedDocumentTypesInReactor,\n} from \"@powerhousedao/reactor-browser\";\nimport {\n addDocumentType,\n removeDocumentType,\n setAppName,\n setAppStatus,\n setDocumentTypes,\n setDragAndDropEnabled,\n} from \"@powerhousedao/vetra/document-models/app-module\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { twMerge } from \"tailwind-merge\";\nimport { useSelectedAppModuleDocument } from \"../../../document-models/app-module/index.js\";\nimport { StatusPill } from \"../../components/index.js\";\nimport { useDebounce } from \"../../hooks/index.js\";\n\nconst ALL_IN_DRIVE = \"all-in-drive\";\nconst ALL_IN_REACTOR = \"all-in-reactor\";\nconst ALLOW_ANY = \"allow-any\";\n\nexport const AppEditorForm = () => {\n const [document, dispatch] = useSelectedAppModuleDocument();\n const documentName = document.state.global.name;\n const status = document.state.global.status;\n const isDragAndDropEnabled = document.state.global.isDragAndDropEnabled;\n const allowedDocumentTypes = document.state.global.allowedDocumentTypes;\n const [appName, handleSetAppName] = useState(documentName);\n const [isConfirmed, setIsConfirmed] = useState(status === \"CONFIRMED\");\n const documentTypesInSelectedDrive = useDocumentTypesInSelectedDrive();\n const supportedDocumentTypesInReactor = useSupportedDocumentTypesInReactor();\n const [selectedDocumentTypes, setSelectedDocumentTypes] = useState(\n allowedDocumentTypes ?? [],\n );\n\n // Use the debounce hook for name changes\n\n const onNameChange = useCallback(\n (name: string) => {\n if (name === documentName) return;\n console.log(\"onNameChange\", name);\n dispatch(setAppName({ name }));\n },\n [documentName, dispatch],\n );\n\n useDebounce(appName, onNameChange, 300);\n\n const onConfirm = () => {\n dispatch(setAppStatus({ status: \"CONFIRMED\" }));\n };\n\n const onDragAndDropToggle = (enabled: boolean) => {\n if (enabled === isDragAndDropEnabled) return;\n dispatch(setDragAndDropEnabled({ enabled }));\n };\n\n // Reset confirmation state if status changes back to DRAFT\n useEffect(() => {\n if (status === \"DRAFT\") {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setIsConfirmed(false);\n }\n }, [status]);\n\n // Check if form should be read-only\n const isReadOnly = isConfirmed || status === \"CONFIRMED\";\n\n const handleConfirm = () => {\n if (appName.trim()) {\n setIsConfirmed(true); // Immediate UI update\n onConfirm();\n }\n };\n\n const handleAddDocumentType = (documentType: string) => {\n if (!documentType || selectedDocumentTypes.includes(documentType)) return;\n setSelectedDocumentTypes([...selectedDocumentTypes, documentType]);\n dispatch(addDocumentType({ documentType }));\n };\n\n const handleRemoveDocumentType = (documentType: string) => {\n setSelectedDocumentTypes(\n selectedDocumentTypes.filter((dt) => dt !== documentType),\n );\n dispatch(removeDocumentType({ documentType }));\n };\n\n const handleAddAllDocumentTypesInDrive = () => {\n const newDocumentTypes = [\n ...new Set([\n ...selectedDocumentTypes,\n ...(documentTypesInSelectedDrive ?? []),\n ]),\n ];\n setSelectedDocumentTypes(newDocumentTypes);\n dispatch(setDocumentTypes({ documentTypes: newDocumentTypes }));\n };\n\n const handleAddAllDocumentTypesInReactor = () => {\n const newDocumentTypes = [\n ...new Set([\n ...selectedDocumentTypes,\n ...(supportedDocumentTypesInReactor ?? []),\n ]),\n ];\n setSelectedDocumentTypes(newDocumentTypes);\n dispatch(setDocumentTypes({ documentTypes: newDocumentTypes }));\n };\n\n const handleAllowAnyDocumentType = () => {\n setSelectedDocumentTypes([]);\n dispatch(setDocumentTypes({ documentTypes: [] }));\n };\n\n const handleDocumentTypeSelection = (selectedValue: string) => {\n if (selectedValue === ALL_IN_DRIVE) {\n handleAddAllDocumentTypesInDrive();\n } else if (selectedValue === ALL_IN_REACTOR) {\n handleAddAllDocumentTypesInReactor();\n } else if (selectedValue === ALLOW_ANY) {\n handleAllowAnyDocumentType();\n } else {\n handleAddDocumentType(selectedValue);\n }\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-medium text-foreground\">\n App Configuration\n </h2>\n <StatusPill\n status={status === \"CONFIRMED\" ? \"confirmed\" : \"draft\"}\n label={status === \"CONFIRMED\" ? \"Confirmed\" : \"Draft\"}\n />\n </div>\n\n {/* App Name Field */}\n <div>\n <label\n htmlFor=\"app-name\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n App Name\n </label>\n <input\n id=\"app-name\"\n type=\"text\"\n value={appName}\n onChange={(e) => handleSetAppName(e.target.value)}\n disabled={isReadOnly}\n className={twMerge(\n \"w-full rounded-md border border-border px-3 py-2 text-foreground placeholder:text-muted-foreground focus:border-transparent focus:ring-2 focus:ring-ring focus:outline-none disabled:disabled-effect\",\n isReadOnly ? \"cursor-not-allowed bg-muted\" : \"\",\n )}\n placeholder=\"Enter app name\"\n />\n </div>\n\n {/* Document Types Field */}\n <div>\n <label\n htmlFor=\"document-types\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n Document Types\n </label>\n <div className=\"space-y-2\">\n {!isReadOnly && (\n <select\n onChange={(e) => handleDocumentTypeSelection(e.target.value)}\n className=\"w-full rounded-md border border-border px-3 py-2 text-foreground focus:border-transparent focus:ring-2 focus:ring-ring focus:outline-none\"\n >\n <option>Select a document type to add</option>\n <option>--- Vetra drive document types ---</option>\n <option value={ALL_IN_DRIVE}>\n Add all document types in Vetra drive\n </option>\n {documentTypesInSelectedDrive\n ?.filter((dt) => !selectedDocumentTypes.includes(dt))\n .map((docType) => (\n <option key={docType} value={docType}>\n {docType}\n </option>\n ))}\n <option>--- Reactor document types ---</option>\n <option value={ALL_IN_REACTOR}>\n Add all document types in Reactor\n </option>\n {supportedDocumentTypesInReactor\n ?.filter((dt) => !selectedDocumentTypes.includes(dt))\n .map((docType) => (\n <option key={docType} value={docType}>\n {docType}\n </option>\n ))}\n <option>--- Allow any document type ---</option>\n <option value={ALLOW_ANY}>Allow any document type</option>\n </select>\n )}\n <div className=\"space-y-1\">\n {selectedDocumentTypes.length > 0 ? (\n selectedDocumentTypes.map((type) => (\n <div key={type} className=\"flex items-center py-1\">\n <span className=\"text-sm text-foreground\">{type}</span>\n {!isReadOnly && (\n <button\n onClick={() => handleRemoveDocumentType(type)}\n className=\"ml-2 text-muted-foreground hover:hover-effect focus:outline-none\"\n >\n ×\n </button>\n )}\n </div>\n ))\n ) : (\n <span className=\"text-sm text-foreground\">All documents (*)</span>\n )}\n </div>\n </div>\n </div>\n\n {/* Drag and Drop Settings */}\n <div>\n <h3 className=\"mb-4 text-base font-medium text-foreground\">\n Drag and Drop Settings\n </h3>\n\n {/* Enable/Disable Switch */}\n <div className=\"mb-4\">\n <label htmlFor=\"drag-and-drop-enabled\" className=\"flex items-center\">\n <input\n id=\"drag-and-drop-enabled\"\n type=\"checkbox\"\n checked={isDragAndDropEnabled}\n onChange={(e) => onDragAndDropToggle(e.target.checked)}\n disabled={isReadOnly}\n className={twMerge(\n \"mr-2 size-4 rounded-sm border-border text-info focus:ring-ring\",\n isReadOnly ? \"cursor-not-allowed\" : \"\",\n )}\n />\n <span className=\"text-sm font-medium text-foreground\">\n Enable drag and drop\n </span>\n </label>\n </div>\n </div>\n\n {/* Confirm Button - only show if not in read-only mode */}\n {!isReadOnly && (\n <div>\n <button\n onClick={handleConfirm}\n disabled={!appName.trim()}\n className=\"rounded-md bg-primary px-4 py-2 text-primary-foreground hover:hover-effect focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:disabled-effect\"\n >\n Confirm\n </button>\n </div>\n )}\n </div>\n );\n};\n","import type { PHDocumentEditorConfig } from \"@powerhousedao/reactor-browser\";\n\nexport const editorConfig: PHDocumentEditorConfig = {\n isExternalControlsEnabled: false,\n};\n","import { DocumentToolbar } from \"@powerhousedao/design-system/connect\";\nimport { useSetPHDocumentEditorConfig } from \"@powerhousedao/reactor-browser\";\nimport { AppEditorForm } from \"./components/AppEditorForm.js\";\nimport { editorConfig } from \"./config.js\";\n\nexport default function Editor() {\n useSetPHDocumentEditorConfig(editorConfig);\n\n return (\n <div className=\"bg-background p-6\">\n <DocumentToolbar />\n <AppEditorForm />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAkBA,MAAM,eAAe;AACrB,MAAM,iBAAiB;AACvB,MAAM,YAAY;AAElB,MAAa,sBAAsB;CAC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AA,EAGL,oBAAC,OAAD;IAAK,WAAU;cACb,qBAAC,SAAD;KAAO,SAAQ;KAAwB,WAAU;eAAjD,CACE,oBAAC,SAAD;MACE,IAAG;MACH,MAAK;MACL,SAAS;MACT,WAAW,MAAM,oBAAoB,EAAE,OAAO,QAAQ;MACtD,UAAU;MACV,WAAW,QACT,kEACA,aAAa,uBAAuB,GACrC;MACD,CAAA,EACF,oBAAC,QAAD;MAAM,WAAU;gBAAsC;MAE/C,CAAA,CACD;;IACJ,CAAA,CACF,EAAA,CAAA;GAGL,CAAC,cACA,oBAAC,OAAD,EAAA,UACE,oBAAC,UAAD;IACE,SAAS;IACT,UAAU,CAAC,QAAQ,MAAM;IACzB,WAAU;cACX;IAEQ,CAAA,EACL,CAAA;GAEJ;;;;;ACtQV,MAAa,eAAuC,EAClD,2BAA2B,OAC5B;;;ACCD,SAAwB,SAAS;AAC/B,8BAA6B,aAAa;AAE1C,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,iBAAD,EAAmB,CAAA,EACnB,oBAAC,eAAD,EAAiB,CAAA,CACb"}
|
|
1
|
+
{"version":3,"file":"editor-LRAwrgdQ.js","names":[],"sources":["../editors/app-editor/components/AppEditorForm.tsx","../editors/app-editor/config.ts","../editors/app-editor/editor.tsx"],"sourcesContent":["import {\n useDocumentTypesInSelectedDrive,\n useSupportedDocumentTypesInReactor,\n} from \"@powerhousedao/reactor-browser\";\nimport {\n addDocumentType,\n removeDocumentType,\n setAppName,\n setAppStatus,\n setDocumentTypes,\n setDragAndDropEnabled,\n} from \"@powerhousedao/vetra/document-models/app-module\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { twMerge } from \"tailwind-merge\";\nimport { useSelectedAppModuleDocument } from \"../../../document-models/app-module/index.js\";\nimport { StatusPill } from \"../../components/index.js\";\nimport { useDebounce } from \"../../hooks/index.js\";\n\nconst ALL_IN_DRIVE = \"all-in-drive\";\nconst ALL_IN_REACTOR = \"all-in-reactor\";\nconst ALLOW_ANY = \"allow-any\";\n\nexport const AppEditorForm = () => {\n const [document, dispatch] = useSelectedAppModuleDocument();\n const documentName = document.state.global.name;\n const status = document.state.global.status;\n const isDragAndDropEnabled = document.state.global.isDragAndDropEnabled;\n const allowedDocumentTypes = document.state.global.allowedDocumentTypes;\n const [appName, handleSetAppName] = useState(documentName);\n const [isConfirmed, setIsConfirmed] = useState(status === \"CONFIRMED\");\n const documentTypesInSelectedDrive = useDocumentTypesInSelectedDrive();\n const supportedDocumentTypesInReactor = useSupportedDocumentTypesInReactor();\n const [selectedDocumentTypes, setSelectedDocumentTypes] = useState(\n allowedDocumentTypes ?? [],\n );\n\n // Use the debounce hook for name changes\n\n const onNameChange = useCallback(\n (name: string) => {\n if (name === documentName) return;\n console.log(\"onNameChange\", name);\n dispatch(setAppName({ name }));\n },\n [documentName, dispatch],\n );\n\n useDebounce(appName, onNameChange, 300);\n\n const onConfirm = () => {\n dispatch(setAppStatus({ status: \"CONFIRMED\" }));\n };\n\n const onDragAndDropToggle = (enabled: boolean) => {\n if (enabled === isDragAndDropEnabled) return;\n dispatch(setDragAndDropEnabled({ enabled }));\n };\n\n // Reset confirmation state if status changes back to DRAFT\n useEffect(() => {\n if (status === \"DRAFT\") {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setIsConfirmed(false);\n }\n }, [status]);\n\n // Check if form should be read-only\n const isReadOnly = isConfirmed || status === \"CONFIRMED\";\n\n const handleConfirm = () => {\n if (appName.trim()) {\n setIsConfirmed(true); // Immediate UI update\n onConfirm();\n }\n };\n\n const handleAddDocumentType = (documentType: string) => {\n if (!documentType || selectedDocumentTypes.includes(documentType)) return;\n setSelectedDocumentTypes([...selectedDocumentTypes, documentType]);\n dispatch(addDocumentType({ documentType }));\n };\n\n const handleRemoveDocumentType = (documentType: string) => {\n setSelectedDocumentTypes(\n selectedDocumentTypes.filter((dt) => dt !== documentType),\n );\n dispatch(removeDocumentType({ documentType }));\n };\n\n const handleAddAllDocumentTypesInDrive = () => {\n const newDocumentTypes = [\n ...new Set([\n ...selectedDocumentTypes,\n ...(documentTypesInSelectedDrive ?? []),\n ]),\n ];\n setSelectedDocumentTypes(newDocumentTypes);\n dispatch(setDocumentTypes({ documentTypes: newDocumentTypes }));\n };\n\n const handleAddAllDocumentTypesInReactor = () => {\n const newDocumentTypes = [\n ...new Set([\n ...selectedDocumentTypes,\n ...(supportedDocumentTypesInReactor ?? []),\n ]),\n ];\n setSelectedDocumentTypes(newDocumentTypes);\n dispatch(setDocumentTypes({ documentTypes: newDocumentTypes }));\n };\n\n const handleAllowAnyDocumentType = () => {\n setSelectedDocumentTypes([]);\n dispatch(setDocumentTypes({ documentTypes: [] }));\n };\n\n const handleDocumentTypeSelection = (selectedValue: string) => {\n if (selectedValue === ALL_IN_DRIVE) {\n handleAddAllDocumentTypesInDrive();\n } else if (selectedValue === ALL_IN_REACTOR) {\n handleAddAllDocumentTypesInReactor();\n } else if (selectedValue === ALLOW_ANY) {\n handleAllowAnyDocumentType();\n } else {\n handleAddDocumentType(selectedValue);\n }\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-medium text-foreground\">\n App Configuration\n </h2>\n <StatusPill\n status={status === \"CONFIRMED\" ? \"confirmed\" : \"draft\"}\n label={status === \"CONFIRMED\" ? \"Confirmed\" : \"Draft\"}\n />\n </div>\n\n {/* App Name Field */}\n <div>\n <label\n htmlFor=\"app-name\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n App Name\n </label>\n <input\n id=\"app-name\"\n type=\"text\"\n value={appName}\n onChange={(e) => handleSetAppName(e.target.value)}\n disabled={isReadOnly}\n className={twMerge(\n \"w-full rounded-md border border-border px-3 py-2 text-foreground placeholder:text-muted-foreground focus:border-transparent focus:ring-2 focus:ring-ring focus:outline-none disabled:disabled-effect\",\n isReadOnly ? \"cursor-not-allowed bg-muted\" : \"\",\n )}\n placeholder=\"Enter app name\"\n />\n </div>\n\n {/* Document Types Field */}\n <div>\n <label\n htmlFor=\"document-types\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n Document Types\n </label>\n <div className=\"space-y-2\">\n {!isReadOnly && (\n <select\n onChange={(e) => handleDocumentTypeSelection(e.target.value)}\n className=\"w-full rounded-md border border-border px-3 py-2 text-foreground focus:border-transparent focus:ring-2 focus:ring-ring focus:outline-none\"\n >\n <option>Select a document type to add</option>\n <option>--- Vetra drive document types ---</option>\n <option value={ALL_IN_DRIVE}>\n Add all document types in Vetra drive\n </option>\n {documentTypesInSelectedDrive\n ?.filter((dt) => !selectedDocumentTypes.includes(dt))\n .map((docType) => (\n <option key={docType} value={docType}>\n {docType}\n </option>\n ))}\n <option>--- Reactor document types ---</option>\n <option value={ALL_IN_REACTOR}>\n Add all document types in Reactor\n </option>\n {supportedDocumentTypesInReactor\n ?.filter((dt) => !selectedDocumentTypes.includes(dt))\n .map((docType) => (\n <option key={docType} value={docType}>\n {docType}\n </option>\n ))}\n <option>--- Allow any document type ---</option>\n <option value={ALLOW_ANY}>Allow any document type</option>\n </select>\n )}\n <div className=\"space-y-1\">\n {selectedDocumentTypes.length > 0 ? (\n selectedDocumentTypes.map((type) => (\n <div key={type} className=\"flex items-center py-1\">\n <span className=\"text-sm text-foreground\">{type}</span>\n {!isReadOnly && (\n <button\n onClick={() => handleRemoveDocumentType(type)}\n className=\"ml-2 text-muted-foreground hover:hover-effect focus:outline-none\"\n >\n ×\n </button>\n )}\n </div>\n ))\n ) : (\n <span className=\"text-sm text-foreground\">All documents (*)</span>\n )}\n </div>\n </div>\n </div>\n\n {/* Drag and Drop Settings */}\n <div>\n <h3 className=\"mb-4 text-base font-medium text-foreground\">\n Drag and Drop Settings\n </h3>\n\n {/* Enable/Disable Switch */}\n <div className=\"mb-4\">\n <label htmlFor=\"drag-and-drop-enabled\" className=\"flex items-center\">\n <input\n id=\"drag-and-drop-enabled\"\n type=\"checkbox\"\n checked={isDragAndDropEnabled}\n onChange={(e) => onDragAndDropToggle(e.target.checked)}\n disabled={isReadOnly}\n className={twMerge(\n \"mr-2 size-4 rounded-sm border-border text-info focus:ring-ring\",\n isReadOnly ? \"cursor-not-allowed\" : \"\",\n )}\n />\n <span className=\"text-sm font-medium text-foreground\">\n Enable drag and drop\n </span>\n </label>\n </div>\n </div>\n\n {/* Confirm Button - only show if not in read-only mode */}\n {!isReadOnly && (\n <div>\n <button\n onClick={handleConfirm}\n disabled={!appName.trim()}\n className=\"rounded-md bg-primary px-4 py-2 text-primary-foreground hover:hover-effect focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:disabled-effect\"\n >\n Confirm\n </button>\n </div>\n )}\n </div>\n );\n};\n","import type { PHDocumentEditorConfig } from \"@powerhousedao/reactor-browser\";\n\nexport const editorConfig: PHDocumentEditorConfig = {\n isExternalControlsEnabled: false,\n};\n","import { DocumentToolbar } from \"@powerhousedao/design-system/connect\";\nimport { useSetPHDocumentEditorConfig } from \"@powerhousedao/reactor-browser\";\nimport { AppEditorForm } from \"./components/AppEditorForm.js\";\nimport { editorConfig } from \"./config.js\";\n\nexport default function Editor() {\n useSetPHDocumentEditorConfig(editorConfig);\n\n return (\n <div className=\"bg-background p-6\">\n <DocumentToolbar />\n <AppEditorForm />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAkBA,MAAM,eAAe;AACrB,MAAM,iBAAiB;AACvB,MAAM,YAAY;AAElB,MAAa,sBAAsB;CACjC,MAAM,CAAC,UAAU,YAAY,8BAA8B;CAC3D,MAAM,eAAe,SAAS,MAAM,OAAO;CAC3C,MAAM,SAAS,SAAS,MAAM,OAAO;CACrC,MAAM,uBAAuB,SAAS,MAAM,OAAO;CACnD,MAAM,uBAAuB,SAAS,MAAM,OAAO;CACnD,MAAM,CAAC,SAAS,oBAAoB,SAAS,aAAa;CAC1D,MAAM,CAAC,aAAa,kBAAkB,SAAS,WAAW,YAAY;CACtE,MAAM,+BAA+B,iCAAiC;CACtE,MAAM,kCAAkC,oCAAoC;CAC5E,MAAM,C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,OAAD,EAAA,UACE,oBAAC,UAAD;IACE,SAAS;IACT,UAAU,CAAC,QAAQ,MAAM;IACzB,WAAU;cACX;IAEQ,CAAA,EACL,CAAA;GAEJ;;;;;ACtQV,MAAa,eAAuC,EAClD,2BAA2B,OAC5B;;;ACCD,SAAwB,SAAS;AAC/B,8BAA6B,aAAa;AAE1C,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,iBAAD,EAAmB,CAAA,EACnB,oBAAC,eAAD,EAAiB,CAAA,CACb"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as setSubgraphStatus, h as setSubgraphName } from "./utils-
|
|
1
|
+
import { g as setSubgraphStatus, h as setSubgraphName } from "./utils-CkxGmQ2_.js";
|
|
2
2
|
import { StatusPill } from "./editors/components/index.js";
|
|
3
|
-
import { t as useDebounce } from "./hooks-
|
|
4
|
-
import { r as useSelectedSubgraphModuleDocument } from "./useVetraDocument-
|
|
3
|
+
import { t as useDebounce } from "./hooks-BIgFcbaF.js";
|
|
4
|
+
import { r as useSelectedSubgraphModuleDocument } from "./useVetraDocument-BlLdlhrQ.js";
|
|
5
5
|
import { useSetPHDocumentEditorConfig } from "@powerhousedao/reactor-browser";
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
7
7
|
import { twMerge } from "tailwind-merge";
|
|
@@ -88,4 +88,4 @@ function Editor() {
|
|
|
88
88
|
//#endregion
|
|
89
89
|
export { Editor as default };
|
|
90
90
|
|
|
91
|
-
//# sourceMappingURL=editor-
|
|
91
|
+
//# sourceMappingURL=editor-_0gdltOt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-
|
|
1
|
+
{"version":3,"file":"editor-_0gdltOt.js","names":[],"sources":["../editors/subgraph-editor/components/SubgraphEditorForm.tsx","../editors/subgraph-editor/config.ts","../editors/subgraph-editor/editor.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { twMerge } from \"tailwind-merge\";\nimport { StatusPill } from \"../../components/index.js\";\nimport { useDebounce } from \"../../hooks/index.js\";\n\nexport interface SubgraphEditorFormProps {\n subgraphName?: string;\n status?: string;\n onNameChange?: (name: string) => void;\n onConfirm?: () => void;\n}\n\nexport const SubgraphEditorForm: React.FC<SubgraphEditorFormProps> = ({\n subgraphName: initialSubgraphName = \"\",\n status = \"DRAFT\",\n onNameChange,\n onConfirm,\n}) => {\n const [subgraphName, setSubgraphName] = useState(initialSubgraphName);\n const [isConfirmed, setIsConfirmed] = useState(false);\n\n // Use the debounce hook for name changes\n useDebounce(subgraphName, onNameChange, 300);\n\n // Update local state when initialSubgraphName changes\n useEffect(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setSubgraphName(initialSubgraphName);\n }, [initialSubgraphName]);\n\n // Reset confirmation state if status changes back to DRAFT\n useEffect(() => {\n if (status === \"DRAFT\") {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setIsConfirmed(false);\n }\n }, [status]);\n\n // Check if form should be read-only\n const isReadOnly = isConfirmed || status === \"CONFIRMED\";\n\n const handleConfirm = () => {\n if (subgraphName.trim()) {\n setIsConfirmed(true); // Immediate UI update\n onConfirm?.();\n }\n };\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-medium text-foreground\">\n Subgraph Configuration\n </h2>\n <StatusPill\n status={status === \"CONFIRMED\" ? \"confirmed\" : \"draft\"}\n label={status === \"CONFIRMED\" ? \"Confirmed\" : \"Draft\"}\n />\n </div>\n\n {/* Subgraph Name Field */}\n <div>\n <label\n htmlFor=\"subgraph-name\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n Subgraph Name\n </label>\n <input\n id=\"subgraph-name\"\n type=\"text\"\n value={subgraphName}\n onChange={(e) => setSubgraphName(e.target.value)}\n disabled={isReadOnly}\n className={twMerge(\n \"w-full rounded-md border border-border px-3 py-2 text-foreground placeholder:text-muted-foreground focus:border-transparent focus:ring-2 focus:ring-ring focus:outline-none disabled:disabled-effect\",\n isReadOnly ? \"cursor-not-allowed bg-muted\" : \"\",\n )}\n placeholder=\"Enter subgraph name\"\n />\n </div>\n\n {/* Confirm Button - only show if not in read-only mode */}\n {!isReadOnly && (\n <div>\n <button\n onClick={handleConfirm}\n disabled={!subgraphName.trim()}\n className=\"rounded-md bg-primary px-4 py-2 text-primary-foreground hover:hover-effect focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:disabled-effect\"\n >\n Confirm\n </button>\n </div>\n )}\n </div>\n );\n};\n","import type { PHDocumentEditorConfig } from \"@powerhousedao/reactor-browser\";\n\nexport const editorConfig: PHDocumentEditorConfig = {\n isExternalControlsEnabled: false,\n};\n","import { DocumentToolbar } from \"@powerhousedao/design-system/connect\";\nimport { useSetPHDocumentEditorConfig } from \"@powerhousedao/reactor-browser\";\nimport {\n setSubgraphName,\n setSubgraphStatus,\n} from \"@powerhousedao/vetra/document-models/subgraph-module\";\nimport { useCallback } from \"react\";\nimport { useSelectedSubgraphModuleDocument } from \"../hooks/useVetraDocument.js\";\nimport { SubgraphEditorForm } from \"./components/SubgraphEditorForm.js\";\nimport { editorConfig } from \"./config.js\";\n\nexport default function Editor() {\n useSetPHDocumentEditorConfig(editorConfig);\n const [document, dispatch] = useSelectedSubgraphModuleDocument();\n\n const onNameChange = useCallback(\n (name: string) => {\n if (name === document.state.global.name) return;\n dispatch(setSubgraphName({ name }));\n },\n [document.state.global.name, dispatch],\n );\n\n const onConfirm = useCallback(() => {\n dispatch(setSubgraphStatus({ status: \"CONFIRMED\" }));\n }, [dispatch]);\n\n return (\n <div className=\"bg-background p-6\">\n <DocumentToolbar />\n <SubgraphEditorForm\n subgraphName={document.state.global.name ?? \"\"}\n status={document.state.global.status}\n onNameChange={onNameChange}\n onConfirm={onConfirm}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AAYA,MAAa,sBAAyD,EACpE,cAAc,sBAAsB,IACpC,SAAS,SACT,cACA,gBACI;CACJ,M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ACzC,WAAS,gBAAgB,EAAE,MAAM,CAAC,CAAC;IAErC,CAAC,SAAS,MAAM,OAAO,MAAM,SAAS,CACvC;CAED,MAAM,YAAY,kBAAkB;AAClC,WAAS,kBAAkB,EAAE,QAAQ,aAAa,CAAC,CAAC;IACnD,CAAC,SAAS,CAAC;AAEd,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,iBAAD,EAAmB,CAAA,EACnB,oBAAC,oBAAD;GACE,cAAc,SAAS,MAAM,OAAO,QAAQ;GAC5C,QAAQ,SAAS,MAAM,OAAO;GAChB;GACH;GACX,CAAA,CACE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useAvailableDocumentTypes, t as useDebounce } from "../../hooks-
|
|
1
|
+
import { n as useAvailableDocumentTypes, t as useDebounce } from "../../hooks-BIgFcbaF.js";
|
|
2
2
|
export { useAvailableDocumentTypes, useDebounce };
|
package/dist/editors/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DocumentEditorEditor, i as ProcessorModuleEditor, n as VetraDriveApp, o as AppEditor, r as SubgraphModuleEditor, t as VetraPackageEditor } from "../module-
|
|
1
|
+
import { a as DocumentEditorEditor, i as ProcessorModuleEditor, n as VetraDriveApp, o as AppEditor, r as SubgraphModuleEditor, t as VetraPackageEditor } from "../module-DXT-FMxU.js";
|
|
2
2
|
export { AppEditor, DocumentEditorEditor, ProcessorModuleEditor, SubgraphModuleEditor, VetraDriveApp, VetraPackageEditor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as logger } from "./logger-
|
|
1
|
+
import { t as logger } from "./logger-WHD0fyLm.js";
|
|
2
2
|
//#region processors/vetra-read-model/migrations.ts
|
|
3
3
|
async function up(db) {
|
|
4
4
|
await db.schema.createTable("vetra_package").addColumn("document_id", "varchar(255)", (col) => col.primaryKey()).addColumn("name", "varchar(255)").addColumn("description", "text").addColumn("category", "varchar(255)").addColumn("author_name", "varchar(255)").addColumn("author_website", "varchar(512)").addColumn("keywords", "text").addColumn("github_url", "varchar(512)").addColumn("npm_url", "varchar(512)").addColumn("drive_id", "varchar(255)").addColumn("last_operation_index", "integer", (col) => col.notNull()).addColumn("last_operation_hash", "varchar(255)", (col) => col.notNull()).addColumn("last_operation_timestamp", "timestamptz", (col) => col.notNull()).addColumn("created_at", "timestamptz", (col) => col.notNull().defaultTo("now()")).addColumn("updated_at", "timestamptz", (col) => col.notNull().defaultTo("now()")).ifNotExists().execute();
|
|
@@ -76,4 +76,4 @@ const vetraReadModelFactoryBuilder = (module) => {
|
|
|
76
76
|
//#endregion
|
|
77
77
|
export { VetraReadModelProcessor as n, vetraReadModelFactoryBuilder as t };
|
|
78
78
|
|
|
79
|
-
//# sourceMappingURL=factory-
|
|
79
|
+
//# sourceMappingURL=factory-5eiZohiv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory-
|
|
1
|
+
{"version":3,"file":"factory-5eiZohiv.js","names":[],"sources":["../processors/vetra-read-model/migrations.ts","../processors/vetra-read-model/processor.ts","../processors/vetra-read-model/factory.ts"],"sourcesContent":["import type { IRelationalDb } from \"@powerhousedao/shared/processors\";\n\nexport async function up(db: IRelationalDb<any>): Promise<void> {\n // Create vetra_package table to store VetraPackage document state\n await db.schema\n .createTable(\"vetra_package\")\n .addColumn(\"document_id\", \"varchar(255)\", (col) => col.primaryKey()) // VetraPackage state fields\n .addColumn(\"name\", \"varchar(255)\")\n .addColumn(\"description\", \"text\")\n .addColumn(\"category\", \"varchar(255)\")\n .addColumn(\"author_name\", \"varchar(255)\")\n .addColumn(\"author_website\", \"varchar(512)\")\n .addColumn(\"keywords\", \"text\") // JSON array of {id, label}\n .addColumn(\"github_url\", \"varchar(512)\")\n .addColumn(\"npm_url\", \"varchar(512)\")\n .addColumn(\"drive_id\", \"varchar(255)\")\n // Document metadata\n .addColumn(\"last_operation_index\", \"integer\", (col) => col.notNull())\n .addColumn(\"last_operation_hash\", \"varchar(255)\", (col) => col.notNull())\n .addColumn(\"last_operation_timestamp\", \"timestamptz\", (col) =>\n col.notNull(),\n )\n .addColumn(\"created_at\", \"timestamptz\", (col) =>\n col.notNull().defaultTo(\"now()\"),\n )\n .addColumn(\"updated_at\", \"timestamptz\", (col) =>\n col.notNull().defaultTo(\"now()\"),\n )\n .ifNotExists()\n .execute();\n\n // Create indexes for common queries\n await db.schema\n .createIndex(\"idx_vetra_package_document_id\")\n .on(\"vetra_package\")\n .column(\"document_id\")\n .ifNotExists()\n .execute();\n\n await db.schema\n .createIndex(\"idx_vetra_package_name\")\n .on(\"vetra_package\")\n .column(\"name\")\n .ifNotExists()\n .execute();\n\n await db.schema\n .createIndex(\"idx_vetra_package_category\")\n .on(\"vetra_package\")\n .column(\"category\")\n .ifNotExists()\n .execute();\n}\n\nexport async function down(db: IRelationalDb<any>): Promise<void> {\n // Drop indexes first\n await db.schema.dropIndex(\"idx_vetra_package_category\").ifExists().execute();\n await db.schema.dropIndex(\"idx_vetra_package_name\").ifExists().execute();\n await db.schema\n .dropIndex(\"idx_vetra_package_document_id\")\n .ifExists()\n .execute();\n\n // Drop table\n await db.schema.dropTable(\"vetra_package\").ifExists().execute();\n}\n","import type {\n IProcessor,\n OperationWithContext,\n} from \"@powerhousedao/reactor-browser\";\nimport type { Kysely } from \"kysely\";\nimport type { VetraPackageState } from \"../../document-models/vetra-package/v1/gen/schema/types.js\";\nimport { logger } from \"../codegen/logger.js\";\nimport { type DB } from \"./schema.js\";\n\ninterface VetraPackageGlobalState extends VetraPackageState {}\n\nexport class VetraReadModelProcessor implements IProcessor {\n private relationalDb: Kysely<DB>;\n\n constructor(relationalDb: Kysely<DB>) {\n this.relationalDb = relationalDb;\n }\n\n async onOperations(operations: OperationWithContext[]): Promise<void> {\n logger.info(\">>> VetraReadModelProcessor.onOperations()\");\n if (operations.length === 0) return;\n\n for (const { operation, context } of operations) {\n if (context.documentType !== \"powerhouse/package\") continue;\n\n const state = context.resultingState\n ? (JSON.parse(context.resultingState) as VetraPackageGlobalState)\n : undefined;\n\n const getString = (val: unknown): string | null =>\n typeof val === \"string\" ? val : null;\n\n const now = new Date();\n const operationTimestamp = new Date(\n parseInt(operation.timestampUtcMs, 10),\n );\n\n await this.relationalDb\n .insertInto(\"vetra_package\")\n .values({\n document_id: context.documentId,\n name: getString(state?.name),\n description: getString(state?.description),\n category: getString(state?.category),\n author_name: getString(state?.author?.name),\n author_website: getString(state?.author?.website),\n keywords: state?.keywords ? JSON.stringify(state.keywords) : null,\n github_url: getString(state?.githubUrl),\n npm_url: getString(state?.npmUrl),\n last_operation_index: operation.index,\n last_operation_hash: operation.hash,\n last_operation_timestamp: operationTimestamp,\n drive_id: \"\", // Not available in new format\n created_at: now,\n updated_at: now,\n })\n .onConflict((oc) =>\n oc.column(\"document_id\").doUpdateSet({\n name: getString(state?.name),\n description: getString(state?.description),\n category: getString(state?.category),\n author_name: getString(state?.author?.name),\n author_website: getString(state?.author?.website),\n keywords: state?.keywords ? JSON.stringify(state.keywords) : null,\n github_url: getString(state?.githubUrl),\n npm_url: getString(state?.npmUrl),\n last_operation_index: operation.index,\n last_operation_hash: operation.hash,\n last_operation_timestamp: operationTimestamp,\n updated_at: now,\n }),\n )\n .execute();\n }\n }\n\n async onDisconnect() {}\n}\n","import type {\n IProcessorHostModule,\n ProcessorFactoryBuilder,\n ProcessorRecord,\n} from \"@powerhousedao/reactor-browser\";\nimport type { PHDocumentHeader } from \"@powerhousedao/shared/document-model\";\nimport { up } from \"./migrations.js\";\nimport { VetraReadModelProcessor } from \"./processor.js\";\nimport type { DB } from \"./schema.js\";\n\nexport const vetraReadModelFactoryBuilder: ProcessorFactoryBuilder = (\n module: IProcessorHostModule,\n) => {\n return async (_driveHeader: PHDocumentHeader): Promise<ProcessorRecord[]> => {\n // Create namespace (same as legacy - all vetra packages share one namespace)\n const db = await module.relationalDb.createNamespace<DB>(\"vetra-packages\");\n\n // Run migrations (idempotent - uses ifNotExists)\n await up(db);\n\n // Create the processor with the relational database\n const processor = new VetraReadModelProcessor(db);\n return [\n {\n processor,\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n documentType: [\"powerhouse/package\"],\n scope: [\"global\"],\n },\n },\n ];\n };\n};\n"],"mappings":";;AAEA,eAAsB,GAAG,IAAuC;AAE9D,OAAM,GAAG,OACN,YAAY,gBAAgB,CAC5B,UAAU,eAAe,iBAAiB,QAAQ,IAAI,YAAY,CAAC,CACnE,UAAU,QAAQ,eAAe,CACjC,UAAU,eAAe,OAAO,CAChC,UAAU,YAAY,eAAe,CACrC,UAAU,eAAe,eAAe,CACxC,UAAU,kBAAkB,eAAe,CAC3C,UAAU,YAAY,OAAO,CAC7B,UAAU,cAAc,eAAe,CACvC,UAAU,WAAW,eAAe,CACpC,UAAU,YAAY,eAAe,CAErC,UAAU,wBAAwB,YAAY,QAAQ,IAAI,SAAS,CAAC,CACpE,UAAU,uBAAuB,iBAAiB,QAAQ,IAAI,SAAS,CAAC,CACxE,UAAU,4BAA4B,gBAAgB,QACrD,IAAI,SAAS,CACd,CACA,UAAU,cAAc,gBAAgB,QACvC,IAAI,SAAS,CAAC,UAAU,QAAQ,CACjC,CACA,UAAU,cAAc,gBAAgB,QACvC,IAAI,SAAS,CAAC,UAAU,QAAQ,CACjC,CACA,aAAa,CACb,SAAS;AAGZ,OAAM,GAAG,OACN,YAAY,gCAAgC,CAC5C,GAAG,gBAAgB,CACnB,OAAO,cAAc,CACrB,aAAa,CACb,SAAS;AAEZ,OAAM,GAAG,OACN,YAAY,yBAAyB,CACrC,GAAG,gBAAgB,CACnB,OAAO,OAAO,CACd,aAAa,CACb,SAAS;AAEZ,OAAM,GAAG,OACN,YAAY,6BAA6B,CACzC,GAAG,gBAAgB,CACnB,OAAO,WAAW,CAClB,aAAa,CACb,SAAS;;;;ACxCd,IAAa,0BAAb,MAA2D;CACzD;CAEA,YAAY,cAA0B;AACpC,OAAK,eAAe;;CAGtB,MAAM,aAAa,YAAmD;AACpE,SAAO,KAAK,6CAA6C;AACz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AAe;;;;AClEvB,MAAa,gCACX,WACG;AACH,QAAO,OAAO,iBAA+D;EAE3E,MAAM,KAAK,MAAM,OAAO,aAAa,gBAAoB,iBAAiB;AAG1E,QAAM,GAAG,GAAG;AAIZ,SAAO,CACL;GACE,WAHc,IAAI,wBAAwB,GAAG;GAI7C,QAAQ;IACN,QAAQ,CAAC,OAAO;IAChB,YAAY,CAAC,IAAI;IACjB,cAAc,CAAC,qBAAqB;IACpC,OAAO,CAAC,SAAS;IAClB;GACF,CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as logger } from "./logger-
|
|
1
|
+
import { t as logger } from "./logger-WHD0fyLm.js";
|
|
2
2
|
import { VETRA_PROCESSOR_CONFIG_KEY } from "@powerhousedao/config";
|
|
3
3
|
//#region processors/codegen/factory.ts
|
|
4
4
|
/**
|
|
@@ -26,7 +26,7 @@ const codegenFactoryBuilder = (module) => {
|
|
|
26
26
|
const [{ buildTsMorphProject }, { getConfig }, { CodegenProcessor }] = await Promise.all([
|
|
27
27
|
import("@powerhousedao/codegen/utils"),
|
|
28
28
|
import("@powerhousedao/config/node"),
|
|
29
|
-
import("./processor-
|
|
29
|
+
import("./processor-trJFuoHh.js").then((n) => n.n)
|
|
30
30
|
]);
|
|
31
31
|
const config = getConfig();
|
|
32
32
|
const cwd = process.cwd();
|
|
@@ -51,4 +51,4 @@ const codegenFactoryBuilder = (module) => {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { codegenFactoryBuilder as t };
|
|
53
53
|
|
|
54
|
-
//# sourceMappingURL=factory-
|
|
54
|
+
//# sourceMappingURL=factory-DMl8eB3P.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory-
|
|
1
|
+
{"version":3,"file":"factory-DMl8eB3P.js","names":[],"sources":["../processors/codegen/factory.ts"],"sourcesContent":["import type { VetraProcessorConfigType } from \"@powerhousedao/config\";\nimport { VETRA_PROCESSOR_CONFIG_KEY } from \"@powerhousedao/config\";\nimport type {\n IProcessorHostModule,\n ProcessorFactoryBuilder,\n ProcessorRecord,\n} from \"@powerhousedao/reactor-browser\";\nimport type { PHDocumentHeader } from \"@powerhousedao/shared/document-model\";\nimport { logger } from \"./logger.js\";\n\n/**\n * Determines if a drive header matches the Vetra drive criteria.\n * @param driveHeader - The drive header to check\n * @param explicitDriveId - Optional explicit drive ID from config (if set, uses exact match)\n * @returns true if the drive is a Vetra drive, false otherwise\n */\nfunction isDriveVetra(\n driveHeader: PHDocumentHeader,\n driveIdFromConfig?: string,\n): boolean {\n // If explicit drive ID is configured, use exact match\n if (driveIdFromConfig) {\n return (\n driveHeader.slug === driveIdFromConfig ||\n driveHeader.id === driveIdFromConfig\n );\n }\n\n // Otherwise, check if slug/id matches Vetra pattern\n // Matches \"vetra\" exactly or IDs starting with \"vetra-\" (case-insensitive)\n const matchesPattern = (identifier: string): boolean => {\n const lower = identifier.toLowerCase();\n return lower === \"vetra\" || lower.startsWith(\"vetra-\");\n };\n\n return matchesPattern(driveHeader.slug) || matchesPattern(driveHeader.id);\n}\n\nexport const codegenFactoryBuilder: ProcessorFactoryBuilder = (\n module: IProcessorHostModule,\n) => {\n return async (driveHeader: PHDocumentHeader): Promise<ProcessorRecord[]> => {\n const processorsConfig = module.config ?? new Map<string, unknown>();\n const vetraConfig = processorsConfig.get(VETRA_PROCESSOR_CONFIG_KEY) as\n | VetraProcessorConfigType\n | undefined;\n\n // Exit early if it's not a vetra drive\n if (!isDriveVetra(driveHeader, vetraConfig?.driveId)) {\n logger.debug(\n `Drive ${driveHeader.slug} is not a Vetra drive, skipping codegen processor`,\n );\n return [];\n }\n\n logger.info(\n `Drive ${driveHeader.slug} is a Vetra drive, using codegen processor`,\n );\n\n // Lazy-load codegen only once a Vetra drive is confirmed.\n const [{ buildTsMorphProject }, { getConfig }, { CodegenProcessor }] =\n await Promise.all([\n import(\"@powerhousedao/codegen/utils\"),\n import(\"@powerhousedao/config/node\"),\n import(\"./processor.js\"),\n ]);\n\n const config = getConfig();\n const cwd = process.cwd();\n\n /* Use one instance of ts-morph project, which handles race conditions */\n const project = buildTsMorphProject(cwd);\n const processor = new CodegenProcessor(\n project,\n config,\n cwd,\n vetraConfig?.interactive,\n );\n return [\n {\n processor,\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n documentType: [\n \"powerhouse/document-model\",\n \"powerhouse/package\",\n \"powerhouse/document-editor\",\n \"powerhouse/subgraph\",\n \"powerhouse/processor\",\n \"powerhouse/app\",\n ],\n scope: [\"global\"],\n },\n },\n ];\n };\n};\n"],"mappings":";;;;;;;;;AAgBA,SAAS,aACP,aACA,mBACS;AAET,KAAI,kBACF,QACE,YAAY,SAAS,qBACrB,YAAY,OAAO;CAMvB,MAAM,kBAAkB,eAAgC;EACtD,MAAM,QAAQ,WAAW,aAAa;AACtC,SAAO,UAAU,WAAW,MAAM,WAAW,SAAS;;AAGxD,QAAO,eAAe,YAAY,KAAK,IAAI,eAAe,YAAY,GAAG;;AAG3E,MAAa,yBACX,WACG;AACH,QAAO,OAAO,gBAA8D;EAE1E,MAAM,eADmB,OAAO,0BAAU,IAAI,KAAsB,EAC/B,IAAI,2BAA2B;AAKpE,MAAI,CAAC,aAAa,aAAa,aAAa,QAAQ,EAAE;AACpD,UAAO,MACL,SAAS,YAAY,KAAK,mDAC3B;AACD,UAAO,EAAE;;AAGX,SAAO,KACL,SAAS,YAAY,KAAK,4CAC3B;EAGD,MAAM,CAAC,EAAE,uBAAuB,EAAE,aAAa,EAAE,sBAC/C,MAAM,QAAQ,IAAI;GAChB,OAAO;GACP,OAAO;GACP,OAAO,2BAAA,MAAA,MAAA,EAAA,EAAA;GACR,CAAC;EAEJ,MAAM,SAAS,WAAW;EAC1B,MAAM,MAAM,QAAQ,KAAK;AAUzB,SAAO,CACL;GACE,WARc,IAAI,iBADN,oBAAoB,IAAI,EAGtC,QACA,KACA,aAAa,YACd;GAIG,QAAQ;IACN,QAAQ,CAAC,OAAO;IAChB,YAAY,CAAC,IAAI;IACjB,cAAc;KACZ;KACA;KACA;KACA;KACA;KACA;KACD;IACD,OAAO,CAAC,SAAS;IAClB;GACF,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-
|
|
1
|
+
{"version":3,"file":"hooks-BIgFcbaF.js","names":[],"sources":["../editors/hooks/useAvailableDocumentTypes.ts","../editors/hooks/useDebounce.ts"],"sourcesContent":["import {\n useDocumentsInSelectedDrive,\n useSupportedDocumentTypesInReactor,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n DocumentModelDocument,\n PHDocument,\n} from \"@powerhousedao/shared/document-model\";\n\nfunction isDocumentModelDocument(\n document: PHDocument,\n): document is DocumentModelDocument {\n return document.header.documentType === \"powerhouse/document-model\";\n}\n\nexport function useAvailableDocumentTypes(\n onlyDocumentTypesFromDriveDocuments = false,\n): string[] {\n const supportedDocumentTypes = useSupportedDocumentTypesInReactor() ?? [];\n const documents = useDocumentsInSelectedDrive() ?? [];\n const documentModelDocumentsInSelectedDrive = documents.filter(\n isDocumentModelDocument,\n );\n const documentTypesFromDocumentModelDocuments =\n documentModelDocumentsInSelectedDrive.map((doc) => doc.state.global.id);\n\n if (onlyDocumentTypesFromDriveDocuments)\n return [...new Set(documentTypesFromDocumentModelDocuments)];\n\n return [\n ...new Set([\n ...supportedDocumentTypes,\n ...documentTypesFromDocumentModelDocuments,\n ]),\n ];\n}\n","import { useEffect } from \"react\";\n\n/**\n * Reusable debounce hook that calls a callback function after a specified delay\n * when the value changes. Useful for API calls, search inputs, etc.\n *\n * @param value - The value to debounce\n * @param callback - Function to call with the debounced value (optional)\n * @param delay - Delay in milliseconds\n */\nexport function useDebounce<T>(\n value: T,\n callback: ((value: T) => void) | undefined,\n delay: number,\n) {\n useEffect(() => {\n if (!callback) return;\n\n const timer = setTimeout(() => {\n callback(value);\n }, delay);\n\n return () => clearTimeout(timer);\n }, [value, callback, delay]);\n}\n"],"mappings":";;;AASA,SAAS,wBACP,UACmC;AACnC,QAAO,SAAS,OAAO,iBAAiB;;AAG1C,SAAgB,0BACd,sCAAsC,OAC5B;CACV,MAAM,yBAAyB,oCAAoC,IAAI,EAAE;CAKzE,MAAM,2CAJY,6BAA6B,IAAI,EAAE,EACG,OACtD,wBACD,CAEuC,KAAK,QAAQ,IAAI,MAAM,OAAO,GAAG;AAEzE,KAAI,oCACF,QAAO,CAAC,GAAG,IAAI,IAAI,wCAAwC,CAAC;AAE9D,QAAO,CACL,GAAG,IAAI,IAAI,CACT,GAAG,wBACH,GAAG,wCACJ,CAAC,CACH;;;;;;;;;;;;ACxBH,SAAgB,YACd,OACA,UACA,OACA;AACA,iBAAgB;AACd,MAAI,CAAC,SAAU;EAEf,MAAM,QAAQ,iBAAiB;AAC7B,YAAS,MAAM;KACd,MAAM;AAET,eAAa,aAAa,MAAM;IAC/B;EAAC;EAAO;EAAU;EAAM,CAAC"}
|
|
@@ -354,4 +354,4 @@ declare const initialGlobalState: SubgraphModuleState;
|
|
|
354
354
|
declare const initialLocalState: SubgraphModuleLocalState;
|
|
355
355
|
//#endregion
|
|
356
356
|
export { StatusType as $, documentModel as A, SubgraphModuleDocument as B, SubgraphModuleDocumentHeaderSchema as C, assertIsSubgraphModuleState as D, assertIsSubgraphModuleDocument as E, SubgraphModuleBaseOperationsOperations as F, InputMaybe as G, SubgraphModulePHState as H, SubgraphModuleAction as I, MakeOptional as J, MakeEmpty as K, SetSubgraphNameAction as L, setSubgraphName as M, setSubgraphStatus as N, isSubgraphModuleDocument as O, SubgraphModuleController as P, SetSubgraphStatusInput as Q, SetSubgraphStatusAction as R, subgraphModuleDocumentType as S, SubgraphModulePHStateSchema as T, Exact as U, SubgraphModuleLocalState as V, Incremental as W, Scalars as X, Maybe as Y, SetSubgraphNameInput as Z, createState$1 as _, StatusTypeSchema as a, defaultLocalState as b, isDefinedNonNullAny as c, SubgraphModule as d, SubgraphModuleState as et, useSelectedSubgraphModuleDocument as f, actions as g, useSubgraphModuleDocumentsInSelectedFolder as h, SetSubgraphStatusInputSchema as i, creators_d_exports as j, isSubgraphModuleState as k, reducer as l, useSubgraphModuleDocumentsInSelectedDrive as m, initialLocalState as n, SubgraphModuleStateSchema as o, useSubgraphModuleDocumentById as p, MakeMaybe as q, SetSubgraphNameInputSchema as r, definedNonNullAnySchema as s, initialGlobalState as t, utils as u, createSubgraphModuleDocument as v, SubgraphModuleDocumentSchema as w, defaultPHState as x, defaultGlobalState as y, SubgraphModuleBaseOperationsAction as z };
|
|
357
|
-
//# sourceMappingURL=index-
|
|
357
|
+
//# sourceMappingURL=index-B5ijieNt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-B5ijieNt.d.ts","names":[],"sources":["../document-models/subgraph-module/v1/gen/schema/types.ts","../document-models/subgraph-module/v1/gen/types.ts","../document-models/subgraph-module/v1/gen/base-operations/actions.ts","../document-models/subgraph-module/v1/gen/actions.ts","../document-models/subgraph-module/v1/gen/base-operations/operations.ts","../document-models/subgraph-module/v1/gen/controller.ts","../document-models/subgraph-module/v1/gen/base-operations/creators.ts","../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/gen/document-schema.ts","../document-models/subgraph-module/v1/gen/document-type.ts","../document-models/subgraph-module/v1/gen/ph-factories.ts","../document-models/subgraph-module/v1/actions.ts","../document-models/subgraph-module/v1/hooks.ts","../document-models/subgraph-module/v1/module.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/gen/reducer.ts","../document-models/subgraph-module/v1/gen/schema/zod.ts","../document-models/subgraph-module/v1/gen/utils.ts"],"mappings":";;;;;;;KAAY,KAAA,MAAW,CAAA;AAAA,KACX,UAAA,MAAgB,CAAA;AAAA,KAChB,KAAA;EAAA,CAAmB,GAAA;AAAA,mBACjB,CAAA,GAAI,CAAA,CAAE,CAAA;AAAA,KAER,YAAA,oBAAgC,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBAC5C,CAAA,IAAK,K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AAA,OAAA;;;;iBAEb,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;AAAA,iBAOG,4BAAA,CAAA,GAAgC,GAAA,CAAE,SAAA,CAChD,UAAA,CAAW,sBAAA;AAAA,iBAOG,yBAAA,CAAA,GAA6B,GAAA,CAAE,SAAA,CAC7C,UAAA,CAAW,mBAAA;;;cCjBA,kBAAA,EAAoB,mBAAA;AAAA,cAIpB,iBAAA,EAAmB,wBAAA"}
|
|
@@ -390,4 +390,4 @@ declare const initialGlobalState: DocumentEditorState;
|
|
|
390
390
|
declare const initialLocalState: DocumentEditorLocalState;
|
|
391
391
|
//#endregion
|
|
392
392
|
export { Exact as $, assertIsDocumentEditorState as A, DocumentEditorBaseOperationsOperations as B, defaultLocalState as C, DocumentEditorDocumentSchema as D, DocumentEditorDocumentHeaderSchema as E, creators_d_exports as F, SetEditorNameAction as G, AddDocumentTypeAction as H, removeDocumentType as I, DocumentEditorLocalState as J, SetEditorStatusAction as K, setEditorName as L, isDocumentEditorState as M, documentModel as N, DocumentEditorPHStateSchema as O, addDocumentType as P, DocumentTypeItem as Q, setEditorStatus as R, defaultGlobalState as S, documentEditorDocumentType as T, DocumentEditorBaseOperationsAction as U, DocumentEditorAction as V, RemoveDocumentTypeAction as W, AddDocumentTypeInput as X, DocumentEditorPHState as Y, DocumentEditorState as Z, useDocumentEditorDocumentsInSelectedFolder as _, DocumentTypeItemSchema as a, Maybe as at, createDocumentEditorDocument as b, SetEditorStatusInputSchema as c, SetEditorNameInput as ct, isDefinedNonNullAny as d, Incremental as et, reducer as f, useDocumentEditorDocumentsInSelectedDrive as g, useDocumentEditorDocumentById as h, DocumentEditorStateSchema as i, MakeOptional as it, isDocumentEditorDocument as j, assertIsDocumentEditorDocument as k, StatusTypeSchema as l, SetEditorStatusInput as lt, DocumentEditor as m, initialLocalState as n, MakeEmpty as nt, RemoveDocumentTypeInputSchema as o, RemoveDocumentTypeInput as ot, utils as p, DocumentEditorDocument as q, AddDocumentTypeInputSchema as r, MakeMaybe as rt, SetEditorNameInputSchema as s, Scalars as st, initialGlobalState as t, InputMaybe as tt, definedNonNullAnySchema as u, StatusType as ut, useSelectedDocumentEditorDocument as v, defaultPHState as w, createState$1 as x, actions as y, DocumentEditorController as z };
|
|
393
|
-
//# sourceMappingURL=index-
|
|
393
|
+
//# sourceMappingURL=index-Dm_gN1DR.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Dm_gN1DR.d.ts","names":[],"sources":["../document-models/document-editor/v1/gen/schema/types.ts","../document-models/document-editor/v1/gen/types.ts","../document-models/document-editor/v1/gen/base-operations/actions.ts","../document-models/document-editor/v1/gen/actions.ts","../document-models/document-editor/v1/gen/base-operations/operations.ts","../document-models/document-editor/v1/gen/controller.ts","../document-models/document-editor/v1/gen/base-operations/creators.ts","../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/gen/document-schema.ts","../document-models/document-editor/v1/gen/document-type.ts","../document-models/document-editor/v1/gen/ph-factories.ts","../document-models/document-editor/v1/actions.ts","../document-models/document-editor/v1/hooks.ts","../document-models/document-editor/v1/module.ts","../document-models/document-editor/v1/utils.ts","../document-models/document-editor/v1/gen/reducer.ts","../document-models/document-editor/v1/gen/schema/zod.ts","../document-models/document-editor/v1/gen/utils.ts"],"mappings":";;;;;;;KAAY,KAAA,MAAW,CAAA;AAAA,KACX,UAAA,MAAgB,CAAA;AAAA,KAChB,KAAA;EAAA,CAAmB,GAAA;AAAA,mBACjB,CAAA,GAAI,CAAA,CAAE,CAAA;AAAA,KAER,YAAA,oBAAgC,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBAC5C,CAAA,IAAK,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEd,SAAA,oBAA6B,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBACzC,CAAA,GAAI,KAAA,CAAM,CAAA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9C,UAAA,CAAW,oBAAA;;;cClDA,kBAAA,EAAoB,mBAAA;AAAA,cAKpB,iBAAA,EAAmB,wBAAA"}
|
|
@@ -434,4 +434,4 @@ declare const initialGlobalState: ProcessorModuleState;
|
|
|
434
434
|
declare const initialLocalState: ProcessorModuleLocalState;
|
|
435
435
|
//#endregion
|
|
436
436
|
export { SetProcessorNameAction as $, ProcessorModuleDocumentSchema as A, removeDocumentType as B, createProcessorModuleDocument as C, defaultPHState as D, defaultLocalState as E, isProcessorModuleState as F, ProcessorModuleController as G, setProcessorName as H, documentModel as I, AddDocumentTypeAction as J, ProcessorModuleBaseOperationsOperations as K, addDocumentType as L, assertIsProcessorModuleDocument as M, assertIsProcessorModuleState as N, processorModuleDocumentType as O, isProcessorModuleDocument as P, RemoveProcessorAppAction as Q, addProcessorApp as R, actions as S, StatusType as St, defaultGlobalState as T, setProcessorStatus as U, removeProcessorApp as V, setProcessorType as W, ProcessorModuleBaseOperationsAction as X, AddProcessorAppAction as Y, RemoveDocumentTypeAction as Z, ProcessorModule as _, RemoveProcessorAppInput as _t, DocumentTypeItemSchema as a, AddDocumentTypeInput as at, useProcessorModuleDocumentsInSelectedFolder as b, SetProcessorStatusInput as bt, RemoveProcessorAppInputSchema as c, Exact as ct, SetProcessorTypeInputSchema as d, MakeEmpty as dt, SetProcessorStatusAction as et, StatusTypeSchema as f, MakeMaybe as ft, utils as g, RemoveDocumentTypeInput as gt, reducer as h, ProcessorModuleState as ht, AddProcessorAppInputSchema as i, ProcessorModulePHState as it, ProcessorModulePHStateSchema as j, ProcessorModuleDocumentHeaderSchema as k, SetProcessorNameInputSchema as l, Incremental as lt, isDefinedNonNullAny as m, Maybe as mt, initialLocalState as n, ProcessorModuleDocument as nt, ProcessorModuleStateSchema as o, AddProcessorAppInput as ot, definedNonNullAnySchema as p, MakeOptional as pt, ProcessorModuleAction as q, AddDocumentTypeInputSchema as r, ProcessorModuleLocalState as rt, RemoveDocumentTypeInputSchema as s, DocumentTypeItem as st, initialGlobalState as t, SetProcessorTypeAction as tt, SetProcessorStatusInputSchema as u, InputMaybe as ut, useProcessorModuleDocumentById as v, Scalars as vt, createState$1 as w, useSelectedProcessorModuleDocument as x, SetProcessorTypeInput as xt, useProcessorModuleDocumentsInSelectedDrive as y, SetProcessorNameInput as yt, creators_d_exports as z };
|
|
437
|
-
//# sourceMappingURL=index-
|
|
437
|
+
//# sourceMappingURL=index-SB-AtQdU.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-SB-AtQdU.d.ts","names":[],"sources":["../document-models/processor-module/v1/gen/schema/types.ts","../document-models/processor-module/v1/gen/types.ts","../document-models/processor-module/v1/gen/base-operations/actions.ts","../document-models/processor-module/v1/gen/actions.ts","../document-models/processor-module/v1/gen/base-operations/operations.ts","../document-models/processor-module/v1/gen/controller.ts","../document-models/processor-module/v1/gen/base-operations/creators.ts","../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/gen/document-schema.ts","../document-models/processor-module/v1/gen/document-type.ts","../document-models/processor-module/v1/gen/ph-factories.ts","../document-models/processor-module/v1/actions.ts","../document-models/processor-module/v1/hooks.ts","../document-models/processor-module/v1/module.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/gen/reducer.ts","../document-models/processor-module/v1/gen/schema/zod.ts","../document-models/processor-module/v1/gen/utils.ts"],"mappings":";;;;;;;KAAY,KAAA,MAAW,CAAA;AAAA,KACX,UAAA,MAAgB,CAAA;AAAA,KAChB,KAAA;EAAA,CAAmB,GAAA;AAAA,mBACjB,CAAA,GAAI,CAAA,CAAE,CAAA;AAAA,KAER,YAAA,oBAAgC,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBAC5C,CAAA,IAAK,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEd,SAAA,oBAA6B,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBACzC,CAAA,GAAI,KAA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AA;AAAA,iBAOG,2BAAA,CAAA,GAA+B,GAAA,CAAE,SAAA,CAC/C,UAAA,CAAW,qBAAA;AAAA,iBAOG,6BAAA,CAAA,GAAiC,GAAA,CAAE,SAAA,CACjD,UAAA,CAAW,uBAAA;AAAA,iBAOG,2BAAA,CAAA,GAA+B,GAAA,CAAE,SAAA,CAC/C,UAAA,CAAW,qBAAA;;;cC/EA,kBAAA,EAAoB,oBAAA;AAAA,cAOpB,iBAAA,EAAmB,yBAAA"}
|
|
@@ -421,4 +421,4 @@ declare const initialGlobalState: AppModuleState;
|
|
|
421
421
|
declare const initialLocalState: AppModuleLocalState;
|
|
422
422
|
//#endregion
|
|
423
423
|
export { SetAppStatusAction as $, assertIsAppModuleDocument as A, removeDocumentType as B, defaultGlobalState as C, AppModuleDocumentHeaderSchema as D, appModuleDocumentType as E, AppModuleDndOperationsOperations as F, AppModuleBaseOperationsOperations as G, setAppStatus as H, creators_d_exports as I, SetDragAndDropEnabledAction as J, AppModuleAction as K, setDragAndDropEnabled as L, isAppModuleDocument as M, isAppModuleState as N, AppModuleDocumentSchema as O, documentModel as P, SetAppNameAction as Q, addDocumentType as R, createState$1 as S, defaultPHState as T, setDocumentTypes as U, setAppName as V, AppModuleController as W, AppModuleBaseOperationsAction as X, AddDocumentTypeAction as Y, RemoveDocumentTypeAction as Z, useAppModuleDocumentsInSelectedDrive as _, SetDocumentTypesInput as _t, RemoveDocumentTypeInputSchema as a, AppModuleState as at, actions as b, SetDocumentTypesInputSchema as c, InputMaybe as ct, definedNonNullAnySchema as d, MakeOptional as dt, SetDocumentTypesAction as et, isDefinedNonNullAny as f, Maybe as ft, useAppModuleDocumentById as g, SetAppStatusInput as gt, AppModule as h, SetAppNameInput as ht, AppModuleStateSchema as i, AddDocumentTypeInput as it, assertIsAppModuleState as j, AppModulePHStateSchema as k, SetDragAndDropEnabledInputSchema as l, MakeEmpty as lt, utils as m, Scalars as mt, initialLocalState as n, AppModuleLocalState as nt, SetAppNameInputSchema as o, Exact as ot, reducer as p, RemoveDocumentTypeInput as pt, AppModuleDndOperationsAction as q, AddDocumentTypeInputSchema as r, AppModulePHState as rt, SetAppStatusInputSchema as s, Incremental as st, initialGlobalState as t, AppModuleDocument as tt, StatusTypeSchema as u, MakeMaybe as ut, useAppModuleDocumentsInSelectedFolder as v, SetDragAndDropEnabledInput as vt, defaultLocalState as w, createAppModuleDocument as x, useSelectedAppModuleDocument as y, StatusType as yt, creators_d_exports$1 as z };
|
|
424
|
-
//# sourceMappingURL=index-
|
|
424
|
+
//# sourceMappingURL=index-f_um1g-i.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-f_um1g-i.d.ts","names":[],"sources":["../document-models/app-module/v1/gen/schema/types.ts","../document-models/app-module/v1/gen/types.ts","../document-models/app-module/v1/gen/base-operations/actions.ts","../document-models/app-module/v1/gen/dnd-operations/actions.ts","../document-models/app-module/v1/gen/actions.ts","../document-models/app-module/v1/gen/base-operations/operations.ts","../document-models/app-module/v1/gen/controller.ts","../document-models/app-module/v1/gen/base-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/operations.ts","../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/gen/document-schema.ts","../document-models/app-module/v1/gen/document-type.ts","../document-models/app-module/v1/gen/ph-factories.ts","../document-models/app-module/v1/actions.ts","../document-models/app-module/v1/hooks.ts","../document-models/app-module/v1/module.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/gen/reducer.ts","../document-models/app-module/v1/gen/schema/zod.ts","../document-models/app-module/v1/gen/utils.ts"],"mappings":";;;;;;;KAAY,KAAA,MAAW,CAAA;AAAA,KACX,UAAA,MAAgB,CAAA;AAAA,KAChB,KAAA;EAAA,CAAmB,GAAA;AAAA,mBACjB,CAAA,GAAI,CAAA,CAAE,CAAA;AAAA,KAER,YAAA,oBAAgC,CAAA,IAAK,IAAA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;EAAA;;;;;;cCV71W,KAAA,EAAO,kBAAA,CAAmB,gBAAA;;;cC8F1B,OAAA,EAAS,OAAA,CAAQ,gBAAA;;;KC1FzB,UAAA,MAAgB,QAAA,eACP,CAAA,GAAI,GAAA,CAAE,OAAA,CAAQ,CAAA,CAAE,CAAA;AAAA,KAGzB,iBAAA;AAAA,cAEQ,mBAAA,GAAuB,CAAA,UAAS,CAAA,IAAK,iBAAA;AAAA,cAGrC,uBAAA,EAAuB,GAAA,CAAA,MAAA,GAAA,GAAA,CAAA,OAAA,CAAA,iBAAA,OAAA,GAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cAIvB,gBAAA,EAAgB,GAAA,CAAA,OAAA;;;;iBAEb,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;AAAA,iBAOG,oBAAA,CAAA,GAAwB,GAAA,CAAE,SAAA,CACxC,UAAA,CAAW,cAAA;AAAA,iBAWG,6BAAA,CAAA,GAAiC,GAAA,CAAE,SAAA,CACjD,UAAA,CAAW,uBAAA;AAAA,iBAOG,qBAAA,CAAA,GAAyB,GAAA,CAAE,SAAA,CACzC,UAAA,CAAW,eAAA;AAAA,iBAOG,uBAAA,CAAA,GAA2B,GAAA,CAAE,SAAA,CAC3C,UAAA,CAAW,iBAAA;AAAA,iBAOG,2BAAA,CAAA,GAA+B,GAAA,CAAE,SAAA,CAC/C,UAAA,CAAW,qBAAA;AAAA,iBAOG,gCAAA,CAAA,GAAoC,GAAA,CAAE,SAAA,CACpD,UAAA,CAAW,0BAAA;;;cCzDA,kBAAA,EAAoB,cAAA;AAAA,cAMpB,iBAAA,EAAmB,mBAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as SetAppStatusAction, J as SetDragAndDropEnabledAction, Q as SetAppNameAction, Y as AddDocumentTypeAction, Z as RemoveDocumentTypeAction, _t as SetDocumentTypesInput, et as SetDocumentTypesAction, gt as SetAppStatusInput, ht as SetAppNameInput, it as AddDocumentTypeInput, pt as RemoveDocumentTypeInput, rt as AppModulePHState, vt as SetDragAndDropEnabledInput } from "./index-
|
|
2
|
-
import { G as SetEditorNameAction, H as AddDocumentTypeAction$1, K as SetEditorStatusAction, W as RemoveDocumentTypeAction$1, X as AddDocumentTypeInput$1, Y as DocumentEditorPHState, ct as SetEditorNameInput, lt as SetEditorStatusInput, ot as RemoveDocumentTypeInput$1 } from "./index-
|
|
3
|
-
import { $ as SetProcessorNameAction, J as AddDocumentTypeAction$2, Q as RemoveProcessorAppAction, Y as AddProcessorAppAction, Z as RemoveDocumentTypeAction$2, _t as RemoveProcessorAppInput, at as AddDocumentTypeInput$2, bt as SetProcessorStatusInput, et as SetProcessorStatusAction, gt as RemoveDocumentTypeInput$2, it as ProcessorModulePHState, ot as AddProcessorAppInput, tt as SetProcessorTypeAction, xt as SetProcessorTypeInput, yt as SetProcessorNameInput } from "./index-
|
|
4
|
-
import { H as SubgraphModulePHState, L as SetSubgraphNameAction, Q as SetSubgraphStatusInput, R as SetSubgraphStatusAction, Z as SetSubgraphNameInput } from "./index-
|
|
5
|
-
import { At as SetPackageDescriptionAction, Dt as SetPackageAuthorNameAction, Et as SetPackageAuthorAction, Mt as SetPackageNameAction, Nt as SetPackageNpmUrlAction, Ot as SetPackageAuthorWebsiteAction, Tt as RemovePackageKeywordAction, _t as SetPackageCategoryInput, bt as SetPackageNameInput, ft as RemovePackageKeywordInput, gt as SetPackageAuthorWebsiteInput, ht as SetPackageAuthorNameInput, jt as SetPackageGithubUrlAction, kt as SetPackageCategoryAction, mt as SetPackageAuthorInput, nt as AddPackageKeywordInput, tt as VetraPackagePHState, vt as SetPackageDescriptionInput, wt as AddPackageKeywordAction, xt as SetPackageNpmUrlInput, yt as SetPackageGithubUrlInput } from "./module-
|
|
1
|
+
import { $ as SetAppStatusAction, J as SetDragAndDropEnabledAction, Q as SetAppNameAction, Y as AddDocumentTypeAction, Z as RemoveDocumentTypeAction, _t as SetDocumentTypesInput, et as SetDocumentTypesAction, gt as SetAppStatusInput, ht as SetAppNameInput, it as AddDocumentTypeInput, pt as RemoveDocumentTypeInput, rt as AppModulePHState, vt as SetDragAndDropEnabledInput } from "./index-f_um1g-i.js";
|
|
2
|
+
import { G as SetEditorNameAction, H as AddDocumentTypeAction$1, K as SetEditorStatusAction, W as RemoveDocumentTypeAction$1, X as AddDocumentTypeInput$1, Y as DocumentEditorPHState, ct as SetEditorNameInput, lt as SetEditorStatusInput, ot as RemoveDocumentTypeInput$1 } from "./index-Dm_gN1DR.js";
|
|
3
|
+
import { $ as SetProcessorNameAction, J as AddDocumentTypeAction$2, Q as RemoveProcessorAppAction, Y as AddProcessorAppAction, Z as RemoveDocumentTypeAction$2, _t as RemoveProcessorAppInput, at as AddDocumentTypeInput$2, bt as SetProcessorStatusInput, et as SetProcessorStatusAction, gt as RemoveDocumentTypeInput$2, it as ProcessorModulePHState, ot as AddProcessorAppInput, tt as SetProcessorTypeAction, xt as SetProcessorTypeInput, yt as SetProcessorNameInput } from "./index-SB-AtQdU.js";
|
|
4
|
+
import { H as SubgraphModulePHState, L as SetSubgraphNameAction, Q as SetSubgraphStatusInput, R as SetSubgraphStatusAction, Z as SetSubgraphNameInput } from "./index-B5ijieNt.js";
|
|
5
|
+
import { At as SetPackageDescriptionAction, Dt as SetPackageAuthorNameAction, Et as SetPackageAuthorAction, Mt as SetPackageNameAction, Nt as SetPackageNpmUrlAction, Ot as SetPackageAuthorWebsiteAction, Tt as RemovePackageKeywordAction, _t as SetPackageCategoryInput, bt as SetPackageNameInput, ft as RemovePackageKeywordInput, gt as SetPackageAuthorWebsiteInput, ht as SetPackageAuthorNameInput, jt as SetPackageGithubUrlAction, kt as SetPackageCategoryAction, mt as SetPackageAuthorInput, nt as AddPackageKeywordInput, tt as VetraPackagePHState, vt as SetPackageDescriptionInput, wt as AddPackageKeywordAction, xt as SetPackageNpmUrlInput, yt as SetPackageGithubUrlInput } from "./module-ciAK1LUC.js";
|
|
6
6
|
import * as document_model0 from "document-model";
|
|
7
|
-
import { EditorModule } from "document-model";
|
|
7
|
+
import { EditorModule, UpgradeManifest } from "document-model";
|
|
8
8
|
import { Manifest } from "@powerhousedao/shared/document-model";
|
|
9
9
|
|
|
10
10
|
//#region document-models/document-models.d.ts
|
|
@@ -143,11 +143,14 @@ declare const documentModels: readonly [{
|
|
|
143
143
|
readonly documentModel: document_model0.DocumentModelPHState;
|
|
144
144
|
}];
|
|
145
145
|
//#endregion
|
|
146
|
+
//#region document-models/upgrade-manifests.d.ts
|
|
147
|
+
declare const upgradeManifests: UpgradeManifest<readonly number[]>[];
|
|
148
|
+
//#endregion
|
|
146
149
|
//#region editors/editors.d.ts
|
|
147
150
|
declare const editors: EditorModule[];
|
|
148
151
|
//#endregion
|
|
149
152
|
//#region index.d.ts
|
|
150
153
|
declare const manifest: Manifest;
|
|
151
154
|
//#endregion
|
|
152
|
-
export { documentModels, editors, manifest };
|
|
155
|
+
export { documentModels, editors, manifest, upgradeManifests };
|
|
153
156
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../document-models/document-models.ts","../editors/editors.ts","../index.ts"],"mappings":";;;;;;;;;;;;;;cAWa,cAAA;EAAA;4CAMH,gBAAA;EAAA;4BAbe,KAAA,iCAAiC,2BAAA;iBAc1D,KAAA,EAd0D,eAAA,KAcpC,gBAAA;mBAAwK,KAAA,EAAxK,iBAAA,KAAgM,kBAAA;sBAAiL,KAAA,EAAjL,oBAAA,KAA4M,qBAAA;yBAA6L,KAAA,EAA7L,uBAAA,KAA2N,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAwuU,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cA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CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA,mDAAA,qBAAA;EAAA;;;;;qBAAz5V,KAAA,0BAA0B,oBAAA;4BAA6L,KAAA,EAA7L,0BAAA,KAA8N,2BAAA;yBAA+M,KAAA,EAA/M,uBAAA,KAA6O,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;2BAAkM,KAAA,EAAlM,yBAAA,KAAkO,0BAAA;8BAAkN,KAAA,EAAlN,4BAAA,KAAqP,6BAAA;wBAAqN,KAAA,EAArN,sBAAA,KAAkP,uBAAA;2BAAqM,KAAA,EAArM,yBAAA,KAAqO,0BAAA;0BAA6M,KAAA,EAA7M,wBAAA,KAA4O,yBAAA;uBAAwM,KAAA,EAAxM,qBAAA,KAAoO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAigR,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA,mDAAA,mBAAA;EAAA;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"mappings":";;;;;;;;;;;;;;cAWa,cAAA;EAAA;4CAMH,gBAAA;EAAA;4BAbe,KAAA,iCAAiC,2BAAA;iBAc1D,KAAA,EAd0D,eAAA,KAcpC,gBAAA;mBAAwK,KAAA,EAAxK,iBAAA,KAAgM,kBAAA;sBAAiL,KAAA,EAAjL,oBAAA,KAA4M,qBAAA;yBAA6L,KAAA,EAA7L,uBAAA,KAA2N,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAwuU,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eA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UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA,mDAAA,qBAAA;EAAA;;;;;qBAAz5V,KAAA,0BAA0B,oBAAA;4BAA6L,KAAA,EAA7L,0BAAA,KAA8N,2BAAA;yBAA+M,KAAA,EAA/M,uBAAA,KAA6O,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;2BAAkM,KAAA,EAAlM,yBAAA,KAAkO,0BAAA;8BAAkN,KAAA,EAAlN,4BAAA,KAAqP,6BAAA;wBAAqN,KAAA,EAArN,sBAAA,KAAkP,uBAAA;2BAAqM,KAAA,EAArM,yBAAA,KAAqO,0BAAA;0BAA6M,KAAA,EAA7M,wBAAA,KAA4O,yBAAA;uBAAwM,KAAA,EAAxM,qBAAA,KAAoO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAigR,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA,mDAAA,mBAAA;EAAA;;;;cCP74W,gBAAA,EAAkB,eAAA;;;cCClB,OAAA,EAAS,YAAA;;;cCPT,QAAA,EAAU,QAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import powerhouse_manifest_default from "./powerhouse.manifest.js";
|
|
2
2
|
import { t as AppModule } from "./module-CRq_lUkG.js";
|
|
3
|
-
import { t as DocumentEditor } from "./module-
|
|
4
|
-
import { t as ProcessorModule } from "./module-
|
|
5
|
-
import { t as SubgraphModule } from "./module-
|
|
6
|
-
import { t as VetraPackage } from "./module-
|
|
7
|
-
import {
|
|
3
|
+
import { t as DocumentEditor } from "./module-Chqkdq4U.js";
|
|
4
|
+
import { t as ProcessorModule } from "./module-bKT_e3CH.js";
|
|
5
|
+
import { t as SubgraphModule } from "./module-Bx1OEHxF.js";
|
|
6
|
+
import { t as VetraPackage } from "./module-CRfHlbnq.js";
|
|
7
|
+
import { t as appModuleUpgradeManifest } from "./upgrade-manifest-Ck3Mgwhc.js";
|
|
8
|
+
import { t as documentEditorUpgradeManifest } from "./upgrade-manifest-BGuy0v65.js";
|
|
9
|
+
import { t as processorModuleUpgradeManifest } from "./upgrade-manifest-NaS4SWk9.js";
|
|
10
|
+
import { t as subgraphModuleUpgradeManifest } from "./upgrade-manifest-XdOLymuP.js";
|
|
11
|
+
import { t as vetraPackageUpgradeManifest } from "./upgrade-manifest-OlS1ALVv.js";
|
|
12
|
+
import { a as DocumentEditorEditor, i as ProcessorModuleEditor, n as VetraDriveApp, o as AppEditor, r as SubgraphModuleEditor, t as VetraPackageEditor } from "./module-DXT-FMxU.js";
|
|
8
13
|
//#region document-models/document-models.ts
|
|
9
14
|
/**
|
|
10
15
|
* WARNING: DO NOT EDIT
|
|
@@ -18,6 +23,15 @@ const documentModels = [
|
|
|
18
23
|
VetraPackage
|
|
19
24
|
];
|
|
20
25
|
//#endregion
|
|
26
|
+
//#region document-models/upgrade-manifests.ts
|
|
27
|
+
const upgradeManifests = [
|
|
28
|
+
appModuleUpgradeManifest,
|
|
29
|
+
documentEditorUpgradeManifest,
|
|
30
|
+
processorModuleUpgradeManifest,
|
|
31
|
+
subgraphModuleUpgradeManifest,
|
|
32
|
+
vetraPackageUpgradeManifest
|
|
33
|
+
];
|
|
34
|
+
//#endregion
|
|
21
35
|
//#region editors/editors.ts
|
|
22
36
|
const editors = [
|
|
23
37
|
AppEditor,
|
|
@@ -31,6 +45,6 @@ const editors = [
|
|
|
31
45
|
//#region index.ts
|
|
32
46
|
const manifest = powerhouse_manifest_default;
|
|
33
47
|
//#endregion
|
|
34
|
-
export { documentModels, editors, manifest };
|
|
48
|
+
export { documentModels, editors, manifest, upgradeManifests };
|
|
35
49
|
|
|
36
50
|
//# sourceMappingURL=index.js.map
|