@powerhousedao/vetra 6.2.0-dev.3 → 6.2.0-dev.30
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 +6 -91
- package/dist/codegen/index.d.ts.map +1 -1
- package/dist/codegen/index.js +2 -632
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/spec.d.ts +2 -0
- package/dist/codegen/spec.js +2 -0
- package/dist/{connect-Bbz4cL8F.js → connect-CjGVphlq.js} +1 -1
- package/dist/{connect-Bbz4cL8F.js.map → connect-CjGVphlq.js.map} +1 -1
- package/dist/document-models/app-module/index.d.ts +1 -1
- package/dist/document-models/document-editor/index.d.ts +1 -1
- package/dist/document-models/index.d.ts +5 -5
- package/dist/document-models/processor-module/index.d.ts +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +1 -1
- package/dist/document-models/vetra-package/index.d.ts +1 -1
- package/dist/{editor-Dz3cXtzn.js → editor-BmYxPe_4.js} +56 -56
- package/dist/editor-BmYxPe_4.js.map +1 -0
- package/dist/{editor-BamOOi9L.js → editor-CtN1Sy88.js} +11 -11
- package/dist/editor-CtN1Sy88.js.map +1 -0
- package/dist/{editor-je4HFt2f.js → editor-De5XaIXa.js} +32 -32
- package/dist/editor-De5XaIXa.js.map +1 -0
- package/dist/{editor-D-QqGEkw.js → editor-bA5TTxfU.js} +15 -15
- package/dist/editor-bA5TTxfU.js.map +1 -0
- package/dist/{editor-rYCWiter.js → editor-fNaLqnMc.js} +8 -8
- package/dist/editor-fNaLqnMc.js.map +1 -0
- package/dist/{editor-CM9tpwzR.js → editor-saGUzfCl.js} +17 -17
- package/dist/editor-saGUzfCl.js.map +1 -0
- package/dist/editors/components/index.js +1 -1
- package/dist/editors/components/index.js.map +1 -1
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/{factory-DcPyqWkY.js → factory-B6hBnFAf.js} +3 -3
- package/dist/{factory-DcPyqWkY.js.map → factory-B6hBnFAf.js.map} +1 -1
- package/dist/{factory-BkA-IvkR.js → factory-Cn0UwIFB.js} +2 -2
- package/dist/{factory-BkA-IvkR.js.map → factory-Cn0UwIFB.js.map} +1 -1
- package/dist/{hooks-Btogj1f0.js → hooks-D_8Uwk1s.js} +1 -1
- package/dist/{hooks-Btogj1f0.js.map → hooks-D_8Uwk1s.js.map} +1 -1
- package/dist/{index-BzDZOr5P.d.ts → index-BES2zg3c.d.ts} +4 -4
- package/dist/index-BES2zg3c.d.ts.map +1 -0
- package/dist/{index-DE_s19VI.d.ts → index-D2tNV62S.d.ts} +4 -4
- package/dist/index-D2tNV62S.d.ts.map +1 -0
- package/dist/{index-6u5B5ORH.d.ts → index-DMMMQaUe.d.ts} +4 -4
- package/dist/index-DMMMQaUe.d.ts.map +1 -0
- package/dist/{index-BL4jGAtJ.d.ts → index-HHjpYUNP.d.ts} +4 -4
- package/dist/index-HHjpYUNP.d.ts.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{logger-CYkStoEb.js → logger-DLnGUZk9.js} +1 -1
- package/dist/{logger-CYkStoEb.js.map → logger-DLnGUZk9.js.map} +1 -1
- package/dist/module-1hr_ne9w.js.map +1 -1
- package/dist/{module-DvO77TZz.js → module-BhsG8kkn.js} +7 -7
- package/dist/{module-DvO77TZz.js.map → module-BhsG8kkn.js.map} +1 -1
- package/dist/{module-rS5YXFpM.d.ts → module-D3n9Z2mN.d.ts} +4 -4
- package/dist/module-D3n9Z2mN.d.ts.map +1 -0
- package/dist/{processor-BfQ_DU7u.js → processor-D2z8Eq93.js} +2 -2
- package/dist/{processor-BfQ_DU7u.js.map → processor-D2z8Eq93.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 +640 -0
- package/dist/spec-api-CT1DqmgF.js.map +1 -0
- package/dist/specs-_7A7Tl_N.d.ts +90 -0
- package/dist/specs-_7A7Tl_N.d.ts.map +1 -0
- package/dist/switchboard-CvWiUgBP.js +8 -0
- package/dist/{switchboard-C_BapCdk.js.map → switchboard-CvWiUgBP.js.map} +1 -1
- package/dist/{useVetraDocument-tpjMF571.js → useVetraDocument-BpPD6DKR.js} +1 -1
- package/dist/{useVetraDocument-tpjMF571.js.map → useVetraDocument-BpPD6DKR.js.map} +1 -1
- package/dist/utils-B4KdjDnp.js.map +1 -1
- package/dist/utils-BiV3cs9Y.js.map +1 -1
- package/dist/utils-CkWB3DRk.js.map +1 -1
- package/dist/utils-D0ejTHeY.js.map +1 -1
- package/package.json +30 -11
- package/dist/editor-BamOOi9L.js.map +0 -1
- package/dist/editor-CM9tpwzR.js.map +0 -1
- package/dist/editor-D-QqGEkw.js.map +0 -1
- package/dist/editor-Dz3cXtzn.js.map +0 -1
- package/dist/editor-je4HFt2f.js.map +0 -1
- package/dist/editor-rYCWiter.js.map +0 -1
- package/dist/index-6u5B5ORH.d.ts.map +0 -1
- package/dist/index-BL4jGAtJ.d.ts.map +0 -1
- package/dist/index-BzDZOr5P.d.ts.map +0 -1
- package/dist/index-DE_s19VI.d.ts.map +0 -1
- package/dist/module-rS5YXFpM.d.ts.map +0 -1
- package/dist/switchboard-C_BapCdk.js +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as removeDocumentType, b as setProcessorStatus, h as addProcessorApp, m as addDocumentType, v as removeProcessorApp, x as setProcessorType, y as setProcessorName } from "./utils-CkWB3DRk.js";
|
|
2
2
|
import { StatusPill } from "./editors/components/index.js";
|
|
3
|
-
import { n as useAvailableDocumentTypes, t as useDebounce } from "./hooks-
|
|
4
|
-
import { n as useSelectedProcessorModuleDocument } from "./useVetraDocument-
|
|
3
|
+
import { n as useAvailableDocumentTypes, t as useDebounce } from "./hooks-D_8Uwk1s.js";
|
|
4
|
+
import { n as useSelectedProcessorModuleDocument } from "./useVetraDocument-BpPD6DKR.js";
|
|
5
5
|
import { useSetPHDocumentEditorConfig } from "@powerhousedao/reactor-browser";
|
|
6
6
|
import { PROCESSOR_APPS } from "@powerhousedao/shared/processors";
|
|
7
7
|
import { useCallback, useEffect, useState } from "react";
|
|
@@ -52,7 +52,7 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
52
52
|
/* @__PURE__ */ jsxs("div", {
|
|
53
53
|
className: "flex items-center justify-between",
|
|
54
54
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
55
|
-
className: "text-lg font-medium text-
|
|
55
|
+
className: "text-lg font-medium text-foreground",
|
|
56
56
|
children: "Processor Configuration"
|
|
57
57
|
}), /* @__PURE__ */ jsx(StatusPill, {
|
|
58
58
|
status: status === "CONFIRMED" ? "confirmed" : "draft",
|
|
@@ -61,7 +61,7 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("label", {
|
|
63
63
|
htmlFor: "processor-name",
|
|
64
|
-
className: "mb-2 block text-sm font-medium text-
|
|
64
|
+
className: "mb-2 block text-sm font-medium text-foreground",
|
|
65
65
|
children: "Processor Name"
|
|
66
66
|
}), /* @__PURE__ */ jsx("input", {
|
|
67
67
|
id: "processor-name",
|
|
@@ -69,19 +69,19 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
69
69
|
value: processorName,
|
|
70
70
|
onChange: (e) => setProcessorName(e.target.value),
|
|
71
71
|
disabled: isReadOnly,
|
|
72
|
-
className: twMerge("w-full rounded-md border border-
|
|
72
|
+
className: twMerge("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", isReadOnly ? "cursor-not-allowed bg-muted text-muted-foreground" : ""),
|
|
73
73
|
placeholder: "Enter processor name"
|
|
74
74
|
})] }),
|
|
75
75
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("label", {
|
|
76
76
|
htmlFor: "processor-type",
|
|
77
|
-
className: "mb-2 block text-sm font-medium text-
|
|
77
|
+
className: "mb-2 block text-sm font-medium text-foreground",
|
|
78
78
|
children: "Type"
|
|
79
79
|
}), /* @__PURE__ */ jsxs("select", {
|
|
80
80
|
id: "processor-type",
|
|
81
81
|
value: processorType,
|
|
82
82
|
onChange: (e) => setProcessorType(e.target.value),
|
|
83
83
|
disabled: isReadOnly,
|
|
84
|
-
className: twMerge("w-full rounded-md border border-
|
|
84
|
+
className: twMerge("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", isReadOnly ? "cursor-not-allowed bg-muted" : ""),
|
|
85
85
|
children: [
|
|
86
86
|
/* @__PURE__ */ jsx("option", {
|
|
87
87
|
value: "",
|
|
@@ -99,7 +99,7 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
99
99
|
})] }),
|
|
100
100
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("label", {
|
|
101
101
|
htmlFor: "document-types",
|
|
102
|
-
className: "mb-2 block text-sm font-medium text-
|
|
102
|
+
className: "mb-2 block text-sm font-medium text-foreground",
|
|
103
103
|
children: "Document Types"
|
|
104
104
|
}), /* @__PURE__ */ jsxs("div", {
|
|
105
105
|
className: "space-y-2",
|
|
@@ -119,7 +119,7 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
119
119
|
}
|
|
120
120
|
setSelectedDocumentType("");
|
|
121
121
|
},
|
|
122
|
-
className: "w-full rounded-md border border-
|
|
122
|
+
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",
|
|
123
123
|
children: [/* @__PURE__ */ jsx("option", {
|
|
124
124
|
value: "",
|
|
125
125
|
children: "Select a document type to add"
|
|
@@ -132,11 +132,11 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
132
132
|
children: documentTypes.map((type) => /* @__PURE__ */ jsxs("div", {
|
|
133
133
|
className: "flex items-center py-1",
|
|
134
134
|
children: [/* @__PURE__ */ jsx("span", {
|
|
135
|
-
className: "text-sm text-
|
|
135
|
+
className: "text-sm text-foreground",
|
|
136
136
|
children: type.documentType
|
|
137
137
|
}), !isReadOnly && /* @__PURE__ */ jsx("button", {
|
|
138
138
|
onClick: () => handleRemoveDocumentType(type.id),
|
|
139
|
-
className: "ml-2 text-
|
|
139
|
+
className: "ml-2 text-muted-foreground hover:hover-effect focus:outline-none",
|
|
140
140
|
children: "×"
|
|
141
141
|
})]
|
|
142
142
|
}, type.id))
|
|
@@ -144,7 +144,7 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
144
144
|
})] }),
|
|
145
145
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("label", {
|
|
146
146
|
htmlFor: "processor-apps",
|
|
147
|
-
className: "mb-2 block text-sm font-medium text-
|
|
147
|
+
className: "mb-2 block text-sm font-medium text-foreground",
|
|
148
148
|
children: "Processor Apps"
|
|
149
149
|
}), /* @__PURE__ */ jsxs("div", {
|
|
150
150
|
className: "space-y-2",
|
|
@@ -166,13 +166,13 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
166
166
|
}
|
|
167
167
|
}), /* @__PURE__ */ jsx("label", {
|
|
168
168
|
htmlFor: processorApp,
|
|
169
|
-
className: "text-
|
|
169
|
+
className: "text-foreground",
|
|
170
170
|
children: processorApp
|
|
171
171
|
})]
|
|
172
172
|
}, processorApp)) }), /* @__PURE__ */ jsx("div", {
|
|
173
173
|
className: "space-y-1",
|
|
174
174
|
children: isReadOnly && processorApps.map((processorApp) => /* @__PURE__ */ jsx("span", {
|
|
175
|
-
className: "text-sm text-
|
|
175
|
+
className: "text-sm text-foreground",
|
|
176
176
|
children: processorApp
|
|
177
177
|
}, processorApp))
|
|
178
178
|
})]
|
|
@@ -180,7 +180,7 @@ const ProcessorEditorForm = ({ processorName: initialProcessorName = "", process
|
|
|
180
180
|
!isReadOnly && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("button", {
|
|
181
181
|
onClick: handleConfirm,
|
|
182
182
|
disabled: !canConfirm,
|
|
183
|
-
className: "rounded-md bg-
|
|
183
|
+
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",
|
|
184
184
|
children: "Confirm"
|
|
185
185
|
}) })
|
|
186
186
|
]
|
|
@@ -221,7 +221,7 @@ function Editor() {
|
|
|
221
221
|
dispatch(removeProcessorApp({ processorApp }));
|
|
222
222
|
}, [dispatch]);
|
|
223
223
|
return /* @__PURE__ */ jsxs("div", {
|
|
224
|
-
className: "bg-
|
|
224
|
+
className: "bg-background p-6",
|
|
225
225
|
children: [/* @__PURE__ */ jsx(DocumentToolbar, {}), /* @__PURE__ */ jsx(ProcessorEditorForm, {
|
|
226
226
|
onNameChange,
|
|
227
227
|
onTypeChange,
|
|
@@ -241,4 +241,4 @@ function Editor() {
|
|
|
241
241
|
//#endregion
|
|
242
242
|
export { Editor as default };
|
|
243
243
|
|
|
244
|
-
//# sourceMappingURL=editor-
|
|
244
|
+
//# sourceMappingURL=editor-saGUzfCl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-saGUzfCl.js","names":[],"sources":["../editors/processor-editor/components/ProcessorEditorForm.tsx","../editors/processor-editor/config.ts","../editors/processor-editor/editor.tsx"],"sourcesContent":["import {\n PROCESSOR_APPS,\n type ProcessorApp,\n type ProcessorApps,\n} from \"@powerhousedao/shared/processors\";\nimport { useEffect, useState } from \"react\";\nimport { twMerge } from \"tailwind-merge\";\nimport type { DocumentTypeItem } from \"../../../document-models/processor-module/index.js\";\nimport { StatusPill } from \"../../components/index.js\";\nimport { useAvailableDocumentTypes, useDebounce } from \"../../hooks/index.js\";\n\nexport interface ProcessorEditorFormProps {\n processorName?: string;\n processorType?: string;\n documentTypes?: DocumentTypeItem[];\n processorApps?: ProcessorApps;\n status?: string;\n onNameChange?: (name: string) => void;\n onTypeChange?: (type: string) => void;\n onAddDocumentType?: (id: string, documentType: string) => void;\n onRemoveDocumentType?: (id: string) => void;\n onAddProcessorApp?: (processorApp: ProcessorApp) => void;\n onRemoveProcessorApp?: (processorApp: ProcessorApp) => void;\n onConfirm?: () => void;\n}\n\nexport const ProcessorEditorForm: React.FC<ProcessorEditorFormProps> = ({\n processorName: initialProcessorName = \"\",\n processorType: initialProcessorType = \"\",\n documentTypes: initialDocumentTypes = [],\n processorApps: initialProcessorApps = [],\n status = \"DRAFT\",\n onNameChange,\n onTypeChange,\n onAddDocumentType,\n onRemoveDocumentType,\n onAddProcessorApp,\n onRemoveProcessorApp,\n onConfirm,\n}) => {\n const [processorName, setProcessorName] = useState(initialProcessorName);\n const [processorType, setProcessorType] = useState(initialProcessorType);\n const [documentTypes, setDocumentTypes] =\n useState<DocumentTypeItem[]>(initialDocumentTypes);\n const [selectedDocumentType, setSelectedDocumentType] = useState(\"\");\n const [processorApps, setProcessorApps] = useState(initialProcessorApps);\n const [isConfirmed, setIsConfirmed] = useState(false);\n\n // Get available document types from the hook (combines reactor and vetra drive)\n const availableDocumentTypes = useAvailableDocumentTypes();\n\n // Use the debounce hook for name and type changes\n useDebounce(processorName, onNameChange, 300);\n useDebounce(processorType, onTypeChange, 300);\n\n // Update local state when initial values change\n useEffect(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setProcessorName(initialProcessorName);\n }, [initialProcessorName]);\n\n useEffect(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setProcessorType(initialProcessorType);\n }, [initialProcessorType]);\n\n useEffect(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setDocumentTypes(initialDocumentTypes);\n }, [initialDocumentTypes]);\n\n useEffect(() => {\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setProcessorApps(initialProcessorApps);\n }, [initialProcessorApps]);\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 (\n processorName.trim() &&\n processorType &&\n documentTypes.length > 0 &&\n processorApps.length > 0\n ) {\n setIsConfirmed(true); // Immediate UI update\n onConfirm?.();\n }\n };\n\n const handleRemoveDocumentType = (id: string) => {\n setDocumentTypes(documentTypes.filter((dt) => dt.id !== id));\n onRemoveDocumentType?.(id);\n };\n\n const canConfirm =\n !!processorName.trim() &&\n !!processorType &&\n documentTypes.length > 0 &&\n processorApps.length > 0;\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 Processor Configuration\n </h2>\n <StatusPill\n status={status === \"CONFIRMED\" ? \"confirmed\" : \"draft\"}\n label={status === \"CONFIRMED\" ? \"Confirmed\" : \"Draft\"}\n />\n </div>\n\n {/* Processor Name Field */}\n <div>\n <label\n htmlFor=\"processor-name\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n Processor Name\n </label>\n <input\n id=\"processor-name\"\n type=\"text\"\n value={processorName}\n onChange={(e) => setProcessorName(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\n ? \"cursor-not-allowed bg-muted text-muted-foreground\"\n : \"\",\n )}\n placeholder=\"Enter processor name\"\n />\n </div>\n\n {/* Processor Type Dropdown */}\n <div>\n <label\n htmlFor=\"processor-type\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n Type\n </label>\n <select\n id=\"processor-type\"\n value={processorType}\n onChange={(e) => setProcessorType(e.target.value)}\n disabled={isReadOnly}\n className={twMerge(\n \"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 isReadOnly ? \"cursor-not-allowed bg-muted\" : \"\",\n )}\n >\n <option value=\"\">Select type...</option>\n <option value=\"analytics\">Analytics</option>\n <option value=\"relational\">Relational Database</option>\n </select>\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 && availableDocumentTypes.length > 0 && (\n <select\n id=\"document-types\"\n value={selectedDocumentType}\n onChange={(e) => {\n const selectedValue = e.target.value;\n if (\n selectedValue &&\n !documentTypes.some((dt) => dt.documentType === selectedValue)\n ) {\n const id = Date.now().toString();\n const newType: DocumentTypeItem = {\n id,\n documentType: selectedValue,\n };\n setDocumentTypes([...documentTypes, newType]);\n onAddDocumentType?.(id, selectedValue);\n }\n setSelectedDocumentType(\"\");\n }}\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 value=\"\">Select a document type to add</option>\n {availableDocumentTypes\n .filter(\n (docType) =>\n !documentTypes.some((dt) => dt.documentType === docType),\n )\n .map((docType) => (\n <option key={docType} value={docType}>\n {docType}\n </option>\n ))}\n </select>\n )}\n <div className=\"space-y-1\">\n {documentTypes.map((type) => (\n <div key={type.id} className=\"flex items-center py-1\">\n <span className=\"text-sm text-foreground\">\n {type.documentType}\n </span>\n {!isReadOnly && (\n <button\n onClick={() => handleRemoveDocumentType(type.id)}\n className=\"ml-2 text-muted-foreground hover:hover-effect focus:outline-none\"\n >\n ×\n </button>\n )}\n </div>\n ))}\n </div>\n </div>\n </div>\n {/* Processor Apps Field */}\n <div>\n <label\n htmlFor=\"processor-apps\"\n className=\"mb-2 block text-sm font-medium text-foreground\"\n >\n Processor Apps\n </label>\n <div className=\"space-y-2\">\n {!isReadOnly && (\n <>\n {PROCESSOR_APPS.map((processorApp) => (\n <div key={processorApp} className=\"flex gap-1\">\n <input\n type=\"checkbox\"\n name={processorApp}\n id={processorApp}\n checked={processorApps.includes(processorApp)}\n onChange={(event) => {\n const isChecked = event.target.checked;\n if (isChecked) {\n setProcessorApps((processorApps) => [\n ...new Set([...processorApps, processorApp]),\n ]);\n onAddProcessorApp?.(processorApp);\n } else {\n if (processorApps.length > 1) {\n setProcessorApps((processorApps) =>\n processorApps.filter((p) => p !== processorApp),\n );\n onRemoveProcessorApp?.(processorApp);\n }\n }\n }}\n />\n <label htmlFor={processorApp} className=\"text-foreground\">\n {processorApp}\n </label>\n </div>\n ))}\n </>\n )}\n <div className=\"space-y-1\">\n {isReadOnly &&\n processorApps.map((processorApp) => (\n <span key={processorApp} className=\"text-sm text-foreground\">\n {processorApp}\n </span>\n ))}\n </div>\n </div>\n </div>\n {/* Confirm Button - only show if not in read-only mode */}\n {!isReadOnly && (\n <div>\n <button\n onClick={handleConfirm}\n disabled={!canConfirm}\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 type {\n ProcessorApp,\n ProcessorApps,\n} from \"@powerhousedao/shared/processors\";\nimport { useCallback } from \"react\";\nimport {\n addDocumentType,\n addProcessorApp,\n removeDocumentType,\n removeProcessorApp,\n setProcessorName,\n setProcessorStatus,\n setProcessorType,\n} from \"../../document-models/processor-module/index.js\";\nimport { useSelectedProcessorModuleDocument } from \"../hooks/useVetraDocument.js\";\nimport { ProcessorEditorForm } from \"./components/ProcessorEditorForm.js\";\nimport { editorConfig } from \"./config.js\";\n\nexport default function Editor() {\n useSetPHDocumentEditorConfig(editorConfig);\n const [document, dispatch] = useSelectedProcessorModuleDocument();\n\n const onConfirm = useCallback(() => {\n // Dispatch all actions at once\n dispatch([setProcessorStatus({ status: \"CONFIRMED\" })]);\n }, [dispatch]);\n\n const onNameChange = useCallback(\n (name: string) => {\n if (name === document.state.global.name) return;\n dispatch(setProcessorName({ name }));\n },\n [document.state.global.name, dispatch],\n );\n\n const onTypeChange = useCallback(\n (type: string) => {\n if (type === document.state.global.type) return;\n dispatch(setProcessorType({ type }));\n },\n [document.state.global.type, dispatch],\n );\n\n const onAddDocumentType = useCallback(\n (id: string, documentType: string) => {\n dispatch(addDocumentType({ id, documentType }));\n },\n [dispatch],\n );\n\n const onRemoveDocumentType = useCallback(\n (id: string) => {\n dispatch(removeDocumentType({ id }));\n },\n [dispatch],\n );\n\n const onAddProcessorApp = useCallback(\n (processorApp: ProcessorApp) => {\n dispatch(addProcessorApp({ processorApp }));\n },\n [dispatch],\n );\n\n const onRemoveProcessorApp = useCallback(\n (processorApp: ProcessorApp) => {\n dispatch(removeProcessorApp({ processorApp }));\n },\n [dispatch],\n );\n\n return (\n <div className=\"bg-background p-6\">\n <DocumentToolbar />\n <ProcessorEditorForm\n onNameChange={onNameChange}\n onTypeChange={onTypeChange}\n onAddDocumentType={onAddDocumentType}\n onRemoveDocumentType={onRemoveDocumentType}\n onAddProcessorApp={onAddProcessorApp}\n onRemoveProcessorApp={onRemoveProcessorApp}\n status={document.state.global.status}\n processorName={document.state.global.name ?? \"\"}\n processorType={document.state.global.type ?? \"\"}\n documentTypes={document.state.global.documentTypes ?? []}\n processorApps={document.state.global.processorApps as ProcessorApps}\n onConfirm={onConfirm}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AA0BA,MAAa,uBAA2D,EACtE,eAAe,uBAAuB,I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WAAS,gBAAgB,EAAE,cAAc,CAAC,CAAC;IAE7C,CAAC,SAAS,CACX;CAED,MAAM,uBAAuB,aAC1B,iBAA+B;AAC9B,WAAS,mBAAmB,EAAE,cAAc,CAAC,CAAC;IAEhD,CAAC,SAAS,CACX;AAED,QACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,iBAAD,EAAmB,CAAA,EACnB,oBAAC,qBAAD;GACgB;GACA;GACK;GACG;GACH;GACG;GACtB,QAAQ,SAAS,MAAM,OAAO;GAC9B,eAAe,SAAS,MAAM,OAAO,QAAQ;GAC7C,eAAe,SAAS,MAAM,OAAO,QAAQ;GAC7C,eAAe,SAAS,MAAM,OAAO,iBAAiB,EAAE;GACxD,eAAe,SAAS,MAAM,OAAO;GAC1B;GACX,CAAA,CACE"}
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
//#region editors/components/StatusPill.tsx
|
|
4
4
|
const StatusPill = ({ status, label }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx("div", {
|
|
6
|
-
className: twMerge("rounded-full px-3 py-1 text-xs font-medium", status === "confirmed" ? "bg-
|
|
6
|
+
className: twMerge("rounded-full px-3 py-1 text-xs font-medium", status === "confirmed" ? "bg-success/10 text-success" : "bg-warning/10 text-warning"),
|
|
7
7
|
children: label
|
|
8
8
|
});
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../editors/components/StatusPill.tsx"],"sourcesContent":["import { twMerge } from \"tailwind-merge\";\n\nexport interface StatusPillProps {\n status: \"draft\" | \"confirmed\";\n label: string;\n}\n\nexport const StatusPill: React.FC<StatusPillProps> = ({ status, label }) => {\n return (\n <div\n className={twMerge(\n \"rounded-full px-3 py-1 text-xs font-medium\",\n status === \"confirmed\"\n ? \"bg-
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../editors/components/StatusPill.tsx"],"sourcesContent":["import { twMerge } from \"tailwind-merge\";\n\nexport interface StatusPillProps {\n status: \"draft\" | \"confirmed\";\n label: string;\n}\n\nexport const StatusPill: React.FC<StatusPillProps> = ({ status, label }) => {\n return (\n <div\n className={twMerge(\n \"rounded-full px-3 py-1 text-xs font-medium\",\n status === \"confirmed\"\n ? \"bg-success/10 text-success\"\n : \"bg-warning/10 text-warning\",\n )}\n >\n {label}\n </div>\n );\n};\n"],"mappings":";;;AAOA,MAAa,cAAyC,EAAE,QAAQ,YAAY;AAC1E,QACE,oBAAC,OAAD;EACE,WAAW,QACT,8CACA,WAAW,cACP,+BACA,6BACL;YAEA;EACG,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useAvailableDocumentTypes, t as useDebounce } from "../../hooks-
|
|
1
|
+
import { n as useAvailableDocumentTypes, t as useDebounce } from "../../hooks-D_8Uwk1s.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-BhsG8kkn.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-DLnGUZk9.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-D2z8Eq93.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-B6hBnFAf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory-
|
|
1
|
+
{"version":3,"file":"factory-B6hBnFAf.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,4 +1,4 @@
|
|
|
1
|
-
import { t as logger } from "./logger-
|
|
1
|
+
import { t as logger } from "./logger-DLnGUZk9.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-Cn0UwIFB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory-
|
|
1
|
+
{"version":3,"file":"factory-Cn0UwIFB.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,UA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,OAAO;IAChB,YAAY,CAAC,IAAI;IACjB,cAAc,CAAC,qBAAqB;IACpC,OAAO,CAAC,SAAS;IAClB;GACF,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks-
|
|
1
|
+
{"version":3,"file":"hooks-D_8Uwk1s.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"}
|
|
@@ -94,9 +94,9 @@ type Scalars = {
|
|
|
94
94
|
input: number;
|
|
95
95
|
output: number;
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
input: string
|
|
99
|
-
output: string
|
|
97
|
+
AttachmentRef: {
|
|
98
|
+
input: `attachment://v${number}:${string}`;
|
|
99
|
+
output: `attachment://v${number}:${string}`;
|
|
100
100
|
};
|
|
101
101
|
Currency: {
|
|
102
102
|
input: string;
|
|
@@ -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-BES2zg3c.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BES2zg3c.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,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,CAAE,MAAA;AAAA,KAEb,SAAA;EAAA,CACG,GAAA;AAAA,mBACG,CAAA,YACN,CAAA;AAAA,KACA,WAAA,MACR,CAAA,iBAEc,CAAA,IAAK,CAAA,2CAA4C,CAAA,CAAE,CAAA;;KAGzD,OAAA;EACV,EAAA;IAAM,KAAA;IAAe,MAAA;EAAA;EACrB,MAAA;IAAU,KAAA;IAAe,MAAA;EAAA;EACzB,OAAA;IAAW,KAAA;IAAgB,MAAA;EAAA;EAC3B,GAAA;IAAO,KAAA;IAAe,MAAA;EAAA;EACtB,KAAA;IAAS,KAAA;IAAe,MAAA;EAAA;EACxB,OAAA;IAAW,KAAA;IAAgC,MAAA;EAAA;EAC3C,MAAA;IACE,KAAA;MAAS,IAAA;MAAe,KAAA;IAAA;IACxB,MAAA;MAAU,IAAA;MAAe,KAAA;IAAA;EAAA;EAE3B,aAAA;IACE,KAA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C,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"}
|
|
@@ -94,9 +94,9 @@ type Scalars = {
|
|
|
94
94
|
input: number;
|
|
95
95
|
output: number;
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
input: string
|
|
99
|
-
output: string
|
|
97
|
+
AttachmentRef: {
|
|
98
|
+
input: `attachment://v${number}:${string}`;
|
|
99
|
+
output: `attachment://v${number}:${string}`;
|
|
100
100
|
};
|
|
101
101
|
Currency: {
|
|
102
102
|
input: string;
|
|
@@ -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-D2tNV62S.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D2tNV62S.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,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEb,SAAA;EAAA,CACG,GAAA;AAAA,mBACG,CAAA,YACN,CAAA;AAAA,KACA,WAAA,MACR,CAAA,iBAEc,CAAA,IAAK,CAAA,2CAA4C,CAAA,CAAE,CAAA;;KAGzD,OAAA;EACV,EAAA;IAAM,KAAA;IAAe,MAAA;EAAA;EACrB,MAAA;IAAU,KAAA;IAAe,MAAA;EAAA;EACzB,OAAA;IAAW,KAAA;IAAgB,MAAA;EAAA;EAC3B,GAAA;IAAO,KAAA;IAAe,MAAA;EAAA;EACtB,KAAA;IAAS,KAAA;IAAe,MAAA;EAAA;EACxB,OAAA;IAAW,KAAA;IAAgC,MAAA;EAAA;EAC3C,MAAA;IACE,KAAA;MAAS,IAAA;MAAe,KAAA;IAAA;IACxB,MAAA;MAAU,IAAA;MAAe,KAAA;IAAA;EAAA;EAE3B,aAAA;IACE,KAAA;MAAS,IAAA;MAAc,KAAA;IAAA;IACvB,MAAA;MAAU,IAAA;MAAc,KAAA;IAAA;EAAA;EAE1B,eAAA;IACE,KAAA;MAAS,IAAA;MAAc,KAAA;IAAA;IACvB,MAAA;MAAU,IAAA;MAAc,KAAA;IAAA;EAAA;EAE1B,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,GAAA,CAAA,OAAA;;;;iBAEb,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;AAAA,iBAQG,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;AAAA,iBAOG,sBAAA,CAAA,GAA0B,GAAA,CAAE,SAAA,CAC1C,UAAA,CAAW,gBAAA;AAAA,iBASG,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;AAAA,iBAYG,6BAAA,CAAA,GAAiC,GAAA,CAAE,SAAA,CACjD,UAAA,CAAW,uBAAA;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;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"}
|
|
@@ -94,9 +94,9 @@ type Scalars = {
|
|
|
94
94
|
input: number;
|
|
95
95
|
output: number;
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
input: string
|
|
99
|
-
output: string
|
|
97
|
+
AttachmentRef: {
|
|
98
|
+
input: `attachment://v${number}:${string}`;
|
|
99
|
+
output: `attachment://v${number}:${string}`;
|
|
100
100
|
};
|
|
101
101
|
Currency: {
|
|
102
102
|
input: string;
|
|
@@ -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-DMMMQaUe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DMMMQaUe.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,CAAE,MAAA;AAAA,KAEb,SAAA;EAAA,CACG,GAAA;AAAA,mBACG,CAAA,YACN,CAAA;AAAA,KACA,WAAA,MACR,CAAA,iBAEc,CAAA,IAAK,CAAA,2CAA4C,CAAA,CAAE,CAAA;;KAGzD,OAAA;EACV,EAAA;IAAM,KAAA;IAAe,MAAA;EAAA;EACrB,MAAA;IAAU,KAAA;IAAe,MAAA;EAAA;EACzB,OAAA;IAAW,KAAA;IAAgB,MAAA;EAAA;EAC3B,GAAA;IAAO,KAAA;IAAe,MAAA;EAAA;EACtB,KAAA;IAAS,KAAA;IAAe,MAAA;EAAA;EACxB,OAAA;IAAW,KAAA;IAAgC,MAAA;EAAA;EAC3C,MAAA;IACE,KAAA;MAAS,IAAA;MAAe,KAAA;IAAA;IACxB,MAAA;MAAU,IAAA;MAAe,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Q,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,iBAQG,yBAAA,CAAA,GAA6B,GAAA,CAAE,SAAA,CAC7C,UAAA,CAAW,mBAAA;AAAA,iBAUG,sBAAA,CAAA,GAA0B,GAAA,CAAE,SAAA,CAC1C,UAAA,CAAW,gBAAA;AAAA,iBASG,6BAAA,CAAA,GAAiC,GAAA,CAAE,SAAA,CACjD,UAAA,CAAW,uBAAA;AAAA,iBAOG,wBAAA,CAAA,GAA4B,GAAA,CAAE,SAAA,CAC5C,UAAA,CAAW,kBAAA;AAAA,iBAOG,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;;;cClDA,kBAAA,EAAoB,mBAAA;AAAA,cAKpB,iBAAA,EAAmB,wBAAA"}
|
|
@@ -94,9 +94,9 @@ type Scalars = {
|
|
|
94
94
|
input: number;
|
|
95
95
|
output: number;
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
input: string
|
|
99
|
-
output: string
|
|
97
|
+
AttachmentRef: {
|
|
98
|
+
input: `attachment://v${number}:${string}`;
|
|
99
|
+
output: `attachment://v${number}:${string}`;
|
|
100
100
|
};
|
|
101
101
|
Currency: {
|
|
102
102
|
input: string;
|
|
@@ -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-HHjpYUNP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-HHjpYUNP.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,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEd,SAAA,oBAA6B,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBACzC,CAAA,GAAI,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEb,SAAA;EAAA,CACG,GAAA;AAAA,mBACG,CAAA,YACN,CAAA;AAAA,KACA,WAAA,MACR,CAAA,iBAEc,CAAA,IAAK,CAAA,2CAA4C,CAAA,CAAE,CAAA;;KAGzD,OAAA;EACV,EAAA;IAAM,KAAA;IAAe,MAAA;EAAA;EACrB,MAAA;IAAU,KAAA;IAAe,MAAA;EAAA;EACzB,OAAA;IAAW,KAAA;IAAgB,MAAA;EAAA;EAC3B,GAAA;IAAO,KAAA;IAAe,MAAA;EAAA;EACtB,KAAA;IAAS,KAAA;IAAe,MAAA;EAAA;EACxB,OAAA;IAAW,KAAA;IAAgC,MAAA;EAAA;EAC3C,MAAA;IACE,KAAA;MAAS,IAAA;MAAe,KAAA;IAAA;IACxB,MAAA;MAAU,IAAA;MAAe,KAAA;IAAA;EAAA;EAE3B,aAAA;IACE,KAAA;MAAS,IAAA;MAAc,K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AA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA;;;;;;cCVz0W,KAAA,EAAO,kBAAA,CAAmB,qBAAA;;;cCyC1B,OAAA,EAAS,OAAA,CAAQ,qBAAA;;;KCzCzB,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,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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-BES2zg3c.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-DMMMQaUe.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-D2tNV62S.js";
|
|
4
|
+
import { H as SubgraphModulePHState, L as SetSubgraphNameAction, Q as SetSubgraphStatusInput, R as SetSubgraphStatusAction, Z as SetSubgraphNameInput } from "./index-HHjpYUNP.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-D3n9Z2mN.js";
|
|
6
6
|
import * as document_model0 from "document-model";
|
|
7
7
|
import { EditorModule } from "document-model";
|
|
8
8
|
import { Manifest } from "@powerhousedao/shared/document-model";
|
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;;;;
|
|
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,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA,mDAAA,gBAAA;EAAA;;;;;oBAJh5W,KAAA,yBACI,mBAAA;sBAGkI,KAAA,EAHlI,sBAAA,KAG6J,uBAAA;yBAA6L,KAAA,EAA7L,yBAAA,KAA2N,0BAAA;sBAAmM,KAAA,EAAnM,oBAAA,KAA8N,qBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAi+U,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAA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BAAA,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;;;;cCN74W,OAAA,EAAS,YAAA;;;cCRT,QAAA,EAAU,QAAA"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as DocumentEditor } from "./module-DP3bVbak.js";
|
|
|
4
4
|
import { t as ProcessorModule } from "./module-mtR8W4L4.js";
|
|
5
5
|
import { t as SubgraphModule } from "./module-C0jUPu9F.js";
|
|
6
6
|
import { t as VetraPackage } from "./module-1hr_ne9w.js";
|
|
7
|
-
import { a as DocumentEditorEditor, i as ProcessorModuleEditor, n as VetraDriveApp, o as AppEditor, r as SubgraphModuleEditor, t as VetraPackageEditor } from "./module-
|
|
7
|
+
import { a as DocumentEditorEditor, i as ProcessorModuleEditor, n as VetraDriveApp, o as AppEditor, r as SubgraphModuleEditor, t as VetraPackageEditor } from "./module-BhsG8kkn.js";
|
|
8
8
|
//#region document-models/document-models.ts
|
|
9
9
|
/**
|
|
10
10
|
* WARNING: DO NOT EDIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-DLnGUZk9.js","names":[],"sources":["../processors/codegen/logger.ts"],"sourcesContent":["import { childLogger } from \"document-model\";\n\nconst baseLogger = childLogger([\"Vetra\"]);\n\nfunction formatArgs(args: unknown[]): string {\n return args\n .map((arg) => {\n if (typeof arg === \"string\") return arg;\n if (arg instanceof Error) return arg.message;\n if (arg != null && typeof arg === \"object\") return JSON.stringify(arg);\n return `${arg as string | number | boolean}`;\n })\n .join(\" \");\n}\n\nexport const logger = {\n debug: (...args: unknown[]): void => baseLogger.debug(formatArgs(args)),\n info: (...args: unknown[]): void => baseLogger.info(formatArgs(args)),\n warn: (...args: unknown[]): void => baseLogger.warn(formatArgs(args)),\n error: (...args: unknown[]): void => baseLogger.error(formatArgs(args)),\n};\n"],"mappings":";;AAEA,MAAM,aAAa,YAAY,CAAC,QAAQ,CAAC;AAEzC,SAAS,WAAW,MAAyB;AAC3C,QAAO,KACJ,KAAK,QAAQ;AACZ,MAAI,OAAO,QAAQ,SAAU,QAAO;AACpC,MAAI,eAAe,MAAO,QAAO,IAAI;AACrC,MAAI,OAAO,QAAQ,OAAO,QAAQ,SAAU,QAAO,KAAK,UAAU,IAAI;AACtE,SAAO,GAAG;GACV,CACD,KAAK,IAAI;;AAGd,MAAa,SAAS;CACpB,QAAQ,GAAG,SAA0B,WAAW,MAAM,WAAW,KAAK,CAAC;CACvE,OAAO,GAAG,SAA0B,WAAW,KAAK,WAAW,KAAK,CAAC;CACrE,OAAO,GAAG,SAA0B,WAAW,KAAK,WAAW,KAAK,CAAC;CACrE,QAAQ,GAAG,SAA0B,WAAW,MAAM,WAAW,KAAK,CAAC;CACxE"}
|