@powerhousedao/vetra 6.2.3-dev.24 → 6.2.3-dev.25
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 +19 -19
- package/dist/codegen/index.d.ts.map +1 -1
- package/dist/codegen/index.js +14 -11
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/spec.d.ts +3 -2
- package/dist/codegen/spec.js +1 -1
- package/dist/{connect-qpJ9OUaH.js → connect-EqImHuZ2.js} +1 -1
- package/dist/{connect-qpJ9OUaH.js.map → connect-EqImHuZ2.js.map} +1 -1
- package/dist/document-models/app-module/index.d.ts +29 -6
- package/dist/document-models/app-module/index.d.ts.map +1 -1
- package/dist/document-models/app-module/index.js +4 -4
- package/dist/document-models/app-module/index.js.map +1 -1
- package/dist/document-models/document-editor/index.d.ts +27 -6
- package/dist/document-models/document-editor/index.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.js +4 -4
- package/dist/document-models/document-editor/index.js.map +1 -1
- package/dist/document-models/index.d.ts +7 -6
- package/dist/document-models/index.js +5 -5
- package/dist/document-models/processor-module/index.d.ts +30 -6
- package/dist/document-models/processor-module/index.d.ts.map +1 -1
- package/dist/document-models/processor-module/index.js +4 -4
- package/dist/document-models/processor-module/index.js.map +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +25 -6
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.js +4 -4
- package/dist/document-models/subgraph-module/index.js.map +1 -1
- package/dist/document-models/vetra-package/index.d.ts +33 -6
- package/dist/document-models/vetra-package/index.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.js +3 -3
- package/dist/{editor-LRAwrgdQ.js → editor-BXOEFIDj.js} +8 -7
- package/dist/{editor-LRAwrgdQ.js.map → editor-BXOEFIDj.js.map} +1 -1
- package/dist/{editor-CLbvu3pG.js → editor-C5a0rBQj.js} +5 -5
- package/dist/{editor-CLbvu3pG.js.map → editor-C5a0rBQj.js.map} +1 -1
- package/dist/{editor-_0gdltOt.js → editor-CiX3Tq3g.js} +4 -4
- package/dist/{editor-_0gdltOt.js.map → editor-CiX3Tq3g.js.map} +1 -1
- package/dist/{editor-C13SvgUy.js → editor-DFEeM_dy.js} +3 -3
- package/dist/{editor-C13SvgUy.js.map → editor-DFEeM_dy.js.map} +1 -1
- package/dist/{editor-CCdg1mJL.js → editor-DpZVlVN1.js} +4 -4
- package/dist/{editor-CCdg1mJL.js.map → editor-DpZVlVN1.js.map} +1 -1
- package/dist/{editor-Fgw7attg.js → editor-DpadPeVq.js} +25 -25
- package/dist/{editor-Fgw7attg.js.map → editor-DpadPeVq.js.map} +1 -1
- package/dist/editors/components/index.d.ts +3 -3
- package/dist/editors/components/index.d.ts.map +1 -1
- package/dist/editors/components/index.js.map +1 -1
- package/dist/editors/hooks/index.d.ts +3 -3
- package/dist/editors/hooks/index.d.ts.map +1 -1
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.d.ts +7 -8
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/{factory-5eiZohiv.js → factory-BzUAqoGU.js} +2 -2
- package/dist/{factory-5eiZohiv.js.map → factory-BzUAqoGU.js.map} +1 -1
- package/dist/{factory-DMl8eB3P.js → factory-C2motg3U.js} +3 -3
- package/dist/{factory-DMl8eB3P.js.map → factory-C2motg3U.js.map} +1 -1
- package/dist/{hooks-BIgFcbaF.js → hooks-BbxvC-C3.js} +2 -2
- package/dist/{hooks-BIgFcbaF.js.map → hooks-BbxvC-C3.js.map} +1 -1
- package/dist/{index-DzKzQN1-.d.ts → index-B52jv-LY.d.ts} +30 -56
- package/dist/index-B52jv-LY.d.ts.map +1 -0
- package/dist/{index-De10KzmZ.d.ts → index-D6Ai0OOc.d.ts} +26 -51
- package/dist/index-D6Ai0OOc.d.ts.map +1 -0
- package/dist/{index-DtWpYXR0.d.ts → index-DPG4u1Ym.d.ts} +26 -54
- package/dist/index-DPG4u1Ym.d.ts.map +1 -0
- package/dist/{index-BvuHC-pU.d.ts → index-DplUuZMT.d.ts} +21 -47
- package/dist/index-DplUuZMT.d.ts.map +1 -0
- package/dist/index.d.ts +51 -73
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -12
- package/dist/index.js.map +1 -1
- package/dist/{logger-WHD0fyLm.js → logger-BFxMdimR.js} +1 -1
- package/dist/{logger-WHD0fyLm.js.map → logger-BFxMdimR.js.map} +1 -1
- package/dist/{module-Chqkdq4U.js → module-2JZcvfVs.js} +3 -3
- package/dist/{module-Chqkdq4U.js.map → module-2JZcvfVs.js.map} +1 -1
- package/dist/{module-CRq_lUkG.js → module-Caxhis1M.js} +3 -3
- package/dist/{module-CRq_lUkG.js.map → module-Caxhis1M.js.map} +1 -1
- package/dist/{module-DXT-FMxU.js → module-CdpGkPNN.js} +7 -7
- package/dist/{module-DXT-FMxU.js.map → module-CdpGkPNN.js.map} +1 -1
- package/dist/{module-Dkt7oNbd.d.ts → module-D4lqkHHK.d.ts} +37 -62
- package/dist/module-D4lqkHHK.d.ts.map +1 -0
- package/dist/{module-bKT_e3CH.js → module-Db8mmgzN.js} +3 -3
- package/dist/{module-bKT_e3CH.js.map → module-Db8mmgzN.js.map} +1 -1
- package/dist/{module-CRfHlbnq.js → module-FXJRy_1W.js} +2 -2
- package/dist/{module-CRfHlbnq.js.map → module-FXJRy_1W.js.map} +1 -1
- package/dist/{module-Bx1OEHxF.js → module-hLzF5tCL.js} +3 -3
- package/dist/{module-Bx1OEHxF.js.map → module-hLzF5tCL.js.map} +1 -1
- package/dist/{ph-factories-CjbIAMgT.js → ph-factories-Bgnr3mK3.js} +2 -2
- package/dist/{ph-factories-CjbIAMgT.js.map → ph-factories-Bgnr3mK3.js.map} +1 -1
- package/dist/{ph-factories-Ce8oAqs9.js → ph-factories-CgoFCmG0.js} +2 -2
- package/dist/{ph-factories-Ce8oAqs9.js.map → ph-factories-CgoFCmG0.js.map} +1 -1
- package/dist/{ph-factories-dVj6mIlR.js → ph-factories-DhLtvC7j.js} +2 -2
- package/dist/{ph-factories-dVj6mIlR.js.map → ph-factories-DhLtvC7j.js.map} +1 -1
- package/dist/{ph-factories-CljTAAVS.js → ph-factories-HuC7_vvF.js} +2 -2
- package/dist/{ph-factories-CljTAAVS.js.map → ph-factories-HuC7_vvF.js.map} +1 -1
- package/dist/powerhouse.manifest.json +76 -0
- package/dist/{processor-trJFuoHh.js → processor-Cknc_d-H.js} +5 -3
- package/dist/{processor-trJFuoHh.js.map → processor-Cknc_d-H.js.map} +1 -1
- package/dist/processors/codegen/index.d.ts +3 -4
- package/dist/processors/codegen/index.d.ts.map +1 -1
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.d.ts +2 -3
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/index.js.map +1 -1
- package/dist/processors/vetra-read-model/index.d.ts +47 -49
- package/dist/processors/vetra-read-model/index.d.ts.map +1 -1
- package/dist/processors/vetra-read-model/index.js +1 -1
- package/dist/{spec-api-DobY5TUJ.js → spec-api-BIJ_jsGp.js} +9 -9
- package/dist/{spec-api-DobY5TUJ.js.map → spec-api-BIJ_jsGp.js.map} +1 -1
- package/dist/{specs-BeVdfCwg.d.ts → specs-DoTSfuxN.d.ts} +7 -4
- package/dist/specs-DoTSfuxN.d.ts.map +1 -0
- package/dist/switchboard-CD3CQGiP.js +8 -0
- package/dist/{switchboard-Bf0uvxSu.js.map → switchboard-CD3CQGiP.js.map} +1 -1
- package/dist/{upgrade-manifest-OlS1ALVv.js → upgrade-manifest-BOZ5nmyK.js} +1 -1
- package/dist/{upgrade-manifest-OlS1ALVv.js.map → upgrade-manifest-BOZ5nmyK.js.map} +1 -1
- package/dist/{upgrade-manifest-BGuy0v65.js → upgrade-manifest-D7xKGmZc.js} +1 -1
- package/dist/{upgrade-manifest-BGuy0v65.js.map → upgrade-manifest-D7xKGmZc.js.map} +1 -1
- package/dist/{upgrade-manifest-Ck3Mgwhc.js → upgrade-manifest-DLxSL23q.js} +1 -1
- package/dist/{upgrade-manifest-Ck3Mgwhc.js.map → upgrade-manifest-DLxSL23q.js.map} +1 -1
- package/dist/{upgrade-manifest-XdOLymuP.js → upgrade-manifest-Dv62Cod7.js} +1 -1
- package/dist/{upgrade-manifest-XdOLymuP.js.map → upgrade-manifest-Dv62Cod7.js.map} +1 -1
- package/dist/{upgrade-manifest-NaS4SWk9.js → upgrade-manifest-d3LquK-H.js} +1 -1
- package/dist/{upgrade-manifest-NaS4SWk9.js.map → upgrade-manifest-d3LquK-H.js.map} +1 -1
- package/dist/{useVetraDocument-BlLdlhrQ.js → useVetraDocument-B0k3gNtw.js} +1 -1
- package/dist/{useVetraDocument-BlLdlhrQ.js.map → useVetraDocument-B0k3gNtw.js.map} +1 -1
- package/dist/{utils-DXCsvCXL.js → utils-876N1Sph.js} +2 -2
- package/dist/{utils-DXCsvCXL.js.map → utils-876N1Sph.js.map} +1 -1
- package/dist/{utils-CkxGmQ2_.js → utils-Al_SGg2a.js} +2 -2
- package/dist/{utils-CkxGmQ2_.js.map → utils-Al_SGg2a.js.map} +1 -1
- package/dist/{utils-B4KdjDnp.js → utils-COP7hJ-K.js} +2 -2
- package/dist/{utils-B4KdjDnp.js.map → utils-COP7hJ-K.js.map} +1 -1
- package/dist/{utils-DmOIDVQo.js → utils-w_21RRK6.js} +3 -3
- package/dist/{utils-DmOIDVQo.js.map → utils-w_21RRK6.js.map} +1 -1
- package/dist/{vetra-package-Bl6TC4wx.js → vetra-package-DSyRtkdJ.js} +2 -2
- package/dist/{vetra-package-Bl6TC4wx.js.map → vetra-package-DSyRtkdJ.js.map} +1 -1
- package/package.json +10 -9
- package/dist/index-BvuHC-pU.d.ts.map +0 -1
- package/dist/index-De10KzmZ.d.ts.map +0 -1
- package/dist/index-DtWpYXR0.d.ts.map +0 -1
- package/dist/index-DzKzQN1-.d.ts.map +0 -1
- package/dist/module-Dkt7oNbd.d.ts.map +0 -1
- package/dist/powerhouse.manifest.d.ts +0 -34
- package/dist/powerhouse.manifest.d.ts.map +0 -1
- package/dist/powerhouse.manifest.js +0 -86
- package/dist/powerhouse.manifest.js.map +0 -1
- package/dist/specs-BeVdfCwg.d.ts.map +0 -1
- package/dist/switchboard-Bf0uvxSu.js +0 -8
- /package/dist/{chunk-pbuEa-1d.js → rolldown-runtime-D7D4PA-g.js} +0 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AppModuleV1","DocumentEditorV1","ProcessorModuleV1","SubgraphModuleV1","VetraPackageV1","manifestJson"],"sources":["../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"sourcesContent":["import { AppModule as AppModuleV1 } from \"document-models/app-module/v1\";\nimport { DocumentEditor as DocumentEditorV1 } from \"document-models/document-editor/v1\";\nimport { ProcessorModule as ProcessorModuleV1 } from \"document-models/processor-module/v1\";\nimport { SubgraphModule as SubgraphModuleV1 } from \"document-models/subgraph-module/v1\";\nimport { VetraPackage as VetraPackageV1 } from \"document-models/vetra-package/v1\";\n\n/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\n\nexport const documentModels = [\n AppModuleV1,\n DocumentEditorV1,\n ProcessorModuleV1,\n SubgraphModuleV1,\n VetraPackageV1,\n] as const;\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { appModuleUpgradeManifest } from \"document-models/app-module/upgrades\";\nimport { documentEditorUpgradeManifest } from \"document-models/document-editor/upgrades\";\nimport { processorModuleUpgradeManifest } from \"document-models/processor-module/upgrades\";\nimport { subgraphModuleUpgradeManifest } from \"document-models/subgraph-module/upgrades\";\nimport { vetraPackageUpgradeManifest } from \"document-models/vetra-package/upgrades\";\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [\n appModuleUpgradeManifest,\n documentEditorUpgradeManifest,\n processorModuleUpgradeManifest,\n subgraphModuleUpgradeManifest,\n vetraPackageUpgradeManifest,\n];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { AppEditor } from \"./app-editor/module.js\";\nimport { DocumentEditorEditor } from \"./document-editor/module.js\";\nimport { ProcessorModuleEditor } from \"./processor-editor/module.js\";\nimport { SubgraphModuleEditor } from \"./subgraph-editor/module.js\";\nimport { VetraDriveApp } from \"./vetra-drive-app/module.js\";\nimport { VetraPackageEditor } from \"./vetra-package/module.js\";\n\nexport const editors: EditorModule[] = [\n AppEditor,\n DocumentEditorEditor,\n ProcessorModuleEditor,\n SubgraphModuleEditor,\n VetraDriveApp,\n VetraPackageEditor,\n];\n","import type { Manifest } from \"@powerhousedao/shared/document-model\";\nimport manifestJson from \"./powerhouse.manifest.json\" with { type: \"json\" };\nexport { documentModels } from \"./document-models/document-models.js\";\nexport { upgradeManifests } from \"./document-models/upgrade-manifests.js\";\nexport { editors } from \"./editors/editors.js\";\nexport const manifest: Manifest = manifestJson;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["AppModuleV1","DocumentEditorV1","ProcessorModuleV1","SubgraphModuleV1","VetraPackageV1","manifestJson"],"sources":["../powerhouse.manifest.json","../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"sourcesContent":["","import { AppModule as AppModuleV1 } from \"document-models/app-module/v1\";\nimport { DocumentEditor as DocumentEditorV1 } from \"document-models/document-editor/v1\";\nimport { ProcessorModule as ProcessorModuleV1 } from \"document-models/processor-module/v1\";\nimport { SubgraphModule as SubgraphModuleV1 } from \"document-models/subgraph-module/v1\";\nimport { VetraPackage as VetraPackageV1 } from \"document-models/vetra-package/v1\";\n\n/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\n\nexport const documentModels = [\n AppModuleV1,\n DocumentEditorV1,\n ProcessorModuleV1,\n SubgraphModuleV1,\n VetraPackageV1,\n] as const;\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { appModuleUpgradeManifest } from \"document-models/app-module/upgrades\";\nimport { documentEditorUpgradeManifest } from \"document-models/document-editor/upgrades\";\nimport { processorModuleUpgradeManifest } from \"document-models/processor-module/upgrades\";\nimport { subgraphModuleUpgradeManifest } from \"document-models/subgraph-module/upgrades\";\nimport { vetraPackageUpgradeManifest } from \"document-models/vetra-package/upgrades\";\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [\n appModuleUpgradeManifest,\n documentEditorUpgradeManifest,\n processorModuleUpgradeManifest,\n subgraphModuleUpgradeManifest,\n vetraPackageUpgradeManifest,\n];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { AppEditor } from \"./app-editor/module.js\";\nimport { DocumentEditorEditor } from \"./document-editor/module.js\";\nimport { ProcessorModuleEditor } from \"./processor-editor/module.js\";\nimport { SubgraphModuleEditor } from \"./subgraph-editor/module.js\";\nimport { VetraDriveApp } from \"./vetra-drive-app/module.js\";\nimport { VetraPackageEditor } from \"./vetra-package/module.js\";\n\nexport const editors: EditorModule[] = [\n AppEditor,\n DocumentEditorEditor,\n ProcessorModuleEditor,\n SubgraphModuleEditor,\n VetraDriveApp,\n VetraPackageEditor,\n];\n","import type { Manifest } from \"@powerhousedao/shared/document-model\";\nimport manifestJson from \"./powerhouse.manifest.json\" with { type: \"json\" };\nexport { documentModels } from \"./document-models/document-models.js\";\nexport { upgradeManifests } from \"./document-models/upgrade-manifests.js\";\nexport { editors } from \"./editors/editors.js\";\nexport const manifest: Manifest = manifestJson;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACWA,MAAa,iBAAiB;CAC5BA;CACAC;CACAC;CACAC;CACAC;AACF;;;ACNA,MAAa,mBAAyD;CACpE;CACA;CACA;CACA;CACA;AACF;;;ACLA,MAAa,UAA0B;CACrC;CACA;CACA;CACA;CACA;CACA;AACF;;;ACdA,MAAa,WAAqBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-BFxMdimR.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,OAAO,CAAC;AAExC,SAAS,WAAW,MAAyB;CAC3C,OAAO,KACJ,KAAK,QAAQ;EACZ,IAAI,OAAO,QAAQ,UAAU,OAAO;EACpC,IAAI,eAAe,OAAO,OAAO,IAAI;EACrC,IAAI,OAAO,QAAQ,OAAO,QAAQ,UAAU,OAAO,KAAK,UAAU,GAAG;EACrE,OAAO,GAAG;CACZ,CAAC,CAAC,CACD,KAAK,GAAG;AACb;AAEA,MAAa,SAAS;CACpB,QAAQ,GAAG,SAA0B,WAAW,MAAM,WAAW,IAAI,CAAC;CACtE,OAAO,GAAG,SAA0B,WAAW,KAAK,WAAW,IAAI,CAAC;CACpE,OAAO,GAAG,SAA0B,WAAW,KAAK,WAAW,IAAI,CAAC;CACpE,QAAQ,GAAG,SAA0B,WAAW,MAAM,WAAW,IAAI,CAAC;AACxE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
2
|
-
import { f as reducer, p as actions, r as utils$1 } from "./utils-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { f as reducer, p as actions, r as utils$1 } from "./utils-876N1Sph.js";
|
|
3
3
|
import { createState, defaultBaseState } from "document-model";
|
|
4
4
|
//#region document-models/document-editor/v1/gen/document-model.ts
|
|
5
5
|
const documentModel = {
|
|
@@ -102,4 +102,4 @@ const DocumentEditor = {
|
|
|
102
102
|
//#endregion
|
|
103
103
|
export { utils as n, documentModel as r, DocumentEditor as t };
|
|
104
104
|
|
|
105
|
-
//# sourceMappingURL=module-
|
|
105
|
+
//# sourceMappingURL=module-2JZcvfVs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-
|
|
1
|
+
{"version":3,"file":"module-2JZcvfVs.js","names":["genUtils","customUtils"],"sources":["../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/src/utils.ts","../document-models/document-editor/v1/utils.ts","../document-models/document-editor/v1/module.ts"],"sourcesContent":["import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/document-editor\",\n name: \"Document Editor\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".editor\",\n description:\n \"Declares a document editor (a React UI for editing instances of one or more document models) shipped by a Vetra Reactor Package. Create one Document Editor document per editor, list the document types it can edit, then mark it CONFIRMED to trigger codegen of the editor scaffold under `editors/`. The boilerplate it produces is what you then customize.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a document editor contributed by the package. The editor is\\nregistered against every document type listed in `documentTypes`; Connect picks\\nthe first matching editor when opening a document.\\n\"\"\"\\ntype DocumentEditorState {\\n \"\"\"Display name of the editor. Also determines the generated folder name under `editors/`.\"\"\"\\n name: String!\\n \"\"\"Document types this editor can edit. Each entry has a stable id so it can be removed individually.\"\"\"\\n documentTypes: [DocumentTypeItem!]!\\n \"\"\"Lifecycle status. While DRAFT the editor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\"\"\"\\n status: StatusType!\\n}\\n\\n\"\"\"A document type id (e.g. \\'powerhouse/document-drive\\') attached to the editor with a stable entry id.\"\"\"\\ntype DocumentTypeItem {\\n \"\"\"Stable identifier for the entry; used to remove it.\"\"\"\\n id: OID!\\n \"\"\"Document type id this editor handles (e.g. \\'my-org/invoice\\').\"\"\"\\n documentType: String!\\n}\\n\\n\"\"\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\"\"\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}',\n examples: [],\n initialValue:\n '{\\n \"name\": \"\",\\n \"documentTypes\": [],\\n \"status\": \"DRAFT\"\\n}',\n },\n },\n modules: [\n {\n id: \"73f6d103-47cb-4074-a736-a3eaf5d079bf\",\n name: \"base_operations\",\n description:\n \"Set the editor's identity, lifecycle status, and the document types it handles.\",\n operations: [\n {\n id: \"50a16f00-d25a-4c97-9632-4ce3b951a402\",\n name: \"SET_EDITOR_NAME\",\n description:\n \"Set the display name of the editor. Also determines the generated folder name under `editors/`.\",\n schema: \"input SetEditorNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"acee4272-f29e-4a19-aaf9-bae2cb6652ab\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Register a document type this editor can edit. Caller supplies a stable id so the entry can be removed later.\",\n schema:\n \"input AddDocumentTypeInput {\\n id: OID!\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"6c549776-0fc3-4632-a6c7-8721fa6ee41c\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description: \"Remove a registered document type entry by its id.\",\n schema: \"input RemoveDocumentTypeInput {\\n id: OID!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"e9aa7f08-553b-452f-a494-126ace6b15f7\",\n name: \"SET_EDITOR_STATUS\",\n description:\n \"Move the editor between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED \\u2014 leaving it DRAFT means no editor files are produced.\",\n schema: \"input SetEditorStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { DocumentEditorPHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the DocumentEditor document model */\nexport const utils: DocumentModelUtils<DocumentEditorPHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { DocumentEditorPHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the DocumentEditor document type */\nexport const DocumentEditor = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<DocumentEditorPHState>;\n"],"mappings":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;CACX;CACA,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,CAAC;IACX,cAAc;GAChB;GACA,QAAQ;IACN,QACE;IACF,UAAU,CAAC;IACX,cACE;GACJ;EACF;EACA,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aAAa;KACb,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;GACF;EACF,CACF;EACA,SAAS;EACT,WAAW,CAAC;CACd,CACF;AACF;;;;;;;AEhFA,MAAa,QAAmD;CAC9D,GAAGA;CACH,GAAGC;AACL;;;;ACAA,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,iBAAiB,GAAG,aAAa;AAC9D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
2
|
-
import { f as reducer, p as actions, r as utils$1 } from "./utils-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { f as reducer, p as actions, r as utils$1 } from "./utils-COP7hJ-K.js";
|
|
3
3
|
import { createState, defaultBaseState } from "document-model";
|
|
4
4
|
//#region document-models/app-module/v1/gen/document-model.ts
|
|
5
5
|
const documentModel = {
|
|
@@ -128,4 +128,4 @@ const AppModule = {
|
|
|
128
128
|
//#endregion
|
|
129
129
|
export { utils as n, documentModel as r, AppModule as t };
|
|
130
130
|
|
|
131
|
-
//# sourceMappingURL=module-
|
|
131
|
+
//# sourceMappingURL=module-Caxhis1M.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-
|
|
1
|
+
{"version":3,"file":"module-Caxhis1M.js","names":["genUtils","customUtils"],"sources":["../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/src/utils.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/module.ts"],"sourcesContent":["import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/app\",\n name: \"App Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".app\",\n description:\n \"Declares a custom Drive App (a drive-level UI surface) shipped by a Vetra Reactor Package. Use one App Module document per drive app: configure which document types it handles, whether it accepts drag-and-drop, and mark it CONFIRMED to trigger codegen of the corresponding app scaffold under `apps/`.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a Drive App contributed by the package. Drive apps render a\\ncustom view at the drive level (instead of, or alongside, the document file\\ntree) and can opt into which document types they accept.\\n\"\"\"\\ntype AppModuleState {\\n \"\"\"Display name of the drive app. Also used as the source for the generated folder name under `apps/`.\"\"\"\\n name: String!\\n \"\"\"Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation.\"\"\"\\n status: StatusType!\\n \"\"\"Document type ids this app handles. `null` means the app accepts any document type; an empty list means it accepts none.\"\"\"\\n allowedDocumentTypes: [String!]\\n \"\"\"Whether the app surface accepts dropped files from the user. Defaults to true.\"\"\"\\n isDragAndDropEnabled: Boolean!\\n}\\n\\n\"\"\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\"\"\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}',\n examples: [],\n initialValue:\n '{\\n \"name\": \"\",\\n \"status\": \"DRAFT\",\\n \"allowedDocumentTypes\": null,\\n \"isDragAndDropEnabled\": true\\n}',\n },\n },\n modules: [\n {\n id: \"d274599a-ceb5-4f2b-8651-b25787306734\",\n name: \"base_operations\",\n description:\n \"Set the app's identity, lifecycle status, and the document types it handles.\",\n operations: [\n {\n id: \"f2ba2ddc-8527-4162-93bd-e045e9932013\",\n name: \"SET_APP_NAME\",\n description:\n \"Set the display name of the drive app. Also determines the generated folder name under `apps/`.\",\n schema: \"input SetAppNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"c842efa4-154c-4fd9-9d12-42bec51af4e9\",\n name: \"SET_APP_STATUS\",\n description:\n \"Move the app between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema: \"input SetAppStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"7376f168-695f-4aef-94d0-6e381666358c\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Append a document type id to the list of types this app handles. Initializes the list if it was `null` (accept-any).\",\n schema:\n \"input AddDocumentTypeInput {\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"310e4e5b-3f14-4e9a-8e09-5583c7698a65\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description:\n \"Remove a document type id from the handled list. No-op if the type is not present.\",\n schema:\n \"input RemoveDocumentTypeInput {\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"b365727a-7df3-48f0-a4f8-02362f02ad1d\",\n name: \"SET_DOCUMENT_TYPES\",\n description:\n \"Replace the entire allowed-document-types list in one call. Pass an empty list to accept none.\",\n schema:\n \"input SetDocumentTypesInput {\\n documentTypes: [String!]!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n {\n id: \"270faa10-92e9-40d0-b128-2de32704bcb5\",\n name: \"dnd_operations\",\n description:\n \"Toggle drag-and-drop file handling for the app surface.\",\n operations: [\n {\n id: \"077b1ab8-cb32-4b4e-a1fa-76178188c6a1\",\n name: \"SET_DRAG_AND_DROP_ENABLED\",\n description:\n \"Enable or disable drag-and-drop file handling on the app surface.\",\n schema:\n \"input SetDragAndDropEnabledInput {\\n enabled: Boolean!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { AppModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the AppModule document model */\nexport const utils: DocumentModelUtils<AppModulePHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { AppModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the AppModule document type */\nexport const AppModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<AppModulePHState>;\n"],"mappings":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;CACX;CACA,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,CAAC;IACX,cAAc;GAChB;GACA,QAAQ;IACN,QACE;IACF,UAAU,CAAC;IACX,cACE;GACJ;EACF;EACA,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;GACF;EACF,GACA;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY,CACV;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QACE;IACF,UAAU;IACV,SAAS;IACT,QAAQ,CAAC;IACT,UAAU,CAAC;IACX,OAAO;GACT,CACF;EACF,CACF;EACA,SAAS;EACT,WAAW,CAAC;CACd,CACF;AACF;;;;;;;AEpHA,MAAa,QAA8C;CACzD,GAAGA;CACH,GAAGC;AACL;;;;ACAA,MAAa,YAAY;CACvB,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,iBAAiB,GAAG,aAAa;AAC9D"}
|
|
@@ -2,7 +2,7 @@ import { lazy } from "react";
|
|
|
2
2
|
//#region editors/app-editor/module.ts
|
|
3
3
|
/** Document editor module for the "powerhouse/app" document type */
|
|
4
4
|
const AppEditor = {
|
|
5
|
-
Component: lazy(() => import("./editor-
|
|
5
|
+
Component: lazy(() => import("./editor-BXOEFIDj.js")),
|
|
6
6
|
documentTypes: ["powerhouse/app"],
|
|
7
7
|
config: {
|
|
8
8
|
id: "app-editor",
|
|
@@ -13,7 +13,7 @@ const AppEditor = {
|
|
|
13
13
|
//#region editors/document-editor/module.ts
|
|
14
14
|
/** Document editor module for the "powerhouse/document-editor" document type */
|
|
15
15
|
const DocumentEditorEditor = {
|
|
16
|
-
Component: lazy(() => import("./editor-
|
|
16
|
+
Component: lazy(() => import("./editor-DFEeM_dy.js")),
|
|
17
17
|
documentTypes: ["powerhouse/document-editor"],
|
|
18
18
|
config: {
|
|
19
19
|
id: "document-editor-editor",
|
|
@@ -24,7 +24,7 @@ const DocumentEditorEditor = {
|
|
|
24
24
|
//#region editors/processor-editor/module.ts
|
|
25
25
|
/** Document editor module for the "powerhouse/processor" document type */
|
|
26
26
|
const ProcessorModuleEditor = {
|
|
27
|
-
Component: lazy(() => import("./editor-
|
|
27
|
+
Component: lazy(() => import("./editor-C5a0rBQj.js")),
|
|
28
28
|
documentTypes: ["powerhouse/processor"],
|
|
29
29
|
config: {
|
|
30
30
|
id: "processor-module-editor",
|
|
@@ -35,7 +35,7 @@ const ProcessorModuleEditor = {
|
|
|
35
35
|
//#region editors/subgraph-editor/module.ts
|
|
36
36
|
/** Document editor module for the "powerhouse/subgraph" document type */
|
|
37
37
|
const SubgraphModuleEditor = {
|
|
38
|
-
Component: lazy(() => import("./editor-
|
|
38
|
+
Component: lazy(() => import("./editor-CiX3Tq3g.js")),
|
|
39
39
|
documentTypes: ["powerhouse/subgraph"],
|
|
40
40
|
config: {
|
|
41
41
|
id: "subgraph-module-editor",
|
|
@@ -45,7 +45,7 @@ const SubgraphModuleEditor = {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region editors/vetra-drive-app/module.ts
|
|
47
47
|
const VetraDriveApp = {
|
|
48
|
-
Component: lazy(() => import("./editor-
|
|
48
|
+
Component: lazy(() => import("./editor-DpadPeVq.js")),
|
|
49
49
|
documentTypes: ["powerhouse/document-drive"],
|
|
50
50
|
config: {
|
|
51
51
|
id: "vetra-drive-app",
|
|
@@ -56,7 +56,7 @@ const VetraDriveApp = {
|
|
|
56
56
|
//#region editors/vetra-package/module.ts
|
|
57
57
|
/** Document editor module for the "powerhouse/package" document type */
|
|
58
58
|
const VetraPackageEditor = {
|
|
59
|
-
Component: lazy(() => import("./editor-
|
|
59
|
+
Component: lazy(() => import("./editor-DpZVlVN1.js")),
|
|
60
60
|
documentTypes: ["powerhouse/package"],
|
|
61
61
|
config: {
|
|
62
62
|
id: "vetra-package-editor",
|
|
@@ -66,4 +66,4 @@ const VetraPackageEditor = {
|
|
|
66
66
|
//#endregion
|
|
67
67
|
export { DocumentEditorEditor as a, ProcessorModuleEditor as i, VetraDriveApp as n, AppEditor as o, SubgraphModuleEditor as r, VetraPackageEditor as t };
|
|
68
68
|
|
|
69
|
-
//# sourceMappingURL=module-
|
|
69
|
+
//# sourceMappingURL=module-CdpGkPNN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-
|
|
1
|
+
{"version":3,"file":"module-CdpGkPNN.js","names":[],"sources":["../editors/app-editor/module.ts","../editors/document-editor/module.ts","../editors/processor-editor/module.ts","../editors/subgraph-editor/module.ts","../editors/vetra-drive-app/module.ts","../editors/vetra-package/module.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/app\" document type */\nexport const AppEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/app\"],\n config: {\n id: \"app-editor\",\n name: \"AppEditor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/document-editor\" document type */\nexport const DocumentEditorEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/document-editor\"],\n config: {\n id: \"document-editor-editor\",\n name: \"Document Editor Editor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/processor\" document type */\nexport const ProcessorModuleEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/processor\"],\n config: {\n id: \"processor-module-editor\",\n name: \"Processor Module Editor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/subgraph\" document type */\nexport const SubgraphModuleEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/subgraph\"],\n config: {\n id: \"subgraph-module-editor\",\n name: \"Subgraph Module Editor\",\n },\n};\n","import type { EditorModule } from \"@powerhousedao/shared/document-model\";\nimport { lazy } from \"react\";\n\nexport const VetraDriveApp: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/document-drive\"],\n config: {\n id: \"vetra-drive-app\",\n name: \"Vetra Drive App\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/package\" document type */\nexport const VetraPackageEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/package\"],\n config: {\n id: \"vetra-package-editor\",\n name: \"Vetra Package Editor\",\n },\n};\n"],"mappings":";;;AAQA,MAAa,YAA0B;CACrC,WAAW,WAAW,OAAO,uBAAc;CAC3C,eAAe,CAAC,gBAAgB;CAChC,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;AACF;;;;ACPA,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,uBAAc;CAC3C,eAAe,CAAC,4BAA4B;CAC5C,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;AACF;;;;ACPA,MAAa,wBAAsC;CACjD,WAAW,WAAW,OAAO,uBAAc;CAC3C,eAAe,CAAC,sBAAsB;CACtC,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;AACF;;;;ACPA,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,uBAAc;CAC3C,eAAe,CAAC,qBAAqB;CACrC,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;AACF;;;ACZA,MAAa,gBAA8B;CACzC,WAAW,WAAW,OAAO,uBAAc;CAC3C,eAAe,CAAC,2BAA2B;CAC3C,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;AACF;;;;ACFA,MAAa,qBAAmC;CAC9C,WAAW,WAAW,OAAO,uBAAc;CAC3C,eAAe,CAAC,oBAAoB;CACpC,QAAQ;EACN,IAAI;EACJ,MAAM;CACR;AACF"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import * as document_model0 from "document-model";
|
|
2
1
|
import { Action, DocumentModelGlobalState, DocumentModelUtils, PHAuthState, PHBaseState, PHDocument, PHDocumentController, PHDocumentState, Reducer, SignalDispatch } from "document-model";
|
|
3
2
|
import * as z$1 from "zod";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
import { DocumentDispatch } from "@powerhousedao/reactor-browser";
|
|
6
|
-
|
|
7
5
|
//#region document-models/vetra-package/v1/gen/base-operations/actions.d.ts
|
|
8
6
|
type SetPackageNameAction = Action & {
|
|
9
7
|
type: "SET_PACKAGE_NAME";
|
|
@@ -55,13 +53,13 @@ type Maybe<T> = T | null | undefined;
|
|
|
55
53
|
type InputMaybe<T> = T | null | undefined;
|
|
56
54
|
type Exact<T extends {
|
|
57
55
|
[key: string]: unknown;
|
|
58
|
-
}> = { [K in keyof T]: T[K] };
|
|
59
|
-
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]
|
|
60
|
-
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]
|
|
56
|
+
}> = { [K in keyof T]: T[K]; };
|
|
57
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]>; };
|
|
58
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]>; };
|
|
61
59
|
type MakeEmpty<T extends {
|
|
62
60
|
[key: string]: unknown;
|
|
63
|
-
}, K extends keyof T> = { [_ in K]?: never };
|
|
64
|
-
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
|
|
61
|
+
}, K extends keyof T> = { [_ in K]?: never; };
|
|
62
|
+
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; };
|
|
65
63
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
66
64
|
type Scalars = {
|
|
67
65
|
ID: {
|
|
@@ -195,12 +193,16 @@ type AddPackageKeywordInput = {
|
|
|
195
193
|
};
|
|
196
194
|
/** Author/maintainer of the Vetra Package. */
|
|
197
195
|
type Author = {
|
|
198
|
-
/** Display name of the author or organization. */
|
|
196
|
+
/** Display name of the author or organization. */
|
|
197
|
+
name: Maybe<Scalars["String"]["output"]>;
|
|
198
|
+
/** Author's website URL. */
|
|
199
199
|
website: Maybe<Scalars["URL"]["output"]>;
|
|
200
200
|
};
|
|
201
201
|
/** A single search keyword attached to the package. */
|
|
202
202
|
type Keyword = {
|
|
203
|
-
/** Stable identifier for the keyword entry; used to remove it. */
|
|
203
|
+
/** Stable identifier for the keyword entry; used to remove it. */
|
|
204
|
+
id: Scalars["OID"]["output"];
|
|
205
|
+
/** Display label for the keyword (e.g. 'invoicing', 'defi'). */
|
|
204
206
|
label: Scalars["String"]["output"];
|
|
205
207
|
};
|
|
206
208
|
type RemovePackageKeywordInput = {
|
|
@@ -237,12 +239,19 @@ type SetPackageNpmUrlInput = {
|
|
|
237
239
|
* created empty and filled in incrementally during development.
|
|
238
240
|
*/
|
|
239
241
|
type VetraPackageState = {
|
|
240
|
-
/** Author/maintainer information surfaced in the published package metadata. */
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
/** Author/maintainer information surfaced in the published package metadata. */
|
|
243
|
+
author: Author;
|
|
244
|
+
/** Free-form category label used to group packages in directories (e.g. 'Finance', 'Productivity'). */
|
|
245
|
+
category: Maybe<Scalars["String"]["output"]>;
|
|
246
|
+
/** One-paragraph summary of what the package provides. Shown on package listing pages. */
|
|
247
|
+
description: Maybe<Scalars["String"]["output"]>;
|
|
248
|
+
/** Public source code URL (typically a GitHub repository). */
|
|
249
|
+
githubUrl: Maybe<Scalars["URL"]["output"]>;
|
|
250
|
+
/** Search keywords associated with the package. Each keyword has a stable id so it can be removed individually. */
|
|
251
|
+
keywords: Array<Keyword>;
|
|
252
|
+
/** Human-readable package name (e.g. 'Pizza Plaza'). Distinct from the npm package id. */
|
|
253
|
+
name: Maybe<Scalars["String"]["output"]>;
|
|
254
|
+
/** Published npm package URL. Set once the package has been released. */
|
|
246
255
|
npmUrl: Maybe<Scalars["URL"]["output"]>;
|
|
247
256
|
};
|
|
248
257
|
//#endregion
|
|
@@ -254,30 +263,6 @@ type VetraPackagePHState = PHBaseState & {
|
|
|
254
263
|
};
|
|
255
264
|
type VetraPackageDocument = PHDocument<VetraPackagePHState>;
|
|
256
265
|
//#endregion
|
|
257
|
-
//#region document-models/vetra-package/v1/actions.d.ts
|
|
258
|
-
/** Actions for the VetraPackage document model */
|
|
259
|
-
declare const actions: {
|
|
260
|
-
setPackageName: (input: SetPackageNameInput) => SetPackageNameAction;
|
|
261
|
-
setPackageDescription: (input: SetPackageDescriptionInput) => SetPackageDescriptionAction;
|
|
262
|
-
setPackageCategory: (input: SetPackageCategoryInput) => SetPackageCategoryAction;
|
|
263
|
-
setPackageAuthor: (input: SetPackageAuthorInput) => SetPackageAuthorAction;
|
|
264
|
-
setPackageAuthorName: (input: SetPackageAuthorNameInput) => SetPackageAuthorNameAction;
|
|
265
|
-
setPackageAuthorWebsite: (input: SetPackageAuthorWebsiteInput) => SetPackageAuthorWebsiteAction;
|
|
266
|
-
addPackageKeyword: (input: AddPackageKeywordInput) => AddPackageKeywordAction;
|
|
267
|
-
removePackageKeyword: (input: RemovePackageKeywordInput) => RemovePackageKeywordAction;
|
|
268
|
-
setPackageGithubUrl: (input: SetPackageGithubUrlInput) => SetPackageGithubUrlAction;
|
|
269
|
-
setPackageNpmUrl: (input: SetPackageNpmUrlInput) => SetPackageNpmUrlAction;
|
|
270
|
-
setName: (name: string | {
|
|
271
|
-
name: string;
|
|
272
|
-
}) => document_model0.SetNameAction;
|
|
273
|
-
setPreferredEditor: (input: string | null | {
|
|
274
|
-
preferredEditor: string | null;
|
|
275
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
276
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
277
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
278
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
279
|
-
};
|
|
280
|
-
//#endregion
|
|
281
266
|
//#region document-models/vetra-package/v1/gen/base-operations/operations.d.ts
|
|
282
267
|
interface VetraPackageBaseOperationsOperations {
|
|
283
268
|
setPackageNameOperation: (state: VetraPackageState, action: SetPackageNameAction, dispatch?: SignalDispatch) => void;
|
|
@@ -293,7 +278,7 @@ interface VetraPackageBaseOperationsOperations {
|
|
|
293
278
|
}
|
|
294
279
|
//#endregion
|
|
295
280
|
//#region document-models/vetra-package/v1/gen/controller.d.ts
|
|
296
|
-
declare const VetraPackageController: new (initialDocument?:
|
|
281
|
+
declare const VetraPackageController: new (initialDocument?: import("document-model").PHDocument<VetraPackagePHState> | undefined) => PHDocumentController<VetraPackagePHState> & import("document-model").ActionMap<VetraPackageBaseOperationsAction, PHDocumentController<VetraPackagePHState>>;
|
|
297
282
|
declare namespace creators_d_exports {
|
|
298
283
|
export { addPackageKeyword, removePackageKeyword, setPackageAuthor, setPackageAuthorName, setPackageAuthorWebsite, setPackageCategory, setPackageDescription, setPackageGithubUrl, setPackageName, setPackageNpmUrl };
|
|
299
284
|
}
|
|
@@ -372,13 +357,6 @@ declare function isVetraPackageDocument(document: unknown): document is VetraPac
|
|
|
372
357
|
/** Simple helper function to assert that a document is a VetraPackage document */
|
|
373
358
|
declare function assertIsVetraPackageDocument(document: unknown): asserts document is VetraPackageDocument;
|
|
374
359
|
//#endregion
|
|
375
|
-
//#region document-models/vetra-package/v1/gen/document-type.d.ts
|
|
376
|
-
/**
|
|
377
|
-
* WARNING: DO NOT EDIT
|
|
378
|
-
* This file is auto-generated and updated by codegen
|
|
379
|
-
*/
|
|
380
|
-
declare const vetraPackageDocumentType = "powerhouse/package";
|
|
381
|
-
//#endregion
|
|
382
360
|
//#region document-models/vetra-package/v1/gen/ph-factories.d.ts
|
|
383
361
|
declare function defaultGlobalState(): VetraPackageState;
|
|
384
362
|
declare function defaultLocalState(): VetraPackageLocalState;
|
|
@@ -400,7 +378,7 @@ declare function createVetraPackageDocument(state?: Partial<{
|
|
|
400
378
|
declare const reducer: Reducer<VetraPackagePHState>;
|
|
401
379
|
//#endregion
|
|
402
380
|
//#region document-models/vetra-package/v1/gen/schema/zod.d.ts
|
|
403
|
-
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]
|
|
381
|
+
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]>; }>;
|
|
404
382
|
type definedNonNullAny = {};
|
|
405
383
|
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
406
384
|
declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
@@ -440,8 +418,13 @@ declare const utils: DocumentModelUtils<VetraPackagePHState>;
|
|
|
440
418
|
/** Document model module for the VetraPackage document type */
|
|
441
419
|
declare const VetraPackage: {
|
|
442
420
|
readonly version: 1;
|
|
443
|
-
readonly reducer:
|
|
421
|
+
readonly reducer: import("document-model").Reducer<VetraPackagePHState>;
|
|
444
422
|
readonly actions: {
|
|
423
|
+
setName: typeof import("document-model").setName;
|
|
424
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
425
|
+
undo: typeof import("document-model").undo;
|
|
426
|
+
redo: typeof import("document-model").redo;
|
|
427
|
+
noop: typeof import("document-model").noop;
|
|
445
428
|
setPackageName: (input: SetPackageNameInput) => SetPackageNameAction;
|
|
446
429
|
setPackageDescription: (input: SetPackageDescriptionInput) => SetPackageDescriptionAction;
|
|
447
430
|
setPackageCategory: (input: SetPackageCategoryInput) => SetPackageCategoryAction;
|
|
@@ -452,19 +435,11 @@ declare const VetraPackage: {
|
|
|
452
435
|
removePackageKeyword: (input: RemovePackageKeywordInput) => RemovePackageKeywordAction;
|
|
453
436
|
setPackageGithubUrl: (input: SetPackageGithubUrlInput) => SetPackageGithubUrlAction;
|
|
454
437
|
setPackageNpmUrl: (input: SetPackageNpmUrlInput) => SetPackageNpmUrlAction;
|
|
455
|
-
setName: (name: string | {
|
|
456
|
-
name: string;
|
|
457
|
-
}) => document_model0.SetNameAction;
|
|
458
|
-
setPreferredEditor: (input: string | null | {
|
|
459
|
-
preferredEditor: string | null;
|
|
460
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
461
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
462
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
463
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
464
438
|
};
|
|
465
|
-
readonly utils:
|
|
466
|
-
readonly documentModel:
|
|
439
|
+
readonly utils: import("document-model").DocumentModelUtils<VetraPackagePHState>;
|
|
440
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
467
441
|
};
|
|
468
442
|
//#endregion
|
|
469
|
-
export {
|
|
470
|
-
|
|
443
|
+
export { VetraPackagePHState as $, VetraPackageDocumentHeaderSchema as A, SetPackageNameAction as At, removePackageKeyword as B, isDefinedNonNullAny as C, RemovePackageKeywordAction as Ct, defaultGlobalState as D, SetPackageCategoryAction as Dt, createVetraPackageDocument as E, SetPackageAuthorWebsiteAction as Et, isVetraPackageDocument as F, setPackageDescription as G, setPackageAuthorName as H, isVetraPackageState as I, setPackageNpmUrl as J, setPackageGithubUrl as K, documentModel as L, VetraPackagePHStateSchema as M, VetraPackageBaseOperationsAction as Mt, assertIsVetraPackageDocument as N, defaultLocalState as O, SetPackageDescriptionAction as Ot, assertIsVetraPackageState as P, VetraPackageLocalState as Q, addPackageKeyword as R, definedNonNullAnySchema as S, AddPackageKeywordAction as St, createState$1 as T, SetPackageAuthorNameAction as Tt, setPackageAuthorWebsite as U, setPackageAuthor as V, setPackageCategory as W, VetraPackageBaseOperationsOperations as X, VetraPackageController as Y, VetraPackageDocument as Z, SetPackageDescriptionInputSchema as _, SetPackageGithubUrlInput as _t, useVetraPackageDocumentsInSelectedDrive as a, Keyword as at, SetPackageNpmUrlInputSchema as b, VetraPackageState as bt, initialLocalState as c, MakeOptional as ct, KeywordSchema as d, Scalars as dt, AddPackageKeywordInput as et, RemovePackageKeywordInputSchema as f, SetPackageAuthorInput as ft, SetPackageCategoryInputSchema as g, SetPackageDescriptionInput as gt, SetPackageAuthorWebsiteInputSchema as h, SetPackageCategoryInput as ht, useVetraPackageDocumentById as i, InputMaybe as it, VetraPackageDocumentSchema as j, SetPackageNpmUrlAction as jt, defaultPHState as k, SetPackageGithubUrlAction as kt, AddPackageKeywordInputSchema as l, Maybe as lt, SetPackageAuthorNameInputSchema as m, SetPackageAuthorWebsiteInput as mt, utils as n, Exact as nt, useVetraPackageDocumentsInSelectedFolder as o, MakeEmpty as ot, SetPackageAuthorInputSchema as p, SetPackageAuthorNameInput as pt, setPackageName as q, useSelectedVetraPackageDocument as r, Incremental as rt, initialGlobalState as s, MakeMaybe as st, VetraPackage as t, Author as tt, AuthorSchema as u, RemovePackageKeywordInput as ut, SetPackageGithubUrlInputSchema as v, SetPackageNameInput as vt, reducer as w, SetPackageAuthorAction as wt, VetraPackageStateSchema as x, VetraPackageAction as xt, SetPackageNameInputSchema as y, SetPackageNpmUrlInput as yt, creators_d_exports as z };
|
|
444
|
+
export {};
|
|
445
|
+
//# sourceMappingURL=module-D4lqkHHK.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-D4lqkHHK.d.ts","names":[],"sources":["../document-models/vetra-package/v1/gen/base-operations/actions.ts","../document-models/vetra-package/v1/gen/actions.ts","../document-models/vetra-package/v1/gen/schema/types.ts","../document-models/vetra-package/v1/gen/types.ts","../document-models/vetra-package/v1/gen/base-operations/operations.ts","../document-models/vetra-package/v1/gen/controller.ts","../document-models/vetra-package/v1/gen/base-operations/creators.ts","../document-models/vetra-package/v1/gen/document-model.ts","../document-models/vetra-package/v1/gen/document-schema.ts","../document-models/vetra-package/v1/gen/ph-factories.ts","../document-models/vetra-package/v1/gen/reducer.ts","../document-models/vetra-package/v1/gen/schema/zod.ts","../document-models/vetra-package/v1/gen/utils.ts","../document-models/vetra-package/v1/hooks.ts","../document-models/vetra-package/v1/utils.ts","../document-models/vetra-package/v1/module.ts"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
2
|
-
import { f as reducer, p as actions, r as utils$1 } from "./utils-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { f as reducer, p as actions, r as utils$1 } from "./utils-w_21RRK6.js";
|
|
3
3
|
import { createState, defaultBaseState } from "document-model";
|
|
4
4
|
//#region document-models/processor-module/v1/gen/document-model.ts
|
|
5
5
|
const documentModel = {
|
|
@@ -135,4 +135,4 @@ const ProcessorModule = {
|
|
|
135
135
|
//#endregion
|
|
136
136
|
export { utils as n, documentModel as r, ProcessorModule as t };
|
|
137
137
|
|
|
138
|
-
//# sourceMappingURL=module-
|
|
138
|
+
//# sourceMappingURL=module-Db8mmgzN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-
|
|
1
|
+
{"version":3,"file":"module-Db8mmgzN.js","names":["genUtils","customUtils"],"sources":["../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/src/utils.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/module.ts"],"sourcesContent":["import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/processor\",\n name: \"Processor Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".processor\",\n description:\n \"Declares a processor (a server-side function that reacts to document operations to build read models, send notifications, sync to external systems, etc.) shipped by a Vetra Reactor Package. Create one Processor Module document per processor: pick the processor type, list the document types it subscribes to, attach it to any drive apps that should run it, and mark it CONFIRMED to trigger codegen of the processor scaffold under `processors/`.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a processor contributed by the package. A processor receives\\noperations from documents of matching types and runs server-side logic (e.g.\\nbuilding a read model, indexing, syncing to an external system).\\n\"\"\"\\ntype ProcessorModuleState {\\n \"\"\"Display name of the processor. Also determines the generated folder name under `processors/`.\"\"\"\\n name: String!\\n \"\"\"Processor implementation kind (e.g. \\'read-model\\', \\'relational-db\\'). Determines which scaffold codegen emits.\"\"\"\\n type: String!\\n \"\"\"Document types this processor subscribes to. Each entry has a stable id so it can be removed individually.\"\"\"\\n documentTypes: [DocumentTypeItem!]!\\n \"\"\"Lifecycle status. While DRAFT the processor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\"\"\"\\n status: StatusType!\\n \"\"\"Drive-app names this processor is attached to. The processor runs in the context of each listed app.\"\"\"\\n processorApps: [String!]!\\n}\\n\\n\"\"\"A document type id (e.g. \\'my-org/invoice\\') attached to the processor with a stable entry id.\"\"\"\\ntype DocumentTypeItem {\\n \"\"\"Stable identifier for the entry; used to remove it.\"\"\"\\n id: OID!\\n \"\"\"Document type id this processor subscribes to.\"\"\"\\n documentType: String!\\n}\\n\\n\"\"\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\"\"\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}',\n examples: [],\n initialValue:\n '{\\n \"name\": \"\",\\n \"type\": \"\",\\n \"documentTypes\": [],\\n \"status\": \"DRAFT\",\\n \"processorApps\": []\\n}',\n },\n },\n modules: [\n {\n id: \"91ad39c1-4e8b-4127-b3c8-e835b85e6360\",\n name: \"base_operations\",\n description:\n \"Set the processor's identity, kind, lifecycle status, subscribed document types, and attached drive apps.\",\n operations: [\n {\n id: \"6f3a5c90-39f2-4302-a073-6195a71c5054\",\n name: \"SET_PROCESSOR_NAME\",\n description:\n \"Set the display name of the processor. Also determines the generated folder name under `processors/`.\",\n schema: \"input SetProcessorNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"b8f28bb4-c6ae-40e6-86fa-29ef14ff8667\",\n name: \"SET_PROCESSOR_TYPE\",\n description:\n \"Set the processor implementation kind (e.g. 'read-model', 'relational-db'). Determines which scaffold codegen emits.\",\n schema: \"input SetProcessorTypeInput {\\n type: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"fbbd7a71-c495-4efc-b8f6-1e57798dbbb4\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Subscribe the processor to a document type. Caller supplies a stable id so the entry can be removed later.\",\n schema:\n \"input AddDocumentTypeInput {\\n id: OID!\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"544d413f-423c-4d97-9570-84a19bffeab9\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description:\n \"Unsubscribe the processor from a document type by removing its entry id.\",\n schema: \"input RemoveDocumentTypeInput {\\n id: OID!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"df5eb500-7308-498c-9b80-028878ee198b\",\n name: \"ADD_PROCESSOR_APP\",\n description:\n \"Attach the processor to a drive app by name. The processor will run in the context of that app.\",\n schema:\n \"input AddProcessorAppInput {\\n processorApp: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"07e4168f-1a7b-41ef-953d-219028be7bb9\",\n name: \"REMOVE_PROCESSOR_APP\",\n description:\n \"Detach the processor from a drive app by name. No-op if the app is not currently attached.\",\n schema:\n \"input RemoveProcessorAppInput {\\n processorApp: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"7b6706eb-5e25-4d64-829a-e3a251380fd1\",\n name: \"SET_PROCESSOR_STATUS\",\n description:\n \"Move the processor between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema:\n \"input SetProcessorStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { ProcessorModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the ProcessorModule document model */\nexport const utils: DocumentModelUtils<ProcessorModulePHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { ProcessorModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the ProcessorModule document type */\nexport const ProcessorModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<ProcessorModulePHState>;\n"],"mappings":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;CACX;CACA,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,CAAC;IACX,cAAc;GAChB;GACA,QAAQ;IACN,QACE;IACF,UAAU,CAAC;IACX,cACE;GACJ;EACF;EACA,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;GACF;EACF,CACF;EACA,SAAS;EACT,WAAW,CAAC;CACd,CACF;AACF;;;;;;;AExHA,MAAa,QAAoD;CAC/D,GAAGA;CACH,GAAGC;AACL;;;;ACAA,MAAa,kBAAkB;CAC7B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,iBAAiB,GAAG,aAAa;AAC9D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, createState, defaultBaseState, isDocumentAction } from "document-model";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -451,4 +451,4 @@ const VetraPackage = {
|
|
|
451
451
|
//#endregion
|
|
452
452
|
export { KeywordSchema as A, VetraPackageStateSchema as B, setPackageCategory as C, setPackageNpmUrl as D, setPackageName as E, SetPackageCategoryInputSchema as F, isDefinedNonNullAny as H, SetPackageDescriptionInputSchema as I, SetPackageGithubUrlInputSchema as L, SetPackageAuthorInputSchema as M, SetPackageAuthorNameInputSchema as N, AddPackageKeywordInputSchema as O, SetPackageAuthorWebsiteInputSchema as P, SetPackageNameInputSchema as R, setPackageAuthorWebsite as S, setPackageGithubUrl as T, definedNonNullAnySchema as V, addPackageKeyword as _, utils$1 as a, setPackageAuthor as b, VetraPackagePHStateSchema as c, isVetraPackageDocument as d, isVetraPackageState as f, actions as g, documentModel as h, initialLocalState as i, RemovePackageKeywordInputSchema as j, AuthorSchema as k, assertIsVetraPackageDocument as l, reducer as m, utils as n, VetraPackageDocumentHeaderSchema as o, vetraPackageDocumentType as p, initialGlobalState as r, VetraPackageDocumentSchema as s, VetraPackage as t, assertIsVetraPackageState as u, creators_exports as v, setPackageDescription as w, setPackageAuthorName as x, removePackageKeyword as y, SetPackageNpmUrlInputSchema as z };
|
|
453
453
|
|
|
454
|
-
//# sourceMappingURL=module-
|
|
454
|
+
//# sourceMappingURL=module-FXJRy_1W.js.map
|