@powerhousedao/codegen 5.0.0-staging.2 → 5.0.0-staging.20
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/README.md +0 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-custom-subgraph/resolvers.esm.t +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-document-model-module/index.d.ts +2 -2
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-document-model-module/index.d.ts.map +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-document-model-module/index.js +7 -4
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-document-model-module/index.js.map +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-document-model-subgraph/resolvers.esm.t +5 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/components/CreateDocument.esm.t +24 -15
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/components/DriveExplorer.esm.t +58 -129
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/components/FolderTree.esm.t +92 -81
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/editor.esm.t +2 -37
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.d.ts +4 -0
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.d.ts.map +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.esm.t +6 -4
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.js +2 -0
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.js.map +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t +87 -20
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/hooks.esm.t +17 -0
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/index.d.ts +10 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/index.d.ts.map +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/index.esm.t +2 -4
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/index.js +12 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/index.js.map +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-analytics/factory.esm.t +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-analytics/index.esm.t +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-relationalDb/factory.esm.t +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-relationalDb/index.esm.t +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-relationalDb/migrations.esm.t +1 -1
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-relationalDb/schema.esm.t +1 -1
- package/dist/src/codegen/graphql.d.ts +2 -2
- package/dist/src/codegen/graphql.d.ts.map +1 -1
- package/dist/src/codegen/graphql.js.map +1 -1
- package/dist/src/codegen/hygen.d.ts +6 -3
- package/dist/src/codegen/hygen.d.ts.map +1 -1
- package/dist/src/codegen/hygen.js +7 -1
- package/dist/src/codegen/hygen.js.map +1 -1
- package/dist/src/codegen/index.d.ts +6 -3
- package/dist/src/codegen/index.d.ts.map +1 -1
- package/dist/src/codegen/index.js +12 -24
- package/dist/src/codegen/index.js.map +1 -1
- package/dist/src/codegen/utils.d.ts +1 -1
- package/dist/src/codegen/utils.d.ts.map +1 -1
- package/dist/src/codegen/utils.js +1 -1
- package/dist/src/codegen/utils.js.map +1 -1
- package/dist/src/ts-morph-generator/core/FileGenerator.d.ts +3 -3
- package/dist/src/ts-morph-generator/core/FileGenerator.d.ts.map +1 -1
- package/dist/src/ts-morph-generator/core/GenerationContext.d.ts +2 -2
- package/dist/src/ts-morph-generator/core/GenerationContext.d.ts.map +1 -1
- package/dist/src/ts-morph-generator/core/TSMorphCodeGenerator.d.ts +2 -2
- package/dist/src/ts-morph-generator/core/TSMorphCodeGenerator.d.ts.map +1 -1
- package/dist/src/ts-morph-generator/file-generators/ReducerGenerator.d.ts +1 -1
- package/dist/src/ts-morph-generator/file-generators/ReducerGenerator.d.ts.map +1 -1
- package/dist/src/ts-morph-generator/file-generators/ReducerGenerator.js +1 -1
- package/dist/src/ts-morph-generator/file-generators/ReducerGenerator.js.map +1 -1
- package/dist/src/ts-morph-generator/utilities/DirectoryManager.d.ts +2 -2
- package/dist/src/ts-morph-generator/utilities/DirectoryManager.d.ts.map +1 -1
- package/dist/src/ts-morph-generator/utilities/ImportManager.d.ts +1 -1
- package/dist/src/ts-morph-generator/utilities/ImportManager.d.ts.map +1 -1
- package/dist/src/utils/validation.d.ts +1 -1
- package/dist/src/utils/validation.d.ts.map +1 -1
- package/dist/tsconfig.hygen.tsbuildinfo +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/components/EditorContainer.esm.t +0 -103
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-drive-editor/types/css.d.esm.t +0 -8
|
@@ -2,102 +2,113 @@
|
|
|
2
2
|
to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/components/FolderTree.tsx"
|
|
3
3
|
unless_exists: true
|
|
4
4
|
---
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
Sidebar,
|
|
7
|
+
SidebarProvider,
|
|
8
|
+
type SidebarNode,
|
|
9
|
+
} from "@powerhousedao/document-engineering";
|
|
10
|
+
import type { Node } from "document-drive";
|
|
11
|
+
import { useMemo } from "react";
|
|
7
12
|
|
|
8
13
|
interface FolderTreeProps {
|
|
9
|
-
|
|
14
|
+
driveId: string;
|
|
15
|
+
driveName: string;
|
|
16
|
+
nodes: Node[];
|
|
10
17
|
selectedNodeId?: string;
|
|
11
18
|
onSelectNode: (nodeId: string | undefined) => void;
|
|
12
19
|
}
|
|
13
20
|
|
|
21
|
+
function isFolder(node: Node): boolean {
|
|
22
|
+
return node.kind === "folder";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function buildSidebarNodes(
|
|
26
|
+
nodes: Node[],
|
|
27
|
+
parentId: string | null | undefined,
|
|
28
|
+
): SidebarNode[] {
|
|
29
|
+
return nodes
|
|
30
|
+
.filter((n) => {
|
|
31
|
+
if (parentId == null) {
|
|
32
|
+
return n.parentFolder == null;
|
|
33
|
+
}
|
|
34
|
+
return n.parentFolder === parentId;
|
|
35
|
+
})
|
|
36
|
+
.map((node): SidebarNode => {
|
|
37
|
+
if (isFolder(node)) {
|
|
38
|
+
return {
|
|
39
|
+
id: node.id,
|
|
40
|
+
title: node.name,
|
|
41
|
+
icon: "FolderClose" as const,
|
|
42
|
+
expandedIcon: "FolderOpen" as const,
|
|
43
|
+
children: buildSidebarNodes(nodes, node.id),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
id: node.id,
|
|
48
|
+
title: node.name,
|
|
49
|
+
icon: "File" as const,
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function transformNodesToSidebarNodes(
|
|
55
|
+
nodes: Node[],
|
|
56
|
+
driveName: string,
|
|
57
|
+
): SidebarNode[] {
|
|
58
|
+
return [
|
|
59
|
+
{
|
|
60
|
+
id: "root",
|
|
61
|
+
title: driveName,
|
|
62
|
+
icon: "Drive" as const,
|
|
63
|
+
children: buildSidebarNodes(nodes, null),
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
|
|
14
68
|
/**
|
|
15
|
-
* Hierarchical folder tree navigation component.
|
|
16
|
-
* Displays folders in a tree structure with expand/collapse functionality.
|
|
69
|
+
* Hierarchical folder tree navigation component using Sidebar from document-engineering.
|
|
70
|
+
* Displays folders and files in a tree structure with expand/collapse functionality, search, and resize support.
|
|
17
71
|
*/
|
|
18
72
|
export function FolderTree({
|
|
19
|
-
|
|
73
|
+
driveId,
|
|
74
|
+
driveName,
|
|
75
|
+
nodes,
|
|
20
76
|
selectedNodeId,
|
|
21
77
|
onSelectNode,
|
|
22
78
|
}: FolderTreeProps) {
|
|
23
|
-
//
|
|
24
|
-
const
|
|
25
|
-
|
|
79
|
+
// Transform Node[] to hierarchical SidebarNode structure
|
|
80
|
+
const sidebarNodes = useMemo(
|
|
81
|
+
() => transformNodesToSidebarNodes(nodes, driveName),
|
|
82
|
+
[nodes, driveName],
|
|
26
83
|
);
|
|
27
84
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
next.add(folderId);
|
|
36
|
-
}
|
|
37
|
-
return next;
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// Recursive function to render folder tree structure
|
|
42
|
-
const renderFolder = (folder: FolderNode, level = 0) => {
|
|
43
|
-
const hasChildren = folders.some((f) => f.parentFolder === folder.id);
|
|
44
|
-
const isExpanded = expandedFolders.has(folder.id);
|
|
45
|
-
const isSelected = selectedNodeId === folder.id;
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<div key={folder.id}>
|
|
49
|
-
<div
|
|
50
|
-
className={`flex cursor-pointer items-center rounded px-2 py-1 text-sm hover:bg-gray-100 ${
|
|
51
|
-
isSelected ? "bg-blue-100 text-blue-800" : ""
|
|
52
|
-
}`}
|
|
53
|
-
style={{ paddingLeft: `${level * 16 + 8}px` }} // Customize indentation here
|
|
54
|
-
onClick={() => onSelectNode(folder.id)}
|
|
55
|
-
>
|
|
56
|
-
{/* Expand/collapse button for folders with children */}
|
|
57
|
-
{hasChildren && (
|
|
58
|
-
<button
|
|
59
|
-
className="mr-1 flex h-4 w-4 items-center justify-center"
|
|
60
|
-
onClick={(e) => {
|
|
61
|
-
e.stopPropagation();
|
|
62
|
-
toggleFolder(folder.id);
|
|
63
|
-
}}
|
|
64
|
-
>
|
|
65
|
-
{isExpanded ? "▼" : "▶"} {/* Customize expand icons here */}
|
|
66
|
-
</button>
|
|
67
|
-
)}
|
|
68
|
-
{!hasChildren && <div className="mr-1 w-5" />}
|
|
69
|
-
{/* Customize folder icon and styling here */}
|
|
70
|
-
<span>📁 {folder.name}</span>
|
|
71
|
-
</div>
|
|
72
|
-
{/* Recursively render child folders when expanded */}
|
|
73
|
-
{isExpanded && hasChildren && (
|
|
74
|
-
<div>
|
|
75
|
-
{folders
|
|
76
|
-
.filter((f) => f.parentFolder === folder.id)
|
|
77
|
-
.map((child) => renderFolder(child, level + 1))}
|
|
78
|
-
</div>
|
|
79
|
-
)}
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
85
|
+
const handleActiveNodeChange = (node: SidebarNode) => {
|
|
86
|
+
// If root node is selected, pass undefined to match existing behavior
|
|
87
|
+
if (node.id === "root") {
|
|
88
|
+
onSelectNode(undefined);
|
|
89
|
+
} else {
|
|
90
|
+
onSelectNode(node.id);
|
|
91
|
+
}
|
|
82
92
|
};
|
|
93
|
+
// Map selectedNodeId to activeNodeId (use "root" when undefined)
|
|
94
|
+
const activeNodeId =
|
|
95
|
+
!selectedNodeId || selectedNodeId === driveId ? "root" : selectedNodeId;
|
|
83
96
|
|
|
84
97
|
return (
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.map((folder) => renderFolder(folder))}
|
|
101
|
-
</div>
|
|
98
|
+
<SidebarProvider nodes={sidebarNodes}>
|
|
99
|
+
<Sidebar
|
|
100
|
+
className="pt-1"
|
|
101
|
+
nodes={sidebarNodes}
|
|
102
|
+
activeNodeId={activeNodeId}
|
|
103
|
+
onActiveNodeChange={handleActiveNodeChange}
|
|
104
|
+
sidebarTitle="Drive Explorer"
|
|
105
|
+
showSearchBar={true}
|
|
106
|
+
resizable={true}
|
|
107
|
+
allowPinning={false}
|
|
108
|
+
showStatusFilter={false}
|
|
109
|
+
initialWidth={256}
|
|
110
|
+
defaultLevel={2}
|
|
111
|
+
/>
|
|
112
|
+
</SidebarProvider>
|
|
102
113
|
);
|
|
103
|
-
}
|
|
114
|
+
}
|
|
@@ -2,42 +2,7 @@
|
|
|
2
2
|
to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/editor.tsx"
|
|
3
3
|
unless_exists: true
|
|
4
4
|
---
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
AnalyticsProvider,
|
|
8
|
-
DriveContextProvider,
|
|
9
|
-
useAppConfig,
|
|
10
|
-
type DriveEditorProps,
|
|
11
|
-
} from "@powerhousedao/reactor-browser";
|
|
5
|
+
import { withDropZone } from "@powerhousedao/design-system";
|
|
12
6
|
import { DriveExplorer } from "./components/DriveExplorer.js";
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
* Base editor component that renders the drive explorer interface.
|
|
16
|
-
* Customize document opening behavior and drive-level actions here.
|
|
17
|
-
*/
|
|
18
|
-
export function BaseEditor(props: DriveEditorProps) {
|
|
19
|
-
const { context, document } = props;
|
|
20
|
-
return (
|
|
21
|
-
<div className="new-drive-explorer" style={{ height: "100%" }}>
|
|
22
|
-
<DriveExplorer document={document} context={context} />
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Main editor entry point with required providers.
|
|
29
|
-
*/
|
|
30
|
-
export default function Editor(props: DriveEditorProps) {
|
|
31
|
-
const appConfig = useAppConfig();
|
|
32
|
-
const analyticsDatabaseName = appConfig?.analyticsDatabaseName;
|
|
33
|
-
return (
|
|
34
|
-
// Required context providers for drive functionality
|
|
35
|
-
<DriveContextProvider value={props.context}>
|
|
36
|
-
<WagmiContext>
|
|
37
|
-
<AnalyticsProvider databaseName={analyticsDatabaseName}>
|
|
38
|
-
<BaseEditor {...props} />
|
|
39
|
-
</AnalyticsProvider>
|
|
40
|
-
</WagmiContext>
|
|
41
|
-
</DriveContextProvider>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
8
|
+
export const Editor = withDropZone(DriveExplorer);
|
|
@@ -2,6 +2,8 @@ export type Args = {
|
|
|
2
2
|
name: string;
|
|
3
3
|
rootDir: string;
|
|
4
4
|
appId?: string;
|
|
5
|
+
dragAndDropEnabled?: boolean;
|
|
6
|
+
dragAndDropDocumentTypes?: string[];
|
|
5
7
|
};
|
|
6
8
|
declare const _default: {
|
|
7
9
|
params: ({ args }: {
|
|
@@ -10,6 +12,8 @@ declare const _default: {
|
|
|
10
12
|
rootDir: string;
|
|
11
13
|
name: string;
|
|
12
14
|
appId: string | undefined;
|
|
15
|
+
dragAndDropEnabled: boolean | undefined;
|
|
16
|
+
dragAndDropDocumentTypes: string[] | undefined;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
15
19
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;;uBAGmB;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;;;;;;;;AADnC,wBAUE"}
|
|
@@ -3,7 +3,7 @@ to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/index.ts"
|
|
|
3
3
|
force: true
|
|
4
4
|
---
|
|
5
5
|
import { type DriveEditorModule } from "@powerhousedao/reactor-browser";
|
|
6
|
-
import Editor from "./editor.js";
|
|
6
|
+
import { Editor } from "./editor.js";
|
|
7
7
|
|
|
8
8
|
export const module: DriveEditorModule = {
|
|
9
9
|
Component: Editor,
|
|
@@ -12,8 +12,10 @@ export const module: DriveEditorModule = {
|
|
|
12
12
|
id: "<%= appId || 'drive-editor-id' %>",
|
|
13
13
|
disableExternalControls: true,
|
|
14
14
|
documentToolbarEnabled: true,
|
|
15
|
-
showSwitchboardLink: true
|
|
15
|
+
showSwitchboardLink: true,<%_ if (dragAndDropEnabled) { _%>
|
|
16
|
+
documentTypes: [<%- (dragAndDropDocumentTypes ? JSON.parse(dragAndDropDocumentTypes) : []).map(type => JSON.stringify(type)).join(', ') %>],
|
|
17
|
+
dragAndDrop: {
|
|
18
|
+
enabled: true,
|
|
19
|
+
},<%_ } _%>
|
|
16
20
|
},
|
|
17
21
|
};
|
|
18
|
-
|
|
19
|
-
export default module;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-drive-editor/index.ts"],"names":[],"mappings":";;AAQA,kBAAe;IACb,MAAM,EAAE,CAAC,EAAE,IAAI,EAAkB,EAAE,EAAE;QACnC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;SACxD,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -2,25 +2,92 @@
|
|
|
2
2
|
to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/editor.tsx"
|
|
3
3
|
unless_exists: true
|
|
4
4
|
---
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import {
|
|
6
|
+
Button,
|
|
7
|
+
Form,
|
|
8
|
+
FormLabel,
|
|
9
|
+
StringField,
|
|
10
|
+
} from "@powerhousedao/document-engineering";
|
|
11
|
+
<% if(!documentType){ %>import { useSelectedDocument } from "@powerhousedao/reactor-browser";<% } else { %>import { useSelected<%= documentType.name %>Document %>} from "../hooks/use<%= documentType.name %>Document%>.js";<% } %>
|
|
12
|
+
import { setName } from "document-model";<% if(documentType) { %>
|
|
13
|
+
import { actions } from "<%= documentType.importPath %>";<% } %>
|
|
10
14
|
|
|
11
|
-
export
|
|
15
|
+
export function Editor() {
|
|
16
|
+
const [document, dispatch] = <% if(documentType) { %>useSelected<%= documentType.name %>Document()<% } else { %>useSelectedDocument()<% } %>;
|
|
17
|
+
<% if(!documentType){ %>
|
|
18
|
+
if (!document) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
<% } %>
|
|
22
|
+
function handleSetName(values: { name: string }) {
|
|
23
|
+
if (values.name) {
|
|
24
|
+
dispatch(setName(values.name));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
12
27
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
return (
|
|
29
|
+
<div className="ph-default-styles py-10 text-center">
|
|
30
|
+
<div className="inline-flex flex-col gap-10 text-start">
|
|
31
|
+
|
|
32
|
+
{/* Edit document name form */}
|
|
33
|
+
<section className="flex justify-between">
|
|
34
|
+
<h1 className="text-start">{document.header.name}</h1>
|
|
35
|
+
<div className="flex flex-col space-y-2">
|
|
36
|
+
<Form
|
|
37
|
+
onSubmit={handleSetName}
|
|
38
|
+
defaultValues={{ name: document.header.name }}
|
|
39
|
+
className="flex flex-col gap-3 pt-2"
|
|
40
|
+
>
|
|
41
|
+
<div className="flex items-end gap-3">
|
|
42
|
+
<div>
|
|
43
|
+
<FormLabel htmlFor="name">
|
|
44
|
+
<b className="mb-1">Change document name</b>
|
|
45
|
+
</FormLabel>
|
|
46
|
+
<StringField
|
|
47
|
+
name="name"
|
|
48
|
+
placeholder="Enter document name"
|
|
49
|
+
className="mt-1"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
<Button type="submit">Edit</Button>
|
|
53
|
+
</div>
|
|
54
|
+
</Form>
|
|
55
|
+
</div>
|
|
56
|
+
</section>
|
|
57
|
+
|
|
58
|
+
{/* Document metadata */}
|
|
59
|
+
<section>
|
|
60
|
+
<ul className="grid grid-cols-2 gap-x-4 gap-y-1 text-gray-700">
|
|
61
|
+
<li>
|
|
62
|
+
<b className="mr-1">Id:</b>
|
|
63
|
+
{document.header.id}
|
|
64
|
+
</li>
|
|
65
|
+
<li>
|
|
66
|
+
<b className="mr-1">Created:</b>
|
|
67
|
+
{new Date(document.header.createdAtUtcIso).toLocaleString()}
|
|
68
|
+
</li>
|
|
69
|
+
<li>
|
|
70
|
+
<b className="mr-1">Type:</b>
|
|
71
|
+
{document.header.documentType}
|
|
72
|
+
</li>
|
|
73
|
+
<li>
|
|
74
|
+
<b className="mr-1">Last Modified:</b>
|
|
75
|
+
{new Date(document.header.lastModifiedAtUtcIso).toLocaleString()}
|
|
76
|
+
</li>
|
|
77
|
+
</ul>
|
|
78
|
+
</section>
|
|
79
|
+
|
|
80
|
+
{/* Document state */}
|
|
81
|
+
<section className="inline-block">
|
|
82
|
+
<h2 className="mb-4">Document state</h2>
|
|
83
|
+
<textarea
|
|
84
|
+
rows={10}
|
|
85
|
+
readOnly
|
|
86
|
+
value={JSON.stringify(document.state, null, 2)}
|
|
87
|
+
className="font-mono"
|
|
88
|
+
></textarea>
|
|
89
|
+
</section>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: "<%= documentType ? `${rootDir}/hooks/use${h.changeCase.pascal(documentType.name)}Document.ts` : null %>"
|
|
3
|
+
unless_exists: true
|
|
4
|
+
---
|
|
5
|
+
<% if (documentType) { %>
|
|
6
|
+
import { useDocumentOfType, useSelectedDocumentId } from "@powerhousedao/reactor-browser";
|
|
7
|
+
import type { <%= documentType.name %>Action, <%= documentType.name %>Document } from "<%= documentType.importPath %>";
|
|
8
|
+
|
|
9
|
+
export function use<%= documentType.name %>Document(documentId: string | null | undefined) {
|
|
10
|
+
return useDocumentOfType<<%= documentType.name %>Document, <%= documentType.name %>Action>(documentId, "<%= documentType.type %>");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function useSelected<%= documentType.name %>Document() {
|
|
14
|
+
const selectedDocumentId = useSelectedDocumentId();
|
|
15
|
+
return use<%= documentType.name %>Document(selectedDocumentId);
|
|
16
|
+
}
|
|
17
|
+
<% } %>
|
|
@@ -5,6 +5,7 @@ export type Args = {
|
|
|
5
5
|
documentTypes: string;
|
|
6
6
|
documentTypesMap: string;
|
|
7
7
|
editorId?: string;
|
|
8
|
+
documentType?: string;
|
|
8
9
|
};
|
|
9
10
|
declare const _default: {
|
|
10
11
|
params: ({ args }: {
|
|
@@ -14,8 +15,16 @@ declare const _default: {
|
|
|
14
15
|
documentModelsDir: string;
|
|
15
16
|
name: string;
|
|
16
17
|
documentTypes: string[];
|
|
17
|
-
documentTypesMap:
|
|
18
|
+
documentTypesMap: Record<string, {
|
|
19
|
+
name: string;
|
|
20
|
+
importPath: string;
|
|
21
|
+
}>;
|
|
18
22
|
editorId: string | undefined;
|
|
23
|
+
documentType: {
|
|
24
|
+
type: string;
|
|
25
|
+
name: string;
|
|
26
|
+
importPath: string;
|
|
27
|
+
} | undefined;
|
|
19
28
|
};
|
|
20
29
|
};
|
|
21
30
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-editor/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-editor/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;;uBAGmB;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;;;;;;kBAOrB,MAAM;wBAAc,MAAM;;;;;kBAA1B,MAAM;wBAAc,MAAM;;;;AARxC,wBA8BE"}
|
|
@@ -3,7 +3,7 @@ to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/index.ts"
|
|
|
3
3
|
force: true
|
|
4
4
|
---
|
|
5
5
|
import type { EditorModule } from 'document-model';
|
|
6
|
-
import Editor from './editor.js';
|
|
6
|
+
import { Editor } from './editor.js';
|
|
7
7
|
|
|
8
8
|
export const module: EditorModule = {
|
|
9
9
|
Component: Editor,
|
|
@@ -14,6 +14,4 @@ export const module: EditorModule = {
|
|
|
14
14
|
documentToolbarEnabled: true,
|
|
15
15
|
showSwitchboardLink: true,
|
|
16
16
|
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default module;
|
|
17
|
+
};
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
params: ({ args }) => {
|
|
5
|
+
const documentTypes = args.documentTypes
|
|
6
|
+
.split(",")
|
|
7
|
+
.map((type) => type.trim())
|
|
8
|
+
.filter((type) => type !== "");
|
|
9
|
+
const documentTypesMap = JSON.parse(args.documentTypesMap);
|
|
10
|
+
// if this editor is for a single document type, then the boilerplate will be customized to it
|
|
11
|
+
const singleDocumentType = documentTypes.length === 1 ? documentTypes[0] : undefined;
|
|
12
|
+
const documentType = singleDocumentType
|
|
13
|
+
? { ...documentTypesMap[singleDocumentType], type: singleDocumentType }
|
|
14
|
+
: undefined;
|
|
5
15
|
return {
|
|
6
16
|
rootDir: args.rootDir,
|
|
7
17
|
documentModelsDir: args.documentModelsDir,
|
|
@@ -9,8 +19,9 @@ exports.default = {
|
|
|
9
19
|
documentTypes: args.documentTypes
|
|
10
20
|
.split(",")
|
|
11
21
|
.filter((type) => type !== ""),
|
|
12
|
-
documentTypesMap
|
|
22
|
+
documentTypesMap,
|
|
13
23
|
editorId: args.editorId,
|
|
24
|
+
documentType,
|
|
14
25
|
};
|
|
15
26
|
},
|
|
16
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-editor/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/codegen/.hygen/templates/powerhouse/generate-editor/index.ts"],"names":[],"mappings":";;AAUA,kBAAe;IACb,MAAM,EAAE,CAAC,EAAE,IAAI,EAAkB,EAAE,EAAE;QACnC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa;aACrC,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;aAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;QACjC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAGxD,CAAC;QAEF,8FAA8F;QAC9F,MAAM,kBAAkB,GACtB,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5D,MAAM,YAAY,GAAG,kBAAkB;YACrC,CAAC,CAAC,EAAE,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE;YACvE,CAAC,CAAC,SAAS,CAAC;QAEd,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;iBAC9B,KAAK,CAAC,GAAG,CAAC;iBACV,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC;YAChC,gBAAgB;YAChB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,YAAY;SACb,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/dist/src/codegen/.hygen/templates/powerhouse/generate-processor-analytics/index.esm.t
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
to: "<%= rootDir %>/<%= h.changeCase.param(name) %>/index.ts"
|
|
3
|
-
|
|
3
|
+
unless_exists: true
|
|
4
4
|
---
|
|
5
5
|
import { AnalyticsPath, AnalyticsSeriesInput, IAnalyticsStore } from "@powerhousedao/reactor-api";
|
|
6
6
|
import { type InternalTransmitterUpdate, type IProcessor } from "document-drive";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { CodegenConfig } from "@graphql-codegen/cli";
|
|
2
|
+
import type { TypeScriptPluginConfig } from "@graphql-codegen/typescript";
|
|
3
3
|
export declare const scalars: {
|
|
4
4
|
Unknown: string;
|
|
5
5
|
DateTime: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/codegen/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/codegen/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAa1E,eAAO,MAAM,OAAO;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAO7B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,sBAWtB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAYpC,CAAC;AAEX,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,aAAa,CAAC,WAAW,CAAC,CAmB5B;AAED,eAAO,MAAM,cAAc,GACzB,OAAO,MAAM,EACb,OAAO,MAAM,EACb;;;;;CAA0E;cAgB9D,MAAM;aACP,MAAM;WACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IA8BjC,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EACb;;;;CAA0D,iBAqB3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/codegen/graphql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/codegen/graphql.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAE3D,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,EAAE,CACxC,WAAW,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;KACzC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;KACxC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAElC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,yBAAyB;IAClC,GAAI,iBAA4C;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,uBAAuB;IACjC,UAAU,EAAE,YAAY;IACxB,OAAO,EACL,oGAAoG;IACtG,GAAI,gBAA2C;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA2B;IAC9C,aAAa,EAAE,IAAI;IACnB,OAAO;IACP,YAAY,EAAE,IAAI;IAClB,oBAAoB,EAAE,IAAI;IAC1B,cAAc,EAAE;QACd,KAAK,EAAE,IAAI;KACZ;IACD,YAAY,EAAE,IAAI;IAClB,sCAAsC;IACt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AK,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,GAAG,EAAE,EAC1D,EAAE;IACF,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,oBAAoB,GAAG,cAAc,CAAC,MAAM,CAChD,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACf,GAAG,GAAG;QACN,GAAG,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;KACtC,CAAC,EACF,EAAE,CACH,CAAC;IAEF,MAAM,MAAM,GAAkB;QAC5B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,oBAAoB;QAC/B,KAAK;QACL,KAAK,EAAE;YACL,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC;SACtE;KACF,CAAC;IAEF,OAAO,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { DocumentModelState } from "document-model";
|
|
2
|
+
import type { DocumentTypesMap } from "./index.js";
|
|
3
3
|
export declare function run(args: string[], { watch, skipFormat, verbose }?: {
|
|
4
4
|
watch?: boolean | undefined;
|
|
5
5
|
skipFormat?: boolean | undefined;
|
|
@@ -36,5 +36,8 @@ export declare function generateImportScript(name: string, dir: string, { skipFo
|
|
|
36
36
|
}): Promise<void>;
|
|
37
37
|
export declare function generateDriveEditor(name: string, dir: string, { skipFormat }?: {
|
|
38
38
|
skipFormat?: boolean | undefined;
|
|
39
|
-
}, appId?: string
|
|
39
|
+
}, appId?: string, editorOptions?: {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
documentTypes: string[];
|
|
42
|
+
}): Promise<void>;
|
|
40
43
|
//# sourceMappingURL=hygen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hygen.d.ts","sourceRoot":"","sources":["../../../src/codegen/hygen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"hygen.d.ts","sourceRoot":"","sources":["../../../src/codegen/hygen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAOzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AASnD,wBAAsB,GAAG,CACvB,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,KAAa,EAAE,UAAkB,EAAE,OAAc,EAAE;;;;CAAK,uDAuC3D;AAED,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,EAAE,KAAa,EAAE,UAAkB,EAAE,OAAc,EAAE,KAAY,EAAE;;;;;CAAK,iBAyCzE;AAED,wBAAsB,qBAAqB,CACzC,kBAAkB,EAAE,kBAAkB,EACtC,GAAG,EAAE,MAAM,EACX,EACE,KAAa,EACb,UAAkB,EAClB,OAAc,EACd,gBAAuB,EACvB,KAAY,GACb;;;;;;CAAK,iBAiDP;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EAAE,EACvB,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,EAAE,MAAM,EACX,iBAAiB,EAAE,MAAM,EACzB,EAAE,UAAkB,EAAE,OAAc,EAAE;;;CAAK,EAC3C,QAAQ,CAAC,EAAE,MAAM,iBAuBlB;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EAAE,EACvB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,WAAW,GAAG,cAAc,EAClC,EAAE,UAAkB,EAAE,OAAc,EAAE;;;CAAK,iBAuB5C;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,M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