@powerhousedao/vetra 6.0.0-dev.249 → 6.0.0-dev.250
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/app-module-Bbj7PI-S.js +94 -0
- package/dist/app-module-Bbj7PI-S.js.map +1 -0
- package/dist/connect-CTIucT0o.js +6 -0
- package/dist/connect-CTIucT0o.js.map +1 -0
- package/dist/document-editor-DS-bZMKx.js +93 -0
- package/dist/document-editor-DS-bZMKx.js.map +1 -0
- package/dist/document-models/app-module/index.d.ts +349 -2
- package/dist/document-models/app-module/index.d.ts.map +1 -0
- package/dist/document-models/app-module/index.js +3 -2
- package/dist/document-models/document-editor/index.d.ts +325 -2
- package/dist/document-models/document-editor/index.d.ts.map +1 -0
- package/dist/document-models/document-editor/index.js +3 -2
- package/dist/document-models/index.d.ts +6 -29
- package/dist/document-models/index.js +6 -2
- package/dist/document-models/processor-module/index.d.ts +357 -2
- package/dist/document-models/processor-module/index.d.ts.map +1 -0
- package/dist/document-models/processor-module/index.js +3 -2
- package/dist/document-models/subgraph-module/index.d.ts +296 -2
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -0
- package/dist/document-models/subgraph-module/index.js +3 -2
- package/dist/document-models/vetra-package/index.d.ts +386 -2
- package/dist/document-models/vetra-package/index.d.ts.map +1 -0
- package/dist/document-models/vetra-package/index.js +3 -2
- package/dist/{editor-DqkJ0B4G.js → editor-BSQfwcdz.js} +5 -4
- package/dist/{editor-DqkJ0B4G.js.map → editor-BSQfwcdz.js.map} +1 -1
- package/dist/{editor-CGNcK2z0.js → editor-Bku8e2dr.js} +5 -5
- package/dist/{editor-CGNcK2z0.js.map → editor-Bku8e2dr.js.map} +1 -1
- package/dist/{editor-ddcGG42r.js → editor-CbtrPBTP.js} +5 -4
- package/dist/{editor-ddcGG42r.js.map → editor-CbtrPBTP.js.map} +1 -1
- package/dist/{editor-D4FHn5u4.js → editor-D70FYIwV.js} +2 -2
- package/dist/{editor-D4FHn5u4.js.map → editor-D70FYIwV.js.map} +1 -1
- package/dist/{editor-CdzYJozI.js → editor-Dtg8STyT.js} +5 -5
- package/dist/{editor-CdzYJozI.js.map → editor-Dtg8STyT.js.map} +1 -1
- package/dist/{editor-CgkzQJ4g.js → editor-SfVorwsP.js} +6 -6
- package/dist/{editor-CgkzQJ4g.js.map → editor-SfVorwsP.js.map} +1 -1
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.d.ts +13 -12
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +2 -2
- package/dist/{codegen-PnsnCMkw.js → factory-CweZppg6.js} +51 -3
- package/dist/factory-CweZppg6.js.map +1 -0
- package/dist/factory-D8ZDOMP3.js +79 -0
- package/dist/factory-D8ZDOMP3.js.map +1 -0
- package/dist/{hooks-Vx4YtE1e.js → hooks-Xexr33XS.js} +1 -1
- package/dist/{hooks-Vx4YtE1e.js.map → hooks-Xexr33XS.js.map} +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{processor-module-CkuQiq7B.js → module-BWlCj_0C.js} +159 -204
- package/dist/module-BWlCj_0C.js.map +1 -0
- package/dist/{subgraph-module-CU_-umq2.js → module-BoGgbKmO.js} +111 -153
- package/dist/module-BoGgbKmO.js.map +1 -0
- package/dist/module-BoX1rWiq.d.ts +6 -0
- package/dist/module-BoX1rWiq.d.ts.map +1 -0
- package/dist/module-CG6K37P8.d.ts +6 -0
- package/dist/module-CG6K37P8.d.ts.map +1 -0
- package/dist/{app-module-BbhoykB5.js → module-CTPfENDU.js} +149 -189
- package/dist/module-CTPfENDU.js.map +1 -0
- package/dist/{module-BW12i5H3.js → module-CXIFrq-R.js} +15 -11
- package/dist/module-CXIFrq-R.js.map +1 -0
- package/dist/{vetra-package-VqptqKzx.js → module-CZLiUtDI.js} +186 -236
- package/dist/module-CZLiUtDI.js.map +1 -0
- package/dist/module-Cr-9knz_.d.ts +6 -0
- package/dist/module-Cr-9knz_.d.ts.map +1 -0
- package/dist/{document-editor-CHM7Pu4m.js → module-D0SK3Nds.js} +137 -180
- package/dist/module-D0SK3Nds.js.map +1 -0
- package/dist/module-DhhQLYnQ.d.ts +6 -0
- package/dist/module-DhhQLYnQ.d.ts.map +1 -0
- package/dist/module-J-kGIl1E.d.ts +6 -0
- package/dist/module-J-kGIl1E.d.ts.map +1 -0
- package/dist/powerhouse.manifest.d.ts +8 -5
- package/dist/powerhouse.manifest.d.ts.map +1 -1
- package/dist/powerhouse.manifest.js +19 -12
- package/dist/processor-module-D0lRrrpW.js +95 -0
- package/dist/processor-module-D0lRrrpW.js.map +1 -0
- package/dist/processors/codegen/index.d.ts +21322 -2
- package/dist/processors/codegen/index.d.ts.map +1 -0
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.d.ts +4 -15
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +8 -81
- package/dist/processors/index.js.map +1 -1
- package/dist/processors/vetra-read-model/index.d.ts +18599 -2
- package/dist/processors/vetra-read-model/index.d.ts.map +1 -0
- package/dist/processors/vetra-read-model/index.js +2 -54
- package/dist/subgraph-module-B3ipwOza.js +92 -0
- package/dist/subgraph-module-B3ipwOza.js.map +1 -0
- package/dist/switchboard-JOTFVXuj.js +8 -0
- package/dist/switchboard-JOTFVXuj.js.map +1 -0
- package/dist/{useVetraDocument-DF0teXXM.js → useVetraDocument-DoAwvHVi.js} +1 -1
- package/dist/{useVetraDocument-DF0teXXM.js.map → useVetraDocument-DoAwvHVi.js.map} +1 -1
- package/dist/vetra-package-YNLxEA-U.js +100 -0
- package/dist/vetra-package-YNLxEA-U.js.map +1 -0
- package/package.json +9 -8
- package/dist/app-module-BbhoykB5.js.map +0 -1
- package/dist/codegen-PnsnCMkw.js.map +0 -1
- package/dist/document-editor-CHM7Pu4m.js.map +0 -1
- package/dist/document-models/index.d.ts.map +0 -1
- package/dist/editor-Bsu4yikl.js +0 -2
- package/dist/index-CHfOF-Et.d.ts +0 -363
- package/dist/index-CHfOF-Et.d.ts.map +0 -1
- package/dist/index-CL_CHW_Z.d.ts +0 -330
- package/dist/index-CL_CHW_Z.d.ts.map +0 -1
- package/dist/index-C_kUPMNf.d.ts +0 -298
- package/dist/index-C_kUPMNf.d.ts.map +0 -1
- package/dist/index-CxWUNzph.d.ts +0 -21319
- package/dist/index-CxWUNzph.d.ts.map +0 -1
- package/dist/index-Ofk3NYAC.d.ts +0 -18596
- package/dist/index-Ofk3NYAC.d.ts.map +0 -1
- package/dist/index-Qr_rU6VS.d.ts +0 -271
- package/dist/index-Qr_rU6VS.d.ts.map +0 -1
- package/dist/index-cBMMID-w.d.ts +0 -323
- package/dist/index-cBMMID-w.d.ts.map +0 -1
- package/dist/module-BW12i5H3.js.map +0 -1
- package/dist/module-XCoMwFat.js +0 -59
- package/dist/module-XCoMwFat.js.map +0 -1
- package/dist/processor-module-CkuQiq7B.js.map +0 -1
- package/dist/processors/vetra-read-model/index.js.map +0 -1
- package/dist/subgraph-module-CU_-umq2.js.map +0 -1
- package/dist/vetra-package-VqptqKzx.js.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { a as utils, d as isAppModuleDocument, l as assertIsAppModuleDocument, t as AppModule } from "./module-CTPfENDU.js";
|
|
2
|
+
import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
|
|
3
|
+
import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
|
|
4
|
+
//#region document-models/app-module/v1/gen/controller.ts
|
|
5
|
+
/**
|
|
6
|
+
* WARNING: DO NOT EDIT
|
|
7
|
+
* This file is auto-generated and updated by codegen
|
|
8
|
+
*/
|
|
9
|
+
const AppModuleController = PHDocumentController.forDocumentModel(AppModule);
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region document-models/app-module/v1/gen/ph-factories.ts
|
|
12
|
+
function defaultGlobalState() {
|
|
13
|
+
return {
|
|
14
|
+
name: "",
|
|
15
|
+
status: "DRAFT",
|
|
16
|
+
allowedDocumentTypes: null,
|
|
17
|
+
isDragAndDropEnabled: true
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function defaultLocalState() {
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
function defaultPHState() {
|
|
24
|
+
return {
|
|
25
|
+
...defaultBaseState(),
|
|
26
|
+
global: defaultGlobalState(),
|
|
27
|
+
local: defaultLocalState()
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function createGlobalState(state) {
|
|
31
|
+
return {
|
|
32
|
+
...defaultGlobalState(),
|
|
33
|
+
...state || {}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function createLocalState(state) {
|
|
37
|
+
return {
|
|
38
|
+
...defaultLocalState(),
|
|
39
|
+
...state || {}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function createState$1(baseState, globalState, localState) {
|
|
43
|
+
return {
|
|
44
|
+
...createBaseState(baseState?.auth, baseState?.document),
|
|
45
|
+
global: createGlobalState(globalState),
|
|
46
|
+
local: createLocalState(localState)
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Creates a AppModuleDocument with custom global and local state
|
|
51
|
+
* This properly handles the PHBaseState requirements while allowing
|
|
52
|
+
* document-specific state to be set.
|
|
53
|
+
*/
|
|
54
|
+
function createAppModuleDocument(state) {
|
|
55
|
+
return utils.createDocument(state ? createState$1(createBaseState(state.auth, state.document), state.global, state.local) : void 0);
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region document-models/app-module/v1/hooks.ts
|
|
59
|
+
/** Hook to get a AppModule document by its id */
|
|
60
|
+
function useAppModuleDocumentById(documentId) {
|
|
61
|
+
const [document, dispatch] = useDocumentById(documentId);
|
|
62
|
+
if (!isAppModuleDocument(document)) return [void 0, void 0];
|
|
63
|
+
return [document, dispatch];
|
|
64
|
+
}
|
|
65
|
+
/** Hook to get the selected AppModule document */
|
|
66
|
+
function useSelectedAppModuleDocument() {
|
|
67
|
+
const [document, dispatch] = useSelectedDocument();
|
|
68
|
+
assertIsAppModuleDocument(document);
|
|
69
|
+
return [document, dispatch];
|
|
70
|
+
}
|
|
71
|
+
/** Hook to get all AppModule documents in the selected drive */
|
|
72
|
+
function useAppModuleDocumentsInSelectedDrive() {
|
|
73
|
+
return useDocumentsInSelectedDrive()?.filter(isAppModuleDocument);
|
|
74
|
+
}
|
|
75
|
+
/** Hook to get all AppModule documents in the selected folder */
|
|
76
|
+
function useAppModuleDocumentsInSelectedFolder() {
|
|
77
|
+
return useDocumentsInSelectedFolder()?.filter(isAppModuleDocument);
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region document-models/app-module/upgrades/versions.ts
|
|
81
|
+
const supportedVersions = [1];
|
|
82
|
+
const latestVersion = supportedVersions[0];
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region document-models/app-module/upgrades/upgrade-manifest.ts
|
|
85
|
+
const appModuleUpgradeManifest = {
|
|
86
|
+
documentType: "powerhouse/app",
|
|
87
|
+
latestVersion,
|
|
88
|
+
supportedVersions,
|
|
89
|
+
upgrades: {}
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
export { useAppModuleDocumentsInSelectedDrive as a, createAppModuleDocument as c, defaultLocalState as d, defaultPHState as f, useAppModuleDocumentById as i, createState$1 as l, latestVersion as n, useAppModuleDocumentsInSelectedFolder as o, AppModuleController as p, supportedVersions as r, useSelectedAppModuleDocument as s, appModuleUpgradeManifest as t, defaultGlobalState as u };
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=app-module-Bbj7PI-S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-module-Bbj7PI-S.js","names":["createState"],"sources":["../document-models/app-module/v1/gen/controller.ts","../document-models/app-module/v1/gen/ph-factories.ts","../document-models/app-module/v1/hooks.ts","../document-models/app-module/upgrades/versions.ts","../document-models/app-module/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { AppModule } from \"../module.js\";\nimport type { AppModuleAction, AppModulePHState } from \"./types.js\";\n\nexport const AppModuleController = PHDocumentController.forDocumentModel<\n AppModulePHState,\n AppModuleAction\n>(AppModule);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating AppModuleDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n AppModuleDocument,\n AppModuleGlobalState,\n AppModuleLocalState,\n AppModulePHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): AppModuleGlobalState {\n return {\n name: \"\",\n status: \"DRAFT\",\n allowedDocumentTypes: null,\n isDragAndDropEnabled: true,\n };\n}\n\nexport function defaultLocalState(): AppModuleLocalState {\n return {};\n}\n\nexport function defaultPHState(): AppModulePHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<AppModuleGlobalState>,\n): AppModuleGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<AppModuleLocalState>,\n): AppModuleLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as AppModuleLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<AppModuleGlobalState>,\n localState?: Partial<AppModuleLocalState>,\n): AppModulePHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a AppModuleDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createAppModuleDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<AppModuleGlobalState>;\n local?: Partial<AppModuleLocalState>;\n }>,\n): AppModuleDocument {\n const document = utils.createDocument(\n state\n ? createState(\n createBaseState(state.auth, state.document),\n state.global,\n state.local,\n )\n : undefined,\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n AppModuleAction,\n AppModuleDocument,\n} from \"document-models/app-module/v1\";\nimport {\n assertIsAppModuleDocument,\n isAppModuleDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a AppModule document by its id */\nexport function useAppModuleDocumentById(\n documentId: string | null | undefined,\n):\n | [AppModuleDocument, DocumentDispatch<AppModuleAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isAppModuleDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected AppModule document */\nexport function useSelectedAppModuleDocument(): [\n AppModuleDocument,\n DocumentDispatch<AppModuleAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsAppModuleDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all AppModule documents in the selected drive */\nexport function useAppModuleDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isAppModuleDocument);\n}\n\n/** Hook to get all AppModule documents in the selected folder */\nexport function useAppModuleDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isAppModuleDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const appModuleUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/app\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,sBAAsB,qBAAqB,iBAGtD,UAAU;;;ACIZ,SAAgB,qBAA2C;AACzD,QAAO;EACL,MAAM;EACN,QAAQ;EACR,sBAAsB;EACtB,sBAAsB;EACvB;;AAGH,SAAgB,oBAAyC;AACvD,QAAO,EAAE;;AAGX,SAAgB,iBAAmC;AACjD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OACsB;AACtB,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OACqB;AACrB,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACkB;AAClB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,wBACd,OAMmB;AAWnB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL;;;;;AClEH,SAAgB,yBACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,oBAAoB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACjE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,+BAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,2BAA0B,SAAS;AACnC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,uCAAuC;AAErD,QADiC,6BAA6B,EAC7B,OAAO,oBAAoB;;;AAI9D,SAAgB,wCAAwC;AAEtD,QADkC,8BAA8B,EAC9B,OAAO,oBAAoB;;;;ACnD/D,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,2BAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect-CTIucT0o.js","names":[],"sources":["../processors/connect.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { ProcessorFactoryBuilder } from \"@powerhousedao/reactor-browser\";\n\nexport const processorFactoryBuilders: ProcessorFactoryBuilder[] = [];\n"],"mappings":";AAMA,MAAa,2BAAsD,EAAE"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { a as utils, d as isDocumentEditorDocument, l as assertIsDocumentEditorDocument, t as DocumentEditor } from "./module-D0SK3Nds.js";
|
|
2
|
+
import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
|
|
3
|
+
import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
|
|
4
|
+
//#region document-models/document-editor/v1/gen/controller.ts
|
|
5
|
+
/**
|
|
6
|
+
* WARNING: DO NOT EDIT
|
|
7
|
+
* This file is auto-generated and updated by codegen
|
|
8
|
+
*/
|
|
9
|
+
const DocumentEditorController = PHDocumentController.forDocumentModel(DocumentEditor);
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region document-models/document-editor/v1/gen/ph-factories.ts
|
|
12
|
+
function defaultGlobalState() {
|
|
13
|
+
return {
|
|
14
|
+
name: "",
|
|
15
|
+
documentTypes: [],
|
|
16
|
+
status: "DRAFT"
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function defaultLocalState() {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
function defaultPHState() {
|
|
23
|
+
return {
|
|
24
|
+
...defaultBaseState(),
|
|
25
|
+
global: defaultGlobalState(),
|
|
26
|
+
local: defaultLocalState()
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function createGlobalState(state) {
|
|
30
|
+
return {
|
|
31
|
+
...defaultGlobalState(),
|
|
32
|
+
...state || {}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function createLocalState(state) {
|
|
36
|
+
return {
|
|
37
|
+
...defaultLocalState(),
|
|
38
|
+
...state || {}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function createState$1(baseState, globalState, localState) {
|
|
42
|
+
return {
|
|
43
|
+
...createBaseState(baseState?.auth, baseState?.document),
|
|
44
|
+
global: createGlobalState(globalState),
|
|
45
|
+
local: createLocalState(localState)
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Creates a DocumentEditorDocument with custom global and local state
|
|
50
|
+
* This properly handles the PHBaseState requirements while allowing
|
|
51
|
+
* document-specific state to be set.
|
|
52
|
+
*/
|
|
53
|
+
function createDocumentEditorDocument(state) {
|
|
54
|
+
return utils.createDocument(state ? createState$1(createBaseState(state.auth, state.document), state.global, state.local) : void 0);
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region document-models/document-editor/v1/hooks.ts
|
|
58
|
+
/** Hook to get a DocumentEditor document by its id */
|
|
59
|
+
function useDocumentEditorDocumentById(documentId) {
|
|
60
|
+
const [document, dispatch] = useDocumentById(documentId);
|
|
61
|
+
if (!isDocumentEditorDocument(document)) return [void 0, void 0];
|
|
62
|
+
return [document, dispatch];
|
|
63
|
+
}
|
|
64
|
+
/** Hook to get the selected DocumentEditor document */
|
|
65
|
+
function useSelectedDocumentEditorDocument() {
|
|
66
|
+
const [document, dispatch] = useSelectedDocument();
|
|
67
|
+
assertIsDocumentEditorDocument(document);
|
|
68
|
+
return [document, dispatch];
|
|
69
|
+
}
|
|
70
|
+
/** Hook to get all DocumentEditor documents in the selected drive */
|
|
71
|
+
function useDocumentEditorDocumentsInSelectedDrive() {
|
|
72
|
+
return useDocumentsInSelectedDrive()?.filter(isDocumentEditorDocument);
|
|
73
|
+
}
|
|
74
|
+
/** Hook to get all DocumentEditor documents in the selected folder */
|
|
75
|
+
function useDocumentEditorDocumentsInSelectedFolder() {
|
|
76
|
+
return useDocumentsInSelectedFolder()?.filter(isDocumentEditorDocument);
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region document-models/document-editor/upgrades/versions.ts
|
|
80
|
+
const supportedVersions = [1];
|
|
81
|
+
const latestVersion = supportedVersions[0];
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region document-models/document-editor/upgrades/upgrade-manifest.ts
|
|
84
|
+
const documentEditorUpgradeManifest = {
|
|
85
|
+
documentType: "powerhouse/document-editor",
|
|
86
|
+
latestVersion,
|
|
87
|
+
supportedVersions,
|
|
88
|
+
upgrades: {}
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
export { useDocumentEditorDocumentsInSelectedDrive as a, createDocumentEditorDocument as c, defaultLocalState as d, defaultPHState as f, useDocumentEditorDocumentById as i, createState$1 as l, latestVersion as n, useDocumentEditorDocumentsInSelectedFolder as o, DocumentEditorController as p, supportedVersions as r, useSelectedDocumentEditorDocument as s, documentEditorUpgradeManifest as t, defaultGlobalState as u };
|
|
92
|
+
|
|
93
|
+
//# sourceMappingURL=document-editor-DS-bZMKx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-editor-DS-bZMKx.js","names":["createState"],"sources":["../document-models/document-editor/v1/gen/controller.ts","../document-models/document-editor/v1/gen/ph-factories.ts","../document-models/document-editor/v1/hooks.ts","../document-models/document-editor/upgrades/versions.ts","../document-models/document-editor/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { DocumentEditor } from \"../module.js\";\nimport type { DocumentEditorAction, DocumentEditorPHState } from \"./types.js\";\n\nexport const DocumentEditorController = PHDocumentController.forDocumentModel<\n DocumentEditorPHState,\n DocumentEditorAction\n>(DocumentEditor);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating DocumentEditorDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n DocumentEditorDocument,\n DocumentEditorGlobalState,\n DocumentEditorLocalState,\n DocumentEditorPHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): DocumentEditorGlobalState {\n return {\n name: \"\",\n documentTypes: [],\n status: \"DRAFT\",\n };\n}\n\nexport function defaultLocalState(): DocumentEditorLocalState {\n return {};\n}\n\nexport function defaultPHState(): DocumentEditorPHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<DocumentEditorGlobalState>,\n): DocumentEditorGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<DocumentEditorLocalState>,\n): DocumentEditorLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as DocumentEditorLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<DocumentEditorGlobalState>,\n localState?: Partial<DocumentEditorLocalState>,\n): DocumentEditorPHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a DocumentEditorDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createDocumentEditorDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<DocumentEditorGlobalState>;\n local?: Partial<DocumentEditorLocalState>;\n }>,\n): DocumentEditorDocument {\n const document = utils.createDocument(\n state\n ? createState(\n createBaseState(state.auth, state.document),\n state.global,\n state.local,\n )\n : undefined,\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n DocumentEditorAction,\n DocumentEditorDocument,\n} from \"document-models/document-editor/v1\";\nimport {\n assertIsDocumentEditorDocument,\n isDocumentEditorDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a DocumentEditor document by its id */\nexport function useDocumentEditorDocumentById(\n documentId: string | null | undefined,\n):\n | [DocumentEditorDocument, DocumentDispatch<DocumentEditorAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isDocumentEditorDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected DocumentEditor document */\nexport function useSelectedDocumentEditorDocument(): [\n DocumentEditorDocument,\n DocumentDispatch<DocumentEditorAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsDocumentEditorDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all DocumentEditor documents in the selected drive */\nexport function useDocumentEditorDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isDocumentEditorDocument);\n}\n\n/** Hook to get all DocumentEditor documents in the selected folder */\nexport function useDocumentEditorDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isDocumentEditorDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const documentEditorUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/document-editor\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,2BAA2B,qBAAqB,iBAG3D,eAAe;;;ACIjB,SAAgB,qBAAgD;AAC9D,QAAO;EACL,MAAM;EACN,eAAe,EAAE;EACjB,QAAQ;EACT;;AAGH,SAAgB,oBAA8C;AAC5D,QAAO,EAAE;;AAGX,SAAgB,iBAAwC;AACtD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OAC2B;AAC3B,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OAC0B;AAC1B,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACuB;AACvB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,6BACd,OAMwB;AAWxB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL;;;;;ACjEH,SAAgB,8BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,yBAAyB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACtE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,oCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,gCAA+B,SAAS;AACxC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,4CAA4C;AAE1D,QADiC,6BAA6B,EAC7B,OAAO,yBAAyB;;;AAInE,SAAgB,6CAA6C;AAE3D,QADkC,8BAA8B,EAC9B,OAAO,yBAAyB;;;;ACnDpE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,gCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
|
|
@@ -1,2 +1,349 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as AppModule } from "../../module-CG6K37P8.js";
|
|
2
|
+
import * as document_model0 from "document-model";
|
|
3
|
+
import { Action, DocumentModelGlobalState, DocumentModelUtils, PHAuthState, PHBaseState, PHDocument as PHDocument$1, PHDocumentController, PHDocumentState, Reducer, SignalDispatch, UpgradeManifest } from "document-model";
|
|
4
|
+
import * as z$1 from "zod";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { DocumentDispatch } from "@powerhousedao/reactor-browser";
|
|
7
|
+
|
|
8
|
+
//#region document-models/app-module/upgrades/versions.d.ts
|
|
9
|
+
declare const supportedVersions: readonly [1];
|
|
10
|
+
declare const latestVersion: 1;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region document-models/app-module/upgrades/upgrade-manifest.d.ts
|
|
13
|
+
declare const appModuleUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region document-models/app-module/v1/actions.d.ts
|
|
16
|
+
/** Actions for the AppModule document model */
|
|
17
|
+
declare const actions: any;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region document-models/app-module/v1/gen/schema/types.d.ts
|
|
20
|
+
type Maybe<T> = T | null | undefined;
|
|
21
|
+
type InputMaybe<T> = T | null | undefined;
|
|
22
|
+
type Exact<T extends {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}> = { [K in keyof T]: T[K] };
|
|
25
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
26
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
27
|
+
type MakeEmpty<T extends {
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
}, K extends keyof T> = { [_ in K]?: never };
|
|
30
|
+
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
|
|
31
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
32
|
+
type Scalars = {
|
|
33
|
+
ID: {
|
|
34
|
+
input: string;
|
|
35
|
+
output: string;
|
|
36
|
+
};
|
|
37
|
+
String: {
|
|
38
|
+
input: string;
|
|
39
|
+
output: string;
|
|
40
|
+
};
|
|
41
|
+
Boolean: {
|
|
42
|
+
input: boolean;
|
|
43
|
+
output: boolean;
|
|
44
|
+
};
|
|
45
|
+
Int: {
|
|
46
|
+
input: number;
|
|
47
|
+
output: number;
|
|
48
|
+
};
|
|
49
|
+
Float: {
|
|
50
|
+
input: number;
|
|
51
|
+
output: number;
|
|
52
|
+
};
|
|
53
|
+
Address: {
|
|
54
|
+
input: `${string}:0x${string}`;
|
|
55
|
+
output: `${string}:0x${string}`;
|
|
56
|
+
};
|
|
57
|
+
Amount: {
|
|
58
|
+
input: {
|
|
59
|
+
unit?: string;
|
|
60
|
+
value?: number;
|
|
61
|
+
};
|
|
62
|
+
output: {
|
|
63
|
+
unit?: string;
|
|
64
|
+
value?: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
Amount_Crypto: {
|
|
68
|
+
input: {
|
|
69
|
+
unit: string;
|
|
70
|
+
value: string;
|
|
71
|
+
};
|
|
72
|
+
output: {
|
|
73
|
+
unit: string;
|
|
74
|
+
value: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
Amount_Currency: {
|
|
78
|
+
input: {
|
|
79
|
+
unit: string;
|
|
80
|
+
value: string;
|
|
81
|
+
};
|
|
82
|
+
output: {
|
|
83
|
+
unit: string;
|
|
84
|
+
value: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
Amount_Fiat: {
|
|
88
|
+
input: {
|
|
89
|
+
unit: string;
|
|
90
|
+
value: number;
|
|
91
|
+
};
|
|
92
|
+
output: {
|
|
93
|
+
unit: string;
|
|
94
|
+
value: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
Amount_Money: {
|
|
98
|
+
input: number;
|
|
99
|
+
output: number;
|
|
100
|
+
};
|
|
101
|
+
Amount_Percentage: {
|
|
102
|
+
input: number;
|
|
103
|
+
output: number;
|
|
104
|
+
};
|
|
105
|
+
Amount_Tokens: {
|
|
106
|
+
input: number;
|
|
107
|
+
output: number;
|
|
108
|
+
};
|
|
109
|
+
Attachment: {
|
|
110
|
+
input: string;
|
|
111
|
+
output: string;
|
|
112
|
+
};
|
|
113
|
+
Currency: {
|
|
114
|
+
input: string;
|
|
115
|
+
output: string;
|
|
116
|
+
};
|
|
117
|
+
Date: {
|
|
118
|
+
input: string;
|
|
119
|
+
output: string;
|
|
120
|
+
};
|
|
121
|
+
DateTime: {
|
|
122
|
+
input: string;
|
|
123
|
+
output: string;
|
|
124
|
+
};
|
|
125
|
+
EmailAddress: {
|
|
126
|
+
input: string;
|
|
127
|
+
output: string;
|
|
128
|
+
};
|
|
129
|
+
EthereumAddress: {
|
|
130
|
+
input: string;
|
|
131
|
+
output: string;
|
|
132
|
+
};
|
|
133
|
+
OID: {
|
|
134
|
+
input: string;
|
|
135
|
+
output: string;
|
|
136
|
+
};
|
|
137
|
+
OLabel: {
|
|
138
|
+
input: string;
|
|
139
|
+
output: string;
|
|
140
|
+
};
|
|
141
|
+
PHID: {
|
|
142
|
+
input: string;
|
|
143
|
+
output: string;
|
|
144
|
+
};
|
|
145
|
+
URL: {
|
|
146
|
+
input: string;
|
|
147
|
+
output: string;
|
|
148
|
+
};
|
|
149
|
+
Unknown: {
|
|
150
|
+
input: unknown;
|
|
151
|
+
output: unknown;
|
|
152
|
+
};
|
|
153
|
+
Upload: {
|
|
154
|
+
input: File;
|
|
155
|
+
output: File;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
type AddDocumentTypeInput = {
|
|
159
|
+
documentType: Scalars["String"]["input"];
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Configuration for a Drive App contributed by the package. Drive apps render a
|
|
163
|
+
* custom view at the drive level (instead of, or alongside, the document file
|
|
164
|
+
* tree) and can opt into which document types they accept.
|
|
165
|
+
*/
|
|
166
|
+
type AppModuleState = {
|
|
167
|
+
/** Document type ids this app handles. `null` means the app accepts any document type; an empty list means it accepts none. */allowedDocumentTypes: Maybe<Array<Scalars["String"]["output"]>>; /** Whether the app surface accepts dropped files from the user. Defaults to true. */
|
|
168
|
+
isDragAndDropEnabled: Scalars["Boolean"]["output"]; /** Display name of the drive app. Also used as the source for the generated folder name under `apps/`. */
|
|
169
|
+
name: Scalars["String"]["output"]; /** Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation. */
|
|
170
|
+
status: StatusType;
|
|
171
|
+
};
|
|
172
|
+
type RemoveDocumentTypeInput = {
|
|
173
|
+
documentType: Scalars["String"]["input"];
|
|
174
|
+
};
|
|
175
|
+
type SetAppNameInput = {
|
|
176
|
+
name: Scalars["String"]["input"];
|
|
177
|
+
};
|
|
178
|
+
type SetAppStatusInput = {
|
|
179
|
+
status: StatusType;
|
|
180
|
+
};
|
|
181
|
+
type SetDocumentTypesInput = {
|
|
182
|
+
documentTypes: Array<Scalars["String"]["input"]>;
|
|
183
|
+
};
|
|
184
|
+
type SetDragAndDropEnabledInput = {
|
|
185
|
+
enabled: Scalars["Boolean"]["input"];
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Lifecycle status of a module definition.
|
|
189
|
+
* - DRAFT: still being edited; codegen does not run.
|
|
190
|
+
* - CONFIRMED: locked in; codegen produces the corresponding scaffold.
|
|
191
|
+
*/
|
|
192
|
+
type StatusType = "CONFIRMED" | "DRAFT";
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region document-models/app-module/v1/gen/types.d.ts
|
|
195
|
+
type AppModuleLocalState = Record<PropertyKey, never>;
|
|
196
|
+
type AppModulePHState = PHBaseState & {
|
|
197
|
+
global: AppModuleState;
|
|
198
|
+
local: AppModuleLocalState;
|
|
199
|
+
};
|
|
200
|
+
type AppModuleDocument = PHDocument$1<AppModulePHState>;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region document-models/app-module/v1/gen/base-operations/actions.d.ts
|
|
203
|
+
type SetAppNameAction = Action & {
|
|
204
|
+
type: "SET_APP_NAME";
|
|
205
|
+
input: SetAppNameInput;
|
|
206
|
+
};
|
|
207
|
+
type SetAppStatusAction = Action & {
|
|
208
|
+
type: "SET_APP_STATUS";
|
|
209
|
+
input: SetAppStatusInput;
|
|
210
|
+
};
|
|
211
|
+
type AddDocumentTypeAction = Action & {
|
|
212
|
+
type: "ADD_DOCUMENT_TYPE";
|
|
213
|
+
input: AddDocumentTypeInput;
|
|
214
|
+
};
|
|
215
|
+
type RemoveDocumentTypeAction = Action & {
|
|
216
|
+
type: "REMOVE_DOCUMENT_TYPE";
|
|
217
|
+
input: RemoveDocumentTypeInput;
|
|
218
|
+
};
|
|
219
|
+
type SetDocumentTypesAction = Action & {
|
|
220
|
+
type: "SET_DOCUMENT_TYPES";
|
|
221
|
+
input: SetDocumentTypesInput;
|
|
222
|
+
};
|
|
223
|
+
type AppModuleBaseOperationsAction = SetAppNameAction | SetAppStatusAction | AddDocumentTypeAction | RemoveDocumentTypeAction | SetDocumentTypesAction;
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region document-models/app-module/v1/gen/dnd-operations/actions.d.ts
|
|
226
|
+
type SetDragAndDropEnabledAction = Action & {
|
|
227
|
+
type: "SET_DRAG_AND_DROP_ENABLED";
|
|
228
|
+
input: SetDragAndDropEnabledInput;
|
|
229
|
+
};
|
|
230
|
+
type AppModuleDndOperationsAction = SetDragAndDropEnabledAction;
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region document-models/app-module/v1/gen/actions.d.ts
|
|
233
|
+
type AppModuleAction = AppModuleBaseOperationsAction | AppModuleDndOperationsAction;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region document-models/app-module/v1/gen/base-operations/operations.d.ts
|
|
236
|
+
interface AppModuleBaseOperationsOperations {
|
|
237
|
+
setAppNameOperation: (state: AppModuleState, action: SetAppNameAction, dispatch?: SignalDispatch) => void;
|
|
238
|
+
setAppStatusOperation: (state: AppModuleState, action: SetAppStatusAction, dispatch?: SignalDispatch) => void;
|
|
239
|
+
addDocumentTypeOperation: (state: AppModuleState, action: AddDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
240
|
+
removeDocumentTypeOperation: (state: AppModuleState, action: RemoveDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
241
|
+
setDocumentTypesOperation: (state: AppModuleState, action: SetDocumentTypesAction, dispatch?: SignalDispatch) => void;
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region document-models/app-module/v1/gen/controller.d.ts
|
|
245
|
+
declare const AppModuleController: new (initialDocument?: PHDocument<TState>) => PHDocumentController<any> & document_model0.ActionMap<any, PHDocumentController<any>>;
|
|
246
|
+
declare namespace creators_d_exports {
|
|
247
|
+
export { addDocumentType, removeDocumentType, setAppName, setAppStatus, setDocumentTypes };
|
|
248
|
+
}
|
|
249
|
+
declare const setAppName: (input: SetAppNameInput) => any;
|
|
250
|
+
declare const setAppStatus: (input: SetAppStatusInput) => any;
|
|
251
|
+
declare const addDocumentType: (input: AddDocumentTypeInput) => any;
|
|
252
|
+
declare const removeDocumentType: (input: RemoveDocumentTypeInput) => any;
|
|
253
|
+
declare const setDocumentTypes: (input: SetDocumentTypesInput) => any;
|
|
254
|
+
declare namespace creators_d_exports$1 {
|
|
255
|
+
export { setDragAndDropEnabled };
|
|
256
|
+
}
|
|
257
|
+
declare const setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => any;
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region document-models/app-module/v1/gen/dnd-operations/operations.d.ts
|
|
260
|
+
interface AppModuleDndOperationsOperations {
|
|
261
|
+
setDragAndDropEnabledOperation: (state: AppModuleState, action: SetDragAndDropEnabledAction, dispatch?: SignalDispatch) => void;
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region document-models/app-module/v1/gen/document-model.d.ts
|
|
265
|
+
declare const documentModel: DocumentModelGlobalState;
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region document-models/app-module/v1/gen/document-schema.d.ts
|
|
268
|
+
/** Schema for validating the header object of a AppModule document */
|
|
269
|
+
declare const AppModuleDocumentHeaderSchema: any;
|
|
270
|
+
/** Schema for validating the state object of a AppModule document */
|
|
271
|
+
declare const AppModulePHStateSchema: any;
|
|
272
|
+
declare const AppModuleDocumentSchema: z.ZodObject<{
|
|
273
|
+
header: any;
|
|
274
|
+
state: any;
|
|
275
|
+
initialState: any;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
/** Simple helper function to check if a state object is a AppModule document state object */
|
|
278
|
+
declare function isAppModuleState(state: unknown): state is AppModulePHState;
|
|
279
|
+
/** Simple helper function to assert that a document state object is a AppModule document state object */
|
|
280
|
+
declare function assertIsAppModuleState(state: unknown): asserts state is AppModulePHState;
|
|
281
|
+
/** Simple helper function to check if a document is a AppModule document */
|
|
282
|
+
declare function isAppModuleDocument(document: unknown): document is AppModuleDocument;
|
|
283
|
+
/** Simple helper function to assert that a document is a AppModule document */
|
|
284
|
+
declare function assertIsAppModuleDocument(document: unknown): asserts document is AppModuleDocument;
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region document-models/app-module/v1/gen/document-type.d.ts
|
|
287
|
+
/**
|
|
288
|
+
* WARNING: DO NOT EDIT
|
|
289
|
+
* This file is auto-generated and updated by codegen
|
|
290
|
+
*/
|
|
291
|
+
declare const appModuleDocumentType = "powerhouse/app";
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region document-models/app-module/v1/gen/ph-factories.d.ts
|
|
294
|
+
declare function defaultGlobalState(): AppModuleState;
|
|
295
|
+
declare function defaultLocalState(): AppModuleLocalState;
|
|
296
|
+
declare function defaultPHState(): AppModulePHState;
|
|
297
|
+
declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<AppModuleState>, localState?: Partial<AppModuleLocalState>): AppModulePHState;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a AppModuleDocument with custom global and local state
|
|
300
|
+
* This properly handles the PHBaseState requirements while allowing
|
|
301
|
+
* document-specific state to be set.
|
|
302
|
+
*/
|
|
303
|
+
declare function createAppModuleDocument(state?: Partial<{
|
|
304
|
+
auth?: Partial<PHAuthState>;
|
|
305
|
+
document?: Partial<PHDocumentState>;
|
|
306
|
+
global?: Partial<AppModuleState>;
|
|
307
|
+
local?: Partial<AppModuleLocalState>;
|
|
308
|
+
}>): AppModuleDocument;
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region document-models/app-module/v1/gen/reducer.d.ts
|
|
311
|
+
declare const reducer: Reducer<AppModulePHState>;
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region document-models/app-module/v1/gen/schema/zod.d.ts
|
|
314
|
+
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]> }>;
|
|
315
|
+
type definedNonNullAny = {};
|
|
316
|
+
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
317
|
+
declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
318
|
+
declare const StatusTypeSchema: z$1.ZodEnum<{
|
|
319
|
+
CONFIRMED: "CONFIRMED";
|
|
320
|
+
DRAFT: "DRAFT";
|
|
321
|
+
}>;
|
|
322
|
+
declare function AddDocumentTypeInputSchema(): z$1.ZodObject<Properties<AddDocumentTypeInput>>;
|
|
323
|
+
declare function AppModuleStateSchema(): z$1.ZodObject<Properties<AppModuleState>>;
|
|
324
|
+
declare function RemoveDocumentTypeInputSchema(): z$1.ZodObject<Properties<RemoveDocumentTypeInput>>;
|
|
325
|
+
declare function SetAppNameInputSchema(): z$1.ZodObject<Properties<SetAppNameInput>>;
|
|
326
|
+
declare function SetAppStatusInputSchema(): z$1.ZodObject<Properties<SetAppStatusInput>>;
|
|
327
|
+
declare function SetDocumentTypesInputSchema(): z$1.ZodObject<Properties<SetDocumentTypesInput>>;
|
|
328
|
+
declare function SetDragAndDropEnabledInputSchema(): z$1.ZodObject<Properties<SetDragAndDropEnabledInput>>;
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region document-models/app-module/v1/gen/utils.d.ts
|
|
331
|
+
declare const initialGlobalState: AppModuleState;
|
|
332
|
+
declare const initialLocalState: AppModuleLocalState;
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region document-models/app-module/v1/hooks.d.ts
|
|
335
|
+
/** Hook to get a AppModule document by its id */
|
|
336
|
+
declare function useAppModuleDocumentById(documentId: string | null | undefined): [AppModuleDocument, DocumentDispatch<AppModuleAction>] | [undefined, undefined];
|
|
337
|
+
/** Hook to get the selected AppModule document */
|
|
338
|
+
declare function useSelectedAppModuleDocument(): [AppModuleDocument, DocumentDispatch<AppModuleAction>];
|
|
339
|
+
/** Hook to get all AppModule documents in the selected drive */
|
|
340
|
+
declare function useAppModuleDocumentsInSelectedDrive(): PHDocument<any>[] | undefined;
|
|
341
|
+
/** Hook to get all AppModule documents in the selected folder */
|
|
342
|
+
declare function useAppModuleDocumentsInSelectedFolder(): PHDocument<any>[] | undefined;
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region document-models/app-module/v1/utils.d.ts
|
|
345
|
+
/** Utils for the AppModule document model */
|
|
346
|
+
declare const utils: DocumentModelUtils<AppModulePHState>;
|
|
347
|
+
//#endregion
|
|
348
|
+
export { AddDocumentTypeAction, AddDocumentTypeInput, AddDocumentTypeInputSchema, AppModule, type AppModuleAction, AppModuleBaseOperationsAction, AppModuleBaseOperationsOperations, AppModuleController, AppModuleDndOperationsAction, AppModuleDndOperationsOperations, type AppModuleDocument, AppModuleDocumentHeaderSchema, AppModuleDocumentSchema, type AppModuleState as AppModuleGlobalState, AppModuleState, type AppModuleLocalState, type AppModulePHState, AppModulePHStateSchema, AppModuleStateSchema, Exact, Incremental, InputMaybe, MakeEmpty, MakeMaybe, MakeOptional, Maybe, RemoveDocumentTypeAction, RemoveDocumentTypeInput, RemoveDocumentTypeInputSchema, Scalars, SetAppNameAction, SetAppNameInput, SetAppNameInputSchema, SetAppStatusAction, SetAppStatusInput, SetAppStatusInputSchema, SetDocumentTypesAction, SetDocumentTypesInput, SetDocumentTypesInputSchema, SetDragAndDropEnabledAction, SetDragAndDropEnabledInput, SetDragAndDropEnabledInputSchema, StatusType, StatusTypeSchema, actions, addDocumentType, creators_d_exports as appModuleBaseOperationsActions, creators_d_exports$1 as appModuleDndOperationsActions, appModuleDocumentType, appModuleUpgradeManifest, assertIsAppModuleDocument, assertIsAppModuleState, createAppModuleDocument, createState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isAppModuleDocument, isAppModuleState, isDefinedNonNullAny, latestVersion, reducer, removeDocumentType, setAppName, setAppStatus, setDocumentTypes, setDragAndDropEnabled, supportedVersions, useAppModuleDocumentById, useAppModuleDocumentsInSelectedDrive, useAppModuleDocumentsInSelectedFolder, useSelectedAppModuleDocument, utils };
|
|
349
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../document-models/app-module/upgrades/versions.ts","../../../document-models/app-module/upgrades/upgrade-manifest.ts","../../../document-models/app-module/v1/actions.ts","../../../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/gen/reducer.ts","../../../document-models/app-module/v1/gen/schema/zod.ts","../../../document-models/app-module/v1/gen/utils.ts","../../../document-models/app-module/v1/hooks.ts","../../../document-models/app-module/v1/utils.ts"],"mappings":";;;;;;;;cAAa,iBAAA;AAAA,cAEA,aAAA;;;cCKA,wBAAA,EAA0B,eAAA,QAC9B,iBAAA;;;;cCII,OAAA;;;KCZD,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,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A,GAAiC,GAAA,CAAE,SAAA,CACjD,UAAA,CAAW,uBAAA;AAAA,iBAOG,qBAAA,CAAA,GAAyB,GAAA,CAAE,SAAA,CACzC,UAAA,CAAW,eAAA;AAAA,iBAOG,uBAAA,CAAA,GAA2B,GAAA,CAAE,SAAA,CAC3C,UAAA,CAAW,iBAAA;AAAA,iBAOG,2BAAA,CAAA,GAA+B,GAAA,CAAE,SAAA,CAC/C,UAAA,CAAW,qBAAA;AAAA,iBAOG,gCAAA,CAAA,GAAoC,GAAA,CAAE,SAAA,CACpD,UAAA,CAAW,0BAAA;;;cCxDA,kBAAA,EAAoB,cAAA;AAAA,cAMpB,iBAAA,EAAmB,mBAAA;;;;iBCXhB,wBAAA,CACd,UAAA,+BAEG,iBAAA,EAAmB,gBAAA,CAAiB,eAAA;;iBAQzB,4BAAA,CAAA,IACd,iBAAA,EACA,gBAAA,CAAiB,eAAA;;iBASH,oCAAA,CAAA,GAAoC,UAAA;;iBAMpC,qCAAA,CAAA,GAAqC,UAAA;;;;cCvCxC,KAAA,EAAO,kBAAA,CAAmB,gBAAA"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
|
|
1
|
+
import { A as SetDocumentTypesInputSchema, C as setAppStatus, D as RemoveDocumentTypeInputSchema, E as AppModuleStateSchema, M as StatusTypeSchema, N as definedNonNullAnySchema, O as SetAppNameInputSchema, P as isDefinedNonNullAny, S as setAppName, T as AddDocumentTypeInputSchema, _ as creators_exports$1, b as creators_exports, c as AppModulePHStateSchema, d as isAppModuleDocument, f as isAppModuleState, g as actions, h as documentModel, i as initialLocalState, j as SetDragAndDropEnabledInputSchema, k as SetAppStatusInputSchema, l as assertIsAppModuleDocument, m as reducer, n as utils, o as AppModuleDocumentHeaderSchema, p as appModuleDocumentType, r as initialGlobalState, s as AppModuleDocumentSchema, t as AppModule, u as assertIsAppModuleState, v as setDragAndDropEnabled, w as setDocumentTypes, x as removeDocumentType, y as addDocumentType } from "../../module-CTPfENDU.js";
|
|
2
|
+
import { a as useAppModuleDocumentsInSelectedDrive, c as createAppModuleDocument, d as defaultLocalState, f as defaultPHState, i as useAppModuleDocumentById, l as createState, n as latestVersion, o as useAppModuleDocumentsInSelectedFolder, p as AppModuleController, r as supportedVersions, s as useSelectedAppModuleDocument, t as appModuleUpgradeManifest, u as defaultGlobalState } from "../../app-module-Bbj7PI-S.js";
|
|
3
|
+
export { AddDocumentTypeInputSchema, AppModule, AppModuleController, AppModuleDocumentHeaderSchema, AppModuleDocumentSchema, AppModulePHStateSchema, AppModuleStateSchema, RemoveDocumentTypeInputSchema, SetAppNameInputSchema, SetAppStatusInputSchema, SetDocumentTypesInputSchema, SetDragAndDropEnabledInputSchema, StatusTypeSchema, actions, addDocumentType, creators_exports as appModuleBaseOperationsActions, creators_exports$1 as appModuleDndOperationsActions, appModuleDocumentType, appModuleUpgradeManifest, assertIsAppModuleDocument, assertIsAppModuleState, createAppModuleDocument, createState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, documentModel, initialGlobalState, initialLocalState, isAppModuleDocument, isAppModuleState, isDefinedNonNullAny, latestVersion, reducer, removeDocumentType, setAppName, setAppStatus, setDocumentTypes, setDragAndDropEnabled, supportedVersions, useAppModuleDocumentById, useAppModuleDocumentsInSelectedDrive, useAppModuleDocumentsInSelectedFolder, useSelectedAppModuleDocument, utils };
|