@powerhousedao/network-admin 0.0.22 → 0.0.24

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.
Files changed (85) hide show
  1. package/dist/editors/hooks/useNetworkProfileDocument.d.ts +4 -0
  2. package/dist/editors/hooks/useNetworkProfileDocument.d.ts.map +1 -0
  3. package/dist/editors/hooks/useNetworkProfileDocument.js +8 -0
  4. package/dist/editors/hooks/usePaymentTermsDocument.d.ts +4 -0
  5. package/dist/editors/hooks/usePaymentTermsDocument.d.ts.map +1 -0
  6. package/dist/editors/hooks/usePaymentTermsDocument.js +8 -0
  7. package/dist/editors/hooks/useRequestForProposalsDocument.d.ts +4 -0
  8. package/dist/editors/hooks/useRequestForProposalsDocument.d.ts.map +1 -0
  9. package/dist/editors/hooks/useRequestForProposalsDocument.js +8 -0
  10. package/dist/editors/hooks/useWorkstreamDocument.d.ts +4 -0
  11. package/dist/editors/hooks/useWorkstreamDocument.d.ts.map +1 -0
  12. package/dist/editors/hooks/useWorkstreamDocument.js +8 -0
  13. package/dist/editors/network-admin/components/DriveExplorer.d.ts +3 -1
  14. package/dist/editors/network-admin/components/DriveExplorer.d.ts.map +1 -1
  15. package/dist/editors/network-admin/components/DriveExplorer.js +99 -115
  16. package/dist/editors/network-admin/components/icons/PaymentIcon.d.ts +3 -0
  17. package/dist/editors/network-admin/components/icons/PaymentIcon.d.ts.map +1 -0
  18. package/dist/editors/network-admin/components/icons/PaymentIcon.js +2 -0
  19. package/dist/editors/network-admin/components/icons/RfpIcon.d.ts +3 -0
  20. package/dist/editors/network-admin/components/icons/RfpIcon.d.ts.map +1 -0
  21. package/dist/editors/network-admin/components/icons/RfpIcon.js +2 -0
  22. package/dist/editors/network-admin/components/icons/SowIcon.d.ts +3 -0
  23. package/dist/editors/network-admin/components/icons/SowIcon.d.ts.map +1 -0
  24. package/dist/editors/network-admin/components/icons/SowIcon.js +2 -0
  25. package/dist/editors/network-admin/components/icons/WorkstreamIcon.d.ts +3 -0
  26. package/dist/editors/network-admin/components/icons/WorkstreamIcon.d.ts.map +1 -0
  27. package/dist/editors/network-admin/components/icons/WorkstreamIcon.js +2 -0
  28. package/dist/editors/network-admin/editor.d.ts +3 -14
  29. package/dist/editors/network-admin/editor.d.ts.map +1 -1
  30. package/dist/editors/network-admin/editor.js +2 -24
  31. package/dist/editors/network-admin/index.d.ts +0 -1
  32. package/dist/editors/network-admin/index.d.ts.map +1 -1
  33. package/dist/editors/network-admin/index.js +1 -2
  34. package/dist/editors/network-profile/editor.d.ts +1 -1
  35. package/dist/editors/network-profile/editor.d.ts.map +1 -1
  36. package/dist/editors/network-profile/editor.js +4 -4
  37. package/dist/editors/payment-terms/basic-terms-tab.d.ts +5 -3
  38. package/dist/editors/payment-terms/basic-terms-tab.d.ts.map +1 -1
  39. package/dist/editors/payment-terms/basic-terms-tab.js +18 -14
  40. package/dist/editors/payment-terms/clauses-tab.d.ts +4 -2
  41. package/dist/editors/payment-terms/clauses-tab.d.ts.map +1 -1
  42. package/dist/editors/payment-terms/cost-materials-tab.d.ts +5 -3
  43. package/dist/editors/payment-terms/cost-materials-tab.d.ts.map +1 -1
  44. package/dist/editors/payment-terms/cost-materials-tab.js +24 -15
  45. package/dist/editors/payment-terms/editor.d.ts +1 -1
  46. package/dist/editors/payment-terms/editor.d.ts.map +1 -1
  47. package/dist/editors/payment-terms/editor.js +5 -5
  48. package/dist/editors/payment-terms/escrow-tab.d.ts +4 -2
  49. package/dist/editors/payment-terms/escrow-tab.d.ts.map +1 -1
  50. package/dist/editors/payment-terms/escrow-tab.js +4 -4
  51. package/dist/editors/payment-terms/evaluation-tab.d.ts +4 -2
  52. package/dist/editors/payment-terms/evaluation-tab.d.ts.map +1 -1
  53. package/dist/editors/payment-terms/index.d.ts.map +1 -1
  54. package/dist/editors/payment-terms/milestones-tab.d.ts +5 -4
  55. package/dist/editors/payment-terms/milestones-tab.d.ts.map +1 -1
  56. package/dist/editors/payment-terms/milestones-tab.js +31 -21
  57. package/dist/editors/payment-terms/retainer-tab.d.ts +4 -2
  58. package/dist/editors/payment-terms/retainer-tab.d.ts.map +1 -1
  59. package/dist/editors/payment-terms/retainer-tab.js +18 -10
  60. package/dist/editors/request-for-proposals/editor.d.ts +1 -1
  61. package/dist/editors/request-for-proposals/editor.d.ts.map +1 -1
  62. package/dist/editors/request-for-proposals/editor.js +3 -3
  63. package/dist/editors/workstream/editor.d.ts +1 -1
  64. package/dist/editors/workstream/editor.d.ts.map +1 -1
  65. package/dist/editors/workstream/editor.js +70 -76
  66. package/dist/style.css +7991 -7860
  67. package/package.json +2 -2
  68. package/dist/editors/network-admin/components/CreateDocument.d.ts +0 -6
  69. package/dist/editors/network-admin/components/CreateDocument.d.ts.map +0 -1
  70. package/dist/editors/network-admin/components/CreateDocument.js +0 -24
  71. package/dist/editors/network-admin/components/EditorContainer.d.ts +0 -13
  72. package/dist/editors/network-admin/components/EditorContainer.d.ts.map +0 -1
  73. package/dist/editors/network-admin/components/EditorContainer.js +0 -99
  74. package/dist/editors/network-admin/components/FolderTree.d.ts +0 -15
  75. package/dist/editors/network-admin/components/FolderTree.d.ts.map +0 -1
  76. package/dist/editors/network-admin/components/FolderTree.js +0 -44
  77. package/dist/editors/network-admin/components/IsolatedSidebar.d.ts +0 -22
  78. package/dist/editors/network-admin/components/IsolatedSidebar.d.ts.map +0 -1
  79. package/dist/editors/network-admin/components/IsolatedSidebar.js +0 -107
  80. package/dist/editors/network-admin/components/IsolatedSidebarProvider.d.ts +0 -15
  81. package/dist/editors/network-admin/components/IsolatedSidebarProvider.d.ts.map +0 -1
  82. package/dist/editors/network-admin/components/IsolatedSidebarProvider.js +0 -367
  83. package/dist/editors/network-admin/utils.d.ts +0 -60
  84. package/dist/editors/network-admin/utils.d.ts.map +0 -1
  85. package/dist/editors/network-admin/utils.js +0 -67
@@ -0,0 +1,4 @@
1
+ import type { NetworkProfileDocument } from "../../document-models/network-profile/index.js";
2
+ export declare function useNetworkProfileDocument(documentId: string | null | undefined): never[] | [NetworkProfileDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/network-profile/gen/actions.js").NetworkProfileNetworkProfileManagementAction>];
3
+ export declare function useSelectedNetworkProfileDocument(): never[] | [NetworkProfileDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<import("../../document-models/network-profile/gen/actions.js").NetworkProfileNetworkProfileManagementAction>];
4
+ //# sourceMappingURL=useNetworkProfileDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNetworkProfileDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useNetworkProfileDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,gDAAgD,CAAC;AAExD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,8MAMtC;AAED,wBAAgB,iCAAiC,+MAGhD"}
@@ -0,0 +1,8 @@
1
+ import { useDocumentOfType, useSelectedDocumentId, } from "@powerhousedao/reactor-browser";
2
+ export function useNetworkProfileDocument(documentId) {
3
+ return useDocumentOfType(documentId, "powerhouse/network-profile");
4
+ }
5
+ export function useSelectedNetworkProfileDocument() {
6
+ const selectedDocumentId = useSelectedDocumentId();
7
+ return useNetworkProfileDocument(selectedDocumentId);
8
+ }
@@ -0,0 +1,4 @@
1
+ import type { PaymentTermsAction, PaymentTermsDocument } from "../../document-models/payment-terms/index.js";
2
+ export declare function usePaymentTermsDocument(documentId: string | null | undefined): never[] | [PaymentTermsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<PaymentTermsAction>];
3
+ export declare function useSelectedPaymentTermsDocument(): never[] | [PaymentTermsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<PaymentTermsAction>];
4
+ //# sourceMappingURL=usePaymentTermsDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaymentTermsDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/usePaymentTermsDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,8CAA8C,CAAC;AAEtD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,mHAMtC;AAED,wBAAgB,+BAA+B,oHAG9C"}
@@ -0,0 +1,8 @@
1
+ import { useDocumentOfType, useSelectedDocumentId, } from "@powerhousedao/reactor-browser";
2
+ export function usePaymentTermsDocument(documentId) {
3
+ return useDocumentOfType(documentId, "payment-terms");
4
+ }
5
+ export function useSelectedPaymentTermsDocument() {
6
+ const selectedDocumentId = useSelectedDocumentId();
7
+ return usePaymentTermsDocument(selectedDocumentId);
8
+ }
@@ -0,0 +1,4 @@
1
+ import type { RequestForProposalsAction, RequestForProposalsDocument } from "../../document-models/request-for-proposals/index.js";
2
+ export declare function useRequestForProposalsDocument(documentId: string | null | undefined): never[] | [RequestForProposalsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<RequestForProposalsAction>];
3
+ export declare function useSelectedRequestForProposalsDocument(): never[] | [RequestForProposalsDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<RequestForProposalsAction>];
4
+ //# sourceMappingURL=useRequestForProposalsDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRequestForProposalsDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useRequestForProposalsDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,sDAAsD,CAAC;AAE9D,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,iIAMtC;AAED,wBAAgB,sCAAsC,kIAGrD"}
@@ -0,0 +1,8 @@
1
+ import { useDocumentOfType, useSelectedDocumentId, } from "@powerhousedao/reactor-browser";
2
+ export function useRequestForProposalsDocument(documentId) {
3
+ return useDocumentOfType(documentId, "powerhouse/rfp");
4
+ }
5
+ export function useSelectedRequestForProposalsDocument() {
6
+ const selectedDocumentId = useSelectedDocumentId();
7
+ return useRequestForProposalsDocument(selectedDocumentId);
8
+ }
@@ -0,0 +1,4 @@
1
+ import type { WorkstreamAction, WorkstreamDocument } from "../../document-models/workstream/index.js";
2
+ export declare function useWorkstreamDocument(documentId: string | null | undefined): never[] | [WorkstreamDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<WorkstreamAction>];
3
+ export declare function useSelectedWorkstreamDocument(): never[] | [WorkstreamDocument, import("@powerhousedao/reactor-browser").DocumentDispatch<WorkstreamAction>];
4
+ //# sourceMappingURL=useWorkstreamDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWorkstreamDocument.d.ts","sourceRoot":"","sources":["../../../editors/hooks/useWorkstreamDocument.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,+GAMtC;AAED,wBAAgB,6BAA6B,gHAG5C"}
@@ -0,0 +1,8 @@
1
+ import { useDocumentOfType, useSelectedDocumentId, } from "@powerhousedao/reactor-browser";
2
+ export function useWorkstreamDocument(documentId) {
3
+ return useDocumentOfType(documentId, "powerhouse/workstream");
4
+ }
5
+ export function useSelectedWorkstreamDocument() {
6
+ const selectedDocumentId = useSelectedDocumentId();
7
+ return useWorkstreamDocument(selectedDocumentId);
8
+ }
@@ -2,5 +2,7 @@
2
2
  * Main drive explorer component with sidebar navigation and content area.
3
3
  * Layout: Left sidebar (folder tree) + Right content area (files/folders + document editor)
4
4
  */
5
- export declare function DriveExplorer(props: any): import("react/jsx-runtime").JSX.Element;
5
+ export declare function DriveExplorer(props: {
6
+ children?: any;
7
+ }): import("react/jsx-runtime").JSX.Element;
6
8
  //# sourceMappingURL=DriveExplorer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DriveExplorer.d.ts","sourceRoot":"","sources":["../../../../editors/network-admin/components/DriveExplorer.tsx"],"names":[],"mappings":"AAuCA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,2CAmoBvC"}
1
+ {"version":3,"file":"DriveExplorer.d.ts","sourceRoot":"","sources":["../../../../editors/network-admin/components/DriveExplorer.tsx"],"names":[],"mappings":"AA6CA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,2CAskBtD"}
@@ -1,10 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, CreateDocumentModal } from "@powerhousedao/design-system";
3
3
  import { Sidebar, SidebarProvider, } from "@powerhousedao/document-engineering";
4
- import { addDocument, setSelectedNode, useAllFolderNodes, useFileChildNodes, useSelectedDrive, useSelectedFolder, dispatchActions, useSelectedDocument, useSelectedDriveDocuments, showDeleteNodeModal, useSelectedDriveId, useNodeActions, } from "@powerhousedao/reactor-browser";
4
+ import { addDocument, setSelectedNode, useAllFolderNodes, useFileChildNodes, useSelectedDrive, useSelectedFolder, dispatchActions, useSelectedDocument, useSelectedDriveDocuments, showDeleteNodeModal, useNodeActions, } from "@powerhousedao/reactor-browser";
5
5
  import { useCallback, useRef, useState, useMemo, useEffect } from "react";
6
- import { EditorContainer } from "./EditorContainer.js";
7
6
  import { editWorkstream } from "../../../document-models/workstream/gen/creators.js";
7
+ import { PaymentIcon } from "./icons/PaymentIcon.js";
8
+ import { RfpIcon } from "./icons/RfpIcon.js";
9
+ import { SowIcon } from "./icons/SowIcon.js";
10
+ import { WorkstreamIcon } from "./icons/WorkstreamIcon.js";
8
11
  const WorkstreamStatusEnums = [
9
12
  "RFP_DRAFT",
10
13
  "PREWORK_RFC",
@@ -22,8 +25,6 @@ const WorkstreamStatusEnums = [
22
25
  */
23
26
  export function DriveExplorer(props) {
24
27
  // === DOCUMENT EDITOR STATE ===
25
- // Customize document opening/closing behavior here
26
- const [activeDocumentId, setActiveDocumentId] = useState();
27
28
  const [activeSidebarNodeId, setActiveSidebarNodeId] = useState("workstreams");
28
29
  const [openModal, setOpenModal] = useState(false);
29
30
  const [selectedRootNode, setSelectedRootNode] = useState("workstreams");
@@ -34,7 +35,6 @@ export function DriveExplorer(props) {
34
35
  const [selectedDrive] = useSelectedDrive(); // Currently selected drive
35
36
  const selectedFolder = useSelectedFolder(); // Currently selected folder
36
37
  const allDocuments = useSelectedDriveDocuments();
37
- const selectedDriveId = useSelectedDriveId();
38
38
  const { onRenameNode } = useNodeActions();
39
39
  // Listen to global selected document state (for external editors like Scope of Work)
40
40
  const [globalSelectedDocument] = useSelectedDocument();
@@ -46,30 +46,22 @@ export function DriveExplorer(props) {
46
46
  doc.header.documentType === "powerhouse/scopeofwork" ||
47
47
  doc.header.documentType === "powerhouse/rfp" ||
48
48
  doc.header.documentType === "payment-terms");
49
+ //check if network profile doc is created, set isNetworkProfileCreated to true
50
+ const isNetworkProfileCreated = networkAdminDocuments?.some((doc) => doc.header.documentType === "powerhouse/network-profile") || false;
49
51
  // Sync global selected document with local activeDocumentId
50
- // This makes setSelectedNode() trigger the EditorContainer to open
51
52
  useEffect(() => {
52
53
  if (globalSelectedDocument?.header?.id) {
53
- setActiveDocumentId(globalSelectedDocument.header.id);
54
54
  // Also update the sidebar node ID to match
55
55
  setActiveSidebarNodeId(`editor-${globalSelectedDocument.header.id}`);
56
56
  }
57
57
  }, [globalSelectedDocument]);
58
58
  // Check if current active document is a Scope of Work (should show in full view)
59
- const activeDoc = allDocuments?.find((doc) => doc.header.id === activeDocumentId);
60
- const isScopeOfWorkFullView = activeDoc?.header.documentType === "powerhouse/scopeofwork";
61
- // check if workstream doc is created, set isWorkstreamCreated to true
62
- const isWorkstreamCreated = networkAdminDocuments?.some((doc) => doc.header.documentType === "powerhouse/workstream") || false;
63
- //check if network profile doc is created, set isNetworkProfileCreated to true
64
- const isNetworkProfileCreated = networkAdminDocuments?.some((doc) => doc.header.documentType === "powerhouse/network-profile") || false;
59
+ const isScopeOfWorkFullView = globalSelectedDocument?.header.documentType === "powerhouse/scopeofwork";
65
60
  // Convert network admin documents to SidebarNode format
66
61
  const sidebarNodes = useMemo(() => {
67
62
  // Group documents by type
68
- const workstreamDocs = networkAdminDocuments?.filter((doc) => doc.header.documentType === "powerhouse/workstream") || [];
69
- const scopeOfWorkDocs = networkAdminDocuments?.filter((doc) => doc.header.documentType === "powerhouse/scopeofwork") || [];
70
- const rfpDocs = networkAdminDocuments?.filter((doc) => doc.header.documentType === "powerhouse/rfp") || [];
71
- const paymentTermsDocs = networkAdminDocuments?.filter((doc) => doc.header.documentType === "payment-terms") || [];
72
- const networkProfileDocs = networkAdminDocuments?.filter((doc) => doc.header.documentType === "powerhouse/network-profile") || [];
63
+ const workstreamDocs = (networkAdminDocuments?.filter((doc) => doc.header.documentType === "powerhouse/workstream") ?? []);
64
+ const networkProfileDocs = (networkAdminDocuments?.filter((doc) => doc.header.documentType === "powerhouse/network-profile") ?? []);
73
65
  const workstreamsNode = {
74
66
  id: "workstreams",
75
67
  title: "Workstreams",
@@ -83,78 +75,71 @@ export function DriveExplorer(props) {
83
75
  return {
84
76
  id: `workstream-status-${status}`,
85
77
  title: statusTitle +
86
- (workstreamDocs.filter((doc) => doc.state?.global?.status === status).length > 0
87
- ? ` (${workstreamDocs.filter((doc) => doc.state?.global?.status === status).length})`
78
+ (workstreamDocs.filter((doc) => doc.state.global.status === status).length > 0
79
+ ? ` (${workstreamDocs.filter((doc) => doc.state.global.status === status).length})`
88
80
  : ""),
89
- children: [
90
- ...workstreamDocs
91
- .filter((doc) => doc.state?.global?.status === status)
92
- .map((doc) => {
93
- let sow = null;
94
- let paymentTerms = null;
95
- let rfp = null;
96
- if (doc.state?.global?.initialProposal) {
97
- sow = doc.state?.global?.initialProposal.sow;
98
- paymentTerms = doc.state?.global?.initialProposal
99
- .paymentTerms;
100
- }
101
- if (doc.state?.global?.rfp) {
102
- rfp = doc.state?.global?.rfp?.id;
103
- }
104
- const sowDoc = allDocuments?.find((doc) => doc.header.id === sow);
105
- const rfpDoc = allDocuments?.find((doc) => doc.header.id === rfp);
106
- const pmtDoc = allDocuments?.find((doc) => doc.header.id === paymentTerms);
107
- // get alternative proposals
108
- let alternativeProposals = null;
109
- if (doc.state?.global?.alternativeProposals) {
110
- alternativeProposals = doc.state?.global
111
- ?.alternativeProposals;
112
- }
113
- // Only include documents that actually exist
114
- const wstrChildDocs = [rfpDoc].filter((doc) => doc !== undefined && doc !== null);
115
- const returnableChildren = {
116
- id: `editor-${doc.header.id}`,
117
- title: `${doc.state?.global?.code ? doc.state?.global?.code + " - " : ""}${doc.state?.global?.title || doc.header.name}`,
118
- children: wstrChildDocs.map((childDoc) => {
119
- let dynamicTitle = childDoc?.header.documentType === "powerhouse/rfp"
120
- ? `Request For Proposal`
121
- : `${childDoc.state?.global?.code ? childDoc.state?.global?.code + " - " : ""}${childDoc.state?.global?.title || childDoc.header.name}`;
122
- return {
123
- id: `editor-${childDoc.header.id}`,
124
- title: dynamicTitle,
125
- };
126
- }),
127
- };
128
- wstrChildDocs.push(sowDoc);
129
- wstrChildDocs.push(pmtDoc);
130
- // if sowDoc or pmtDoc is included in the wstrChildDocs, then add a child with the title "Initial Proposal"
131
- if (wstrChildDocs.includes(sowDoc) ||
132
- wstrChildDocs.includes(pmtDoc)) {
133
- returnableChildren.children.push({
81
+ children: workstreamDocs
82
+ .filter((doc) => doc.state.global.status === status)
83
+ .map((doc) => {
84
+ let sow = null;
85
+ let paymentTerms = null;
86
+ let rfp = null;
87
+ if (doc.state.global.initialProposal) {
88
+ sow = doc.state.global.initialProposal.sow;
89
+ paymentTerms = doc.state.global.initialProposal.paymentTerms;
90
+ }
91
+ if (doc.state.global.rfp) {
92
+ rfp = doc.state.global.rfp.id;
93
+ }
94
+ const sowDoc = allDocuments?.find((doc) => doc.header.id === sow);
95
+ const rfpDoc = allDocuments?.find((doc) => doc.header.id === rfp);
96
+ const pmtDoc = allDocuments?.find((doc) => doc.header.id === paymentTerms);
97
+ // get alternative proposals
98
+ const alternativeProposals = doc.state.global.alternativeProposals;
99
+ const returnableChildren = {
100
+ id: `editor-${doc.header.id}`,
101
+ title: `${doc.state.global.code ? doc.state.global.code + " - " : ""}${doc.state.global.title || doc.header.name}`,
102
+ icon: _jsx(WorkstreamIcon, { className: "w-5 h-5" }),
103
+ children: rfpDoc
104
+ ? [
105
+ {
106
+ id: `editor-${rfpDoc.header.id}`,
107
+ title: "Request For Proposal",
108
+ icon: _jsx(RfpIcon, { className: "w-5 h-5" }),
109
+ },
110
+ ]
111
+ : [],
112
+ };
113
+ // if sowDoc or pmtDoc is included in the wstrChildDocs, then add a child with the title "Initial Proposal"
114
+ const children = [];
115
+ if (sowDoc) {
116
+ children.push({
117
+ id: `editor-${sowDoc.header.id}`,
118
+ title: "Scope of Work",
119
+ icon: _jsx(SowIcon, { className: "w-5 h-5" }),
120
+ });
121
+ }
122
+ if (pmtDoc) {
123
+ children.push({
124
+ id: `editor-${pmtDoc.header.id}`,
125
+ title: "Payment Terms",
126
+ icon: _jsx(PaymentIcon, { className: "w-5 h-5" }),
127
+ });
128
+ }
129
+ if (children.length) {
130
+ returnableChildren.children = [
131
+ ...(returnableChildren.children ?? []),
132
+ {
134
133
  id: "initial-proposal",
135
134
  title: "Initial Proposal",
136
- children: wstrChildDocs
137
- .filter((childDoc) => childDoc &&
138
- childDoc.header &&
139
- (childDoc.header.documentType ===
140
- "powerhouse/scopeofwork" ||
141
- childDoc.header.documentType === "payment-terms"))
142
- .map((childDoc) => {
143
- let dynamicTitle = childDoc.header.documentType ===
144
- "powerhouse/scopeofwork"
145
- ? "Scope of Work"
146
- : childDoc.header.documentType === "payment-terms"
147
- ? "Payment Terms"
148
- : null;
149
- return {
150
- id: `editor-${childDoc.header.id}`,
151
- title: dynamicTitle,
152
- };
153
- }),
154
- });
155
- }
156
- if (alternativeProposals.length > 0) {
157
- returnableChildren.children.push({
135
+ children: children,
136
+ },
137
+ ];
138
+ }
139
+ if (alternativeProposals.length > 0) {
140
+ returnableChildren.children = [
141
+ ...(returnableChildren.children ?? []),
142
+ {
158
143
  id: "alternative-proposals",
159
144
  title: `Alternative Proposals (${alternativeProposals.length})`,
160
145
  children: alternativeProposals.map((proposal) => {
@@ -162,28 +147,35 @@ export function DriveExplorer(props) {
162
147
  const proposalSowDoc = allDocuments?.find((doc) => doc.header.id === proposal.sow);
163
148
  const proposalPaymentTermsDoc = allDocuments?.find((doc) => doc.header.id === proposal.paymentTerms);
164
149
  // Filter to only include documents that exist
165
- const proposalChildDocs = [proposalSowDoc, proposalPaymentTermsDoc].filter((doc) => doc !== undefined && doc !== null);
150
+ const proposalChildDocs = [
151
+ proposalSowDoc,
152
+ proposalPaymentTermsDoc,
153
+ ].filter((doc) => doc !== undefined && doc !== null);
166
154
  return {
167
155
  id: `alternative-proposal-${proposal.id}`,
168
156
  title: `${proposal.author.name}`,
169
157
  children: proposalChildDocs.map((childDoc) => {
170
- let dynamicTitle = childDoc.header.documentType === "powerhouse/scopeofwork"
158
+ const dynamicTitle = childDoc.header.documentType ===
159
+ "powerhouse/scopeofwork"
171
160
  ? "Scope of Work"
172
- : childDoc.header.documentType === "payment-terms"
161
+ : childDoc.header.documentType ===
162
+ "payment-terms"
173
163
  ? "Payment Terms"
174
- : null;
164
+ : "";
175
165
  return {
176
166
  id: `editor-${childDoc.header.id}`,
177
167
  title: dynamicTitle,
168
+ icon: childDoc.header.documentType ===
169
+ "powerhouse/scopeofwork" ? (_jsx(SowIcon, { className: "w-5 h-5" })) : (_jsx(PaymentIcon, { className: "w-5 h-5" })),
178
170
  };
179
171
  }),
180
172
  };
181
173
  }),
182
- });
183
- }
184
- return returnableChildren;
185
- }),
186
- ],
174
+ },
175
+ ];
176
+ }
177
+ return returnableChildren;
178
+ }),
187
179
  };
188
180
  }),
189
181
  ],
@@ -195,7 +187,7 @@ export function DriveExplorer(props) {
195
187
  // Add network profile documents
196
188
  ...networkProfileDocs.map((doc) => ({
197
189
  id: `editor-${doc.header.id}`,
198
- title: doc.header.name,
190
+ title: doc.state.global.name || doc.header.name,
199
191
  })),
200
192
  ],
201
193
  };
@@ -224,26 +216,20 @@ export function DriveExplorer(props) {
224
216
  // Always update the active sidebar node ID
225
217
  setActiveSidebarNodeId(newNode.id);
226
218
  if (newNode.id === "workstreams") {
227
- setActiveDocumentId(undefined);
219
+ setSelectedNode(undefined);
228
220
  setSelectedRootNode("workstreams");
229
221
  }
230
222
  else if (newNode.id === "network-information") {
231
- setActiveDocumentId(undefined);
223
+ setSelectedNode(undefined);
232
224
  setSelectedRootNode("network-information");
233
225
  // Handle network information display
234
226
  }
235
227
  else if (newNode.id.startsWith("editor-")) {
236
228
  // Extract file ID from editor-{file.id} format
237
229
  const fileId = newNode.id.replace("editor-", "");
238
- setActiveDocumentId(fileId);
230
+ setSelectedNode(fileId);
239
231
  }
240
- }, [
241
- allFolders,
242
- fileChildren,
243
- setSelectedNode,
244
- setActiveDocumentId,
245
- sidebarNodes,
246
- ]);
232
+ }, [allFolders, fileChildren, setSelectedNode, sidebarNodes]);
247
233
  // === EVENT HANDLERS ===
248
234
  // Display function that switches views based on active node ID
249
235
  const displayActiveNode = (activeNodeId) => {
@@ -281,11 +267,11 @@ export function DriveExplorer(props) {
281
267
  , size: "medium", className: "cursor-pointer hover:bg-gray-600 hover:text-white", title: "Create Workstream Document", "aria-description": "Create Workstream Document", onClick: () => {
282
268
  setModalDocumentType("powerhouse/workstream");
283
269
  setOpenModal(true);
284
- }, children: _jsx("span", { children: "Create Workstream Document" }) }), _jsx(Button, { color: "dark" // Customize button appearance
270
+ }, children: _jsxs("span", { className: "flex items-center gap-2", children: [_jsx(WorkstreamIcon, { className: "w-7 h-7 text-white" }), "Create Workstream Document"] }) }), _jsx(Button, { color: "dark" // Customize button appearance
285
271
  , size: "medium", className: "cursor-pointer hover:bg-gray-600 hover:text-white", title: "Create Network Profile Document", "aria-description": "Create Network Profile Document", onClick: () => {
286
272
  setModalDocumentType("powerhouse/network-profile");
287
273
  setOpenModal(true);
288
- }, disabled: isNetworkProfileCreated, children: _jsx("span", { children: "Create Network Profile Document" }) })] })] }), networkAdminDocuments && networkAdminDocuments.length > 0 && (_jsxs("div", { className: "w-full", children: [_jsx("h3", { className: "mb-4 text-lg font-medium text-gray-700", children: "\uD83D\uDCC4 Documents" }), _jsx("div", { className: "overflow-x-auto rounded-lg border border-gray-200 shadow-sm", children: _jsxs("table", { className: "w-full bg-white", children: [_jsx("thead", { className: "bg-gray-50", children: _jsxs("tr", { children: [_jsx("th", { className: "px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4", children: "Name" }), _jsx("th", { className: "px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4", children: "Type" }), _jsx("th", { className: "px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4", children: "Actions" })] }) }), _jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: networkAdminDocuments.map((document) => {
274
+ }, disabled: isNetworkProfileCreated, children: _jsx("span", { className: "flex items-center gap-2", children: "Create Network Profile Document" }) })] })] }), networkAdminDocuments && networkAdminDocuments.length > 0 && (_jsxs("div", { className: "w-full", children: [_jsx("h3", { className: "mb-4 text-lg font-medium text-gray-700", children: "\uD83D\uDCC4 Documents" }), _jsx("div", { className: "overflow-x-auto rounded-lg border border-gray-200 shadow-sm", children: _jsxs("table", { className: "w-full bg-white", children: [_jsx("thead", { className: "bg-gray-50", children: _jsxs("tr", { children: [_jsx("th", { className: "px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4", children: "Name" }), _jsx("th", { className: "px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4", children: "Type" }), _jsx("th", { className: "px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider w-1/4", children: "Actions" })] }) }), _jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: networkAdminDocuments.map((document) => {
289
275
  // Find the corresponding file node for actions
290
276
  const fileNode = fileChildren?.find((file) => file.id === document.header.id);
291
277
  return (_jsxs("tr", { className: "hover:bg-gray-50 transition-colors", children: [_jsx("td", { className: "px-2 py-2", children: _jsx("div", { className: "text-sm font-medium text-gray-900 truncate max-w-xs", title: fileNode?.name || document.header.name, children: fileNode?.name || document.header.name }) }), _jsx("td", { className: "px-2 py-2", children: _jsx("div", { className: "text-sm text-gray-500 truncate max-w-xs", title: document.header.documentType, children: document.header.documentType }) }), _jsx("td", { className: "px-2 py-2", children: _jsxs("div", { className: "flex gap-2 flex-wrap", children: [_jsx("button", { onClick: () => {
@@ -360,14 +346,12 @@ export function DriveExplorer(props) {
360
346
  modalDocumentType,
361
347
  ]);
362
348
  // === RENDER ===
363
- return (_jsx(SidebarProvider, { nodes: sidebarNodes, children: isScopeOfWorkFullView && activeDocumentId ? (_jsx("div", { className: "h-full w-full", children: _jsx(EditorContainer, { handleClose: () => {
364
- setActiveDocumentId(undefined);
365
- setSelectedNode(undefined); // Clear global selection
366
- }, hideToolbar: false, activeDocumentId: activeDocumentId, setActiveDocumentId: setActiveDocumentId, setActiveSidebarNodeId: setActiveSidebarNodeId }) })) : (
349
+ return (_jsx(SidebarProvider, { nodes: sidebarNodes, children: isScopeOfWorkFullView && props.children ? (_jsx("div", { className: "h-full w-full", children: props.children })) : (
367
350
  /* === NORMAL VIEW WITH SIDEBAR === */
368
351
  _jsxs("div", { className: "flex h-full", children: [_jsx(Sidebar, { nodes: sidebarNodes, activeNodeId: activeSidebarNodeId, onActiveNodeChange: (node) => handleActiveNodeChange(node.id), sidebarTitle: "Network Admin", showSearchBar: true, allowPinning: true, resizable: true, initialWidth: 300, maxWidth: 500, enableMacros: 4, handleOnTitleClick: () => {
369
- setActiveDocumentId(undefined);
352
+ setSelectedNode(undefined);
370
353
  setActiveSidebarNodeId("workstreams");
371
354
  setSelectedRootNode("workstreams");
372
- } }), _jsx("div", { className: "flex-1 overflow-y-auto", children: _jsx("div", { className: "h-full", children: activeDocumentId ? (_jsx(EditorContainer, { handleClose: () => setActiveDocumentId(undefined), hideToolbar: false, activeDocumentId: activeDocumentId, setActiveDocumentId: setActiveDocumentId, setActiveSidebarNodeId: setActiveSidebarNodeId })) : (displayActiveNode(selectedFolder?.id || selectedRootNode)) }) }), _jsx(CreateDocumentModal, { onContinue: onCreateDocument, onOpenChange: (open) => setOpenModal(open), open: openModal })] })) }));
355
+ } }), _jsx("div", { className: "flex-1 overflow-y-auto", children: _jsx("div", { className: "h-full", children: props.children ||
356
+ displayActiveNode(selectedFolder?.id || selectedRootNode) }) }), _jsx(CreateDocumentModal, { onContinue: onCreateDocument, onOpenChange: (open) => setOpenModal(open), open: openModal })] })) }));
373
357
  }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare const PaymentIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=PaymentIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentIcon.d.ts","sourceRoot":"","sources":["../../../../../editors/network-admin/components/icons/PaymentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAe/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const PaymentIcon = (props) => (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsxs("g", { clipPath: "url(#clip0_3012_15021)", children: [_jsx("path", { d: "M11.3335 10.667C11.3335 10.4902 11.2632 10.3207 11.1382 10.1956C11.0131 10.0706 10.8436 10.0003 10.6668 10.0003H8.6668C8.40782 10.0003 8.30491 10.0834 8.26706 10.1338C8.24571 10.1623 8.22172 10.1892 8.1961 10.2139L4.46303 13.8135C4.19802 14.069 3.7759 14.0615 3.52032 13.7965C3.26478 13.5315 3.27231 13.1094 3.53724 12.8538L7.24167 9.28158C7.6045 8.83776 8.1459 8.66699 8.6668 8.66699H10.6668C11.1972 8.66699 11.7058 8.87786 12.0809 9.25293C12.4559 9.628 12.6668 10.1366 12.6668 10.667C12.6668 11.1974 12.4559 11.706 12.0809 12.0811C11.7058 12.4561 11.1972 12.667 10.6668 12.667H9.33347C8.96528 12.667 8.6668 12.3685 8.6668 12.0003C8.6668 11.6321 8.96528 11.3337 9.33347 11.3337H10.6668C10.8436 11.3337 11.0131 11.2634 11.1382 11.1383C11.2632 11.0133 11.3335 10.8438 11.3335 10.667Z", fill: "currentColor" }), _jsx("path", { d: "M15.4063 7.9627C15.9369 7.9777 16.4402 8.20324 16.8047 8.58901C17.1692 8.97475 17.3653 9.48953 17.3503 10.02C17.3353 10.5493 17.1107 11.0502 16.7266 11.4145L16.7273 11.4152L13.6758 14.3331C13.0671 15.0114 12.2191 15.3331 11.3334 15.3331H8.66672C8.40794 15.3331 8.3049 15.4162 8.26698 15.4666C8.23922 15.5036 8.20739 15.5377 8.17258 15.5682L7.10552 16.5018C6.82844 16.7441 6.40719 16.7163 6.16477 16.4393C5.92231 16.1622 5.95083 15.741 6.22792 15.4985L7.25266 14.6007C7.61538 14.1671 8.1512 13.9998 8.66672 13.9998H11.3334C11.9021 13.9998 12.3757 13.7966 12.6986 13.4275L12.739 13.3846L15.806 10.4516L15.8086 10.449C15.9374 10.3274 16.0126 10.1593 16.0176 9.98224C16.0226 9.80516 15.957 9.63312 15.8353 9.50437C15.7137 9.3758 15.5461 9.30046 15.3692 9.29539C15.2143 9.29101 15.063 9.34075 14.9415 9.43471L14.8868 9.48158L12.0873 12.0818C11.8175 12.3324 11.3951 12.3165 11.1446 12.0467C10.8943 11.7769 10.91 11.3551 11.1797 11.1046L13.9753 8.50958V8.50893C14.361 8.14444 14.8759 7.94779 15.4063 7.9627Z", fill: "currentColor" }), _jsx("path", { d: "M2.86177 12.1953C3.12212 11.9349 3.54412 11.9349 3.80447 12.1953L7.80447 16.1953C8.06482 16.4556 8.06482 16.8776 7.80447 17.138C7.54412 17.3983 7.12212 17.3983 6.86177 17.138L2.86177 13.138C2.60142 12.8776 2.60142 12.4556 2.86177 12.1953Z", fill: "currentColor" }), _jsx("path", { d: "M13.9334 8.00065C13.9334 7.30118 13.3666 6.73386 12.6672 6.73372C11.9676 6.73372 11.4002 7.30109 11.4002 8.00065C11.4004 8.70009 11.9677 9.26693 12.6672 9.26693C13.3665 9.26679 13.9333 8.70001 13.9334 8.00065ZM15.2668 8.00065C15.2666 9.43638 14.1029 10.6001 12.6672 10.6003C11.2313 10.6003 10.067 9.43647 10.0669 8.00065C10.0669 6.56471 11.2312 5.40039 12.6672 5.40039C14.103 5.40053 15.2668 6.5648 15.2668 8.00065Z", fill: "currentColor" }), _jsx("path", { d: "M7.3335 5.33366C7.3335 4.59728 6.73654 4.00033 6.00016 4.00033C5.26378 4.00033 4.66683 4.59728 4.66683 5.33366C4.66683 6.07004 5.26378 6.66699 6.00016 6.66699C6.73654 6.66699 7.3335 6.07004 7.3335 5.33366ZM8.66683 5.33366C8.66683 6.80642 7.47292 8.00033 6.00016 8.00033C4.5274 8.00033 3.3335 6.80642 3.3335 5.33366C3.3335 3.8609 4.5274 2.66699 6.00016 2.66699C7.47292 2.66699 8.66683 3.8609 8.66683 5.33366Z", fill: "currentColor" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_3012_15021", children: _jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })] }));
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare const RfpIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=RfpIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RfpIcon.d.ts","sourceRoot":"","sources":["../../../../../editors/network-admin/components/icons/RfpIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAK3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const RfpIcon = (props) => (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsx("path", { d: "M3.3335 14.6663V5.33301C3.3335 4.80257 3.54436 4.29402 3.91943 3.91895C4.29451 3.54387 4.80306 3.33301 5.3335 3.33301H10.0002C10.3684 3.33301 10.6668 3.63148 10.6668 3.99967C10.6668 4.36786 10.3684 4.66634 10.0002 4.66634H5.3335C5.15668 4.66634 4.98717 4.73663 4.86214 4.86165C4.73712 4.98668 4.66683 5.1562 4.66683 5.33301V14.6663C4.66683 14.8432 4.73712 15.0127 4.86214 15.1377C4.98717 15.2627 5.15669 15.333 5.3335 15.333H14.6668C14.8436 15.333 15.0132 15.2627 15.1382 15.1377C15.2632 15.0127 15.3335 14.8432 15.3335 14.6663V9.99967C15.3335 9.63148 15.632 9.33301 16.0002 9.33301C16.3684 9.33301 16.6668 9.63148 16.6668 9.99967V14.6663C16.6668 15.1968 16.456 15.7053 16.0809 16.0804C15.7058 16.4555 15.1973 16.6663 14.6668 16.6663H5.3335C4.80306 16.6663 4.29451 16.4555 3.91943 16.0804C3.54436 15.7053 3.3335 15.1968 3.3335 14.6663Z", fill: "currentColor" }), _jsx("path", { d: "M15.9975 4.74967C15.9975 4.55147 15.919 4.36119 15.7788 4.22103C15.6386 4.0809 15.4484 4.00228 15.2502 4.00228C15.0519 4.0023 14.8617 4.08088 14.7215 4.22103L8.71304 10.2308H8.71239C8.6333 10.3097 8.5753 10.4074 8.54377 10.5146L8.15445 11.8447L9.48583 11.4561L9.5646 11.4274C9.64112 11.3942 9.71097 11.3467 9.77033 11.2874L15.7788 5.27832L15.8283 5.22363C15.9373 5.09059 15.9975 4.92321 15.9975 4.74967ZM17.3309 4.74967C17.3309 5.30154 17.1117 5.83079 16.7215 6.22103L10.713 12.2308C10.4756 12.468 10.1817 12.6413 9.85953 12.7354L9.86018 12.736L7.94481 13.2959H7.94416C7.77211 13.3461 7.58977 13.3488 7.41617 13.3044C7.24251 13.2599 7.08395 13.1694 6.95718 13.0426C6.83054 12.916 6.73996 12.7578 6.69546 12.5843C6.65097 12.4107 6.65373 12.2278 6.70393 12.0557H6.70458L7.26447 10.1403V10.1396C7.34719 9.85791 7.49068 9.59789 7.68439 9.37858L7.77033 9.28744L13.7788 3.27832L13.8537 3.20736C14.2354 2.86174 14.7328 2.66896 15.2502 2.66895C15.802 2.66895 16.3313 2.88815 16.7215 3.27832C17.1117 3.66853 17.3308 4.19784 17.3309 4.74967Z", fill: "currentColor" })] }));
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare const SowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=SowIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SowIcon.d.ts","sourceRoot":"","sources":["../../../../../editors/network-admin/components/icons/SowIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAI3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const SowIcon = (props) => (_jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: _jsx("path", { d: "M14.5449 4.75293C13.9257 5.16578 13.1262 5.33366 12.222 5.33366C11.2775 5.33366 10.4142 4.92692 9.68164 4.61296C8.90718 4.28103 8.18455 4.00033 7.33333 4.00033C6.6121 4.00033 5.91032 4.23425 5.33333 4.66699V11.1182C5.95356 10.8239 6.63586 10.667 7.33333 10.667C8.47943 10.667 9.42618 11.0527 10.2474 11.3812C11.0928 11.7193 11.8129 12.0003 12.6667 12.0003L12.8014 11.9977C13.475 11.9705 14.1257 11.7394 14.6667 11.3337V4.66699L14.5449 4.75293ZM16 11.3337C16 11.5407 15.9519 11.7449 15.8594 11.93C15.7668 12.1151 15.6323 12.2759 15.4668 12.4001C14.7095 12.9681 13.7984 13.2916 12.8555 13.3298L12.6667 13.3337C11.5206 13.3337 10.5738 12.948 9.7526 12.6195C8.90721 12.2813 8.18713 12.0003 7.33333 12.0003C6.60958 12.0003 5.90821 12.2358 5.33333 12.667V16.667C5.33333 17.0352 5.03486 17.3337 4.66667 17.3337C4.29848 17.3337 4 17.0352 4 16.667V4.66699C4 4.46 4.04805 4.25578 4.14063 4.07064C4.23316 3.88557 4.3677 3.72476 4.5332 3.60059C5.34099 2.99475 6.32361 2.66699 7.33333 2.66699C8.48206 2.66699 9.42606 3.05298 10.207 3.3877C11.03 3.74039 11.6112 4.00033 12.222 4.00033C13.0349 4.00032 13.5525 3.83589 13.8665 3.60059C14.0646 3.45202 14.3003 3.36111 14.5469 3.33887C14.7935 3.31663 15.0415 3.36355 15.263 3.47428C15.4844 3.58499 15.6706 3.75527 15.8008 3.96582C15.931 4.17645 16 4.41938 16 4.66699V11.3337Z", fill: "currentColor" }) }));
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare const WorkstreamIcon: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ //# sourceMappingURL=WorkstreamIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkstreamIcon.d.ts","sourceRoot":"","sources":["../../../../../editors/network-admin/components/icons/WorkstreamIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAWlE,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const WorkstreamIcon = (props) => (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [_jsx("path", { d: "M14.4716 6.86225C14.2112 6.6019 13.7892 6.6019 13.5289 6.86225C13.2685 7.1226 13.2685 7.54461 13.5289 7.80496L15.7242 10.0003L13.5289 12.1956C13.2685 12.4559 13.2685 12.8779 13.5289 13.1383C13.7892 13.3986 14.2112 13.3986 14.4716 13.1383L17.1382 10.4716C17.3986 10.2113 17.3986 9.78927 17.1382 9.52892L14.4716 6.86225Z", fill: "currentColor" }), _jsx("path", { d: "M3.3335 9.33301C2.96531 9.33301 2.66683 9.63148 2.66683 9.99967C2.66683 10.3679 2.96531 10.6663 3.3335 10.6663H16.6668C17.035 10.6663 17.3335 10.3679 17.3335 9.99967C17.3335 9.63148 17.035 9.33301 16.6668 9.33301H3.3335Z", fill: "currentColor" }), _jsx("path", { d: "M11.3335 8.66667C11.3335 8.29848 11.035 8 10.6668 8C10.2986 8 10.0002 8.29848 10.0002 8.66667L10.0002 9.33333C10.0002 9.70152 10.2986 10 10.6668 10C11.035 10 11.3335 9.70152 11.3335 9.33333L11.3335 8.66667Z", fill: "currentColor" }), _jsx("path", { d: "M8.6665 10.6667C8.6665 10.2985 8.36803 10 7.99984 10C7.63165 10 7.33317 10.2985 7.33317 10.6667L7.33317 11.3333C7.33317 11.7015 7.63165 12 7.99984 12C8.36803 12 8.6665 11.7015 8.6665 11.3333L8.6665 10.6667Z", fill: "currentColor" }), _jsx("path", { d: "M6 8.66667C6 8.29848 5.70152 8 5.33333 8C4.96514 8 4.66667 8.29848 4.66667 8.66667L4.66667 9.33333C4.66667 9.70152 4.96514 10 5.33333 10C5.70152 10 6 9.70152 6 9.33333L6 8.66667Z", fill: "currentColor" }), _jsx("path", { d: "M7 13.333C7 12.7807 7.44772 12.333 8 12.333C8.55228 12.333 9 12.7807 9 13.333C9 13.8853 8.55228 14.333 8 14.333V15.333C9.10457 15.333 10 14.4376 10 13.333C10 12.2284 9.10457 11.333 8 11.333C6.89543 11.333 6 12.2284 6 13.333C6 14.4376 6.89543 15.333 8 15.333V14.333C7.44772 14.333 7 13.8853 7 13.333Z", fill: "currentColor" }), _jsx("path", { d: "M9.6665 6.66699C9.6665 6.11471 10.1142 5.66699 10.6665 5.66699C11.2188 5.66699 11.6665 6.11471 11.6665 6.66699C11.6665 7.21928 11.2188 7.66699 10.6665 7.66699V8.66699C11.7711 8.66699 12.6665 7.77156 12.6665 6.66699C12.6665 5.56242 11.7711 4.66699 10.6665 4.66699C9.56193 4.66699 8.6665 5.56242 8.6665 6.66699C8.6665 7.77156 9.56193 8.66699 10.6665 8.66699V7.66699C10.1142 7.66699 9.6665 7.21928 9.6665 6.66699Z", fill: "currentColor" }), _jsx("path", { d: "M4.3335 6.66699C4.3335 6.11471 4.78121 5.66699 5.3335 5.66699C5.88578 5.66699 6.3335 6.11471 6.3335 6.66699C6.3335 7.21928 5.88578 7.66699 5.3335 7.66699V8.66699C6.43807 8.66699 7.3335 7.77156 7.3335 6.66699C7.3335 5.56242 6.43807 4.66699 5.3335 4.66699C4.22893 4.66699 3.3335 5.56242 3.3335 6.66699C3.3335 7.77156 4.22893 8.66699 5.3335 8.66699V7.66699C4.78121 7.66699 4.3335 7.21928 4.3335 6.66699Z", fill: "currentColor" })] }));
@@ -1,15 +1,4 @@
1
- import { type DriveEditorProps } from "@powerhousedao/reactor-browser";
2
- export type IProps = DriveEditorProps & {
3
- context?: any;
4
- document?: any;
5
- };
6
- /**
7
- * Base editor component that renders the drive explorer interface.
8
- * Customize document opening behavior and drive-level actions here.
9
- */
10
- export declare function BaseEditor(props: IProps): import("react/jsx-runtime").JSX.Element;
11
- /**
12
- * Main editor entry point with required providers.
13
- */
14
- export default function Editor(props: IProps): import("react/jsx-runtime").JSX.Element;
1
+ export declare const Editor: import("react").ComponentType<{
2
+ children?: any;
3
+ }>;
15
4
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/network-admin/editor.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,gCAAgC,CAAC;AAIxC,MAAM,MAAM,MAAM,GAAG,gBAAgB,GAAG;IACtC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,2CAOvC;AAKD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,2CAW3C"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/network-admin/editor.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;EAA8B,CAAC"}
@@ -1,25 +1,3 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { WagmiContext } from "@powerhousedao/design-system";
3
- import { AnalyticsProvider, useAppConfig, } from "@powerhousedao/reactor-browser";
1
+ import { withDropZone } from "@powerhousedao/design-system";
4
2
  import { DriveExplorer } from "./components/DriveExplorer.js";
5
- import { withDropZone } from "./utils/withDropZone.js";
6
- /**
7
- * Base editor component that renders the drive explorer interface.
8
- * Customize document opening behavior and drive-level actions here.
9
- */
10
- export function BaseEditor(props) {
11
- const { context, document } = props;
12
- return (_jsx("div", { style: { height: "100%" }, children: _jsx(DriveExplorer, { document: document, context: context }) }));
13
- }
14
- // Wrap base editor with drop zone functionality
15
- const BaseEditorWithDropZone = withDropZone(BaseEditor);
16
- /**
17
- * Main editor entry point with required providers.
18
- */
19
- export default function Editor(props) {
20
- const appConfig = useAppConfig();
21
- const analyticsDatabaseName = appConfig?.analyticsDatabaseName;
22
- return (
23
- // Required context providers for drive functionality
24
- _jsx(WagmiContext, { children: _jsx(AnalyticsProvider, { databaseName: analyticsDatabaseName, children: _jsx(BaseEditorWithDropZone, { ...props }) }) }));
25
- }
3
+ export const Editor = withDropZone(DriveExplorer);
@@ -1,4 +1,3 @@
1
1
  import { type DriveEditorModule } from "@powerhousedao/reactor-browser";
2
2
  export declare const module: DriveEditorModule;
3
- export default module;
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../editors/network-admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,eAAO,MAAM,MAAM,EAAE,iBAoBpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../editors/network-admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,eAAO,MAAM,MAAM,EAAE,iBAoBpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import Editor from "./editor.js";
1
+ import { Editor } from "./editor.js";
2
2
  export const module = {
3
3
  Component: Editor,
4
4
  documentTypes: ["powerhouse/document-drive"],
@@ -20,4 +20,3 @@ export const module = {
20
20
  },
21
21
  },
22
22
  };
23
- export default module;
@@ -1,4 +1,4 @@
1
1
  import type { EditorProps } from "document-model";
2
2
  export type IProps = EditorProps;
3
- export default function Editor(props: any): import("react/jsx-runtime").JSX.Element;
3
+ export default function Editor(): import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/network-profile/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgB1D,MAAM,MAAM,MAAM,GAAG,WAAW,CAAC;AA8MjC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,GAAG,2CAgPxC"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/network-profile/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAelD,MAAM,MAAM,MAAM,GAAG,WAAW,CAAC;AA8MjC,MAAM,CAAC,OAAO,UAAU,MAAM,4CA4O7B"}