@powerhousedao/connect 6.2.3-dev.10 → 6.2.3-dev.101

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 (254) hide show
  1. package/README.md +29 -1
  2. package/dist/{AddDriveModal-xAw48kdl.js → AddDriveModal-zMepHdWt.js} +44 -18
  3. package/dist/AddDriveModal-zMepHdWt.js.map +1 -0
  4. package/dist/{ClearStorageModal-BHLFpni1.js → ClearStorageModal-DLt7BCd2.js} +11 -13
  5. package/dist/ClearStorageModal-DLt7BCd2.js.map +1 -0
  6. package/dist/{ConfirmDocumentUpgradeModal-FUOhZsk7.js → ConfirmDocumentUpgradeModal-CoixS60F.js} +9 -8
  7. package/dist/ConfirmDocumentUpgradeModal-CoixS60F.js.map +1 -0
  8. package/dist/{CookiesPolicyModal-BpyPPyxS.js → CookiesPolicyModal-BpFjYc7T.js} +5 -5
  9. package/dist/{CookiesPolicyModal-BpyPPyxS.js.map → CookiesPolicyModal-BpFjYc7T.js.map} +1 -1
  10. package/dist/CreateDocumentModal-CiIW3pzx.js +45 -0
  11. package/dist/CreateDocumentModal-CiIW3pzx.js.map +1 -0
  12. package/dist/{DebugSettingsModal-cFjT1zO6.js → DebugSettingsModal-DyJgAT7a.js} +11 -11
  13. package/dist/DebugSettingsModal-DyJgAT7a.js.map +1 -0
  14. package/dist/{DeleteDriveModal-Dug84t1j.js → DeleteDriveModal-1pAIayG_.js} +7 -7
  15. package/dist/DeleteDriveModal-1pAIayG_.js.map +1 -0
  16. package/dist/{DeleteItemModal-mMzy3V8o.js → DeleteItemModal-BUpqmFxS.js} +8 -8
  17. package/dist/DeleteItemModal-BUpqmFxS.js.map +1 -0
  18. package/dist/{DisclaimerModal-DvpD5dPM.js → DisclaimerModal-TIJXRYLF.js} +7 -7
  19. package/dist/DisclaimerModal-TIJXRYLF.js.map +1 -0
  20. package/dist/{DocumentVersionUnsupportedModal-C3Q0V75l.js → DocumentVersionUnsupportedModal-DH9Zzsyw.js} +6 -6
  21. package/dist/DocumentVersionUnsupportedModal-DH9Zzsyw.js.map +1 -0
  22. package/dist/{DownloadDocumentWithErrorsModal-IKl0ljQb.js → DownloadDocumentWithErrorsModal-Beh-xw8B.js} +8 -7
  23. package/dist/DownloadDocumentWithErrorsModal-Beh-xw8B.js.map +1 -0
  24. package/dist/{DriveAuthRequiredModal-DVK7ZQzO.js → DriveAuthRequiredModal-XTcoJKvj.js} +7 -7
  25. package/dist/DriveAuthRequiredModal-XTcoJKvj.js.map +1 -0
  26. package/dist/DriveSettingsModal-CGZQhzBa.js +127 -0
  27. package/dist/DriveSettingsModal-CGZQhzBa.js.map +1 -0
  28. package/dist/FloatingTanStackRouterDevtools-CqogiFob-dxj8lrTP.js +2565 -0
  29. package/dist/FloatingTanStackRouterDevtools-CqogiFob-dxj8lrTP.js.map +1 -0
  30. package/dist/{InspectorModal-Z7YMEHRm.js → InspectorModal-DzciPYGj.js} +71 -31
  31. package/dist/InspectorModal-DzciPYGj.js.map +1 -0
  32. package/dist/{LoginModal-CybbOm3N.js → LoginModal-O06ZvWFI.js} +8 -8
  33. package/dist/LoginModal-O06ZvWFI.js.map +1 -0
  34. package/dist/{OpenFileDocumentsModal-JcGCx1ta.js → OpenFileDocumentsModal-DJsC1oR1.js} +22 -16
  35. package/dist/OpenFileDocumentsModal-DJsC1oR1.js.map +1 -0
  36. package/dist/{UpgradeDriveModal-_8t9slxQ.js → UpgradeDriveModal-CCWKp5yn.js} +7 -7
  37. package/dist/UpgradeDriveModal-CCWKp5yn.js.map +1 -0
  38. package/dist/ai-tools-BGUMFEMV.js +42 -0
  39. package/dist/ai-tools-BGUMFEMV.js.map +1 -0
  40. package/dist/ai-tools-D_q-Whju.js +4 -0
  41. package/dist/app-loader-BqQxww1X.js +4 -0
  42. package/dist/app-loader-C3qk1eIr.js +1254 -0
  43. package/dist/app-loader-C3qk1eIr.js.map +1 -0
  44. package/dist/app-skeleton-CMUP2zaz.js +132 -0
  45. package/dist/app-skeleton-CMUP2zaz.js.map +1 -0
  46. package/dist/app-skeleton-CdD1m8G3.js +4 -0
  47. package/dist/boot-B3dspF_Y.js +233 -0
  48. package/dist/boot-B3dspF_Y.js.map +1 -0
  49. package/dist/buffer-DNTcuap_.js +66 -0
  50. package/dist/buffer-DNTcuap_.js.map +1 -0
  51. package/dist/{build-info-BPvkFr0E.js → build-info-BFK_O8Td.js} +10 -6
  52. package/dist/build-info-BFK_O8Td.js.map +1 -0
  53. package/dist/components-bFhETljf.js +121 -0
  54. package/dist/components-bFhETljf.js.map +1 -0
  55. package/dist/{connect.config-DaHDEUrw.js → connect.config-DL9nKtlW.js} +28 -15
  56. package/dist/connect.config-DL9nKtlW.js.map +1 -0
  57. package/dist/{connection-state-3w4liC1X.js → connection-state-0ippUGEC.js} +28 -12
  58. package/dist/connection-state-0ippUGEC.js.map +1 -0
  59. package/dist/context-De2EB1AA-Ni0d829Q.js +1759 -0
  60. package/dist/context-De2EB1AA-Ni0d829Q.js.map +1 -0
  61. package/dist/{cookie-banner-BH6bIq24.js → cookie-banner-NclLYtB0.js} +7 -7
  62. package/dist/{cookie-banner-BH6bIq24.js.map → cookie-banner-NclLYtB0.js.map} +1 -1
  63. package/dist/document-editor-container-C91BsZkt.js +4 -0
  64. package/dist/document-editor-container-Dkk87_q1.js +311 -0
  65. package/dist/document-editor-container-Dkk87_q1.js.map +1 -0
  66. package/dist/drive-icon-BIpd8edR.js +49 -0
  67. package/dist/drive-icon-BIpd8edR.js.map +1 -0
  68. package/dist/drive-placements-DjeVpTTm.js +38 -0
  69. package/dist/drive-placements-DjeVpTTm.js.map +1 -0
  70. package/dist/error-boundary-BsUBww61.js +155 -0
  71. package/dist/error-boundary-BsUBww61.js.map +1 -0
  72. package/dist/esm-BDACZntJ.js +148 -0
  73. package/dist/esm-BDACZntJ.js.map +1 -0
  74. package/dist/generic.d.ts +140 -0
  75. package/dist/generic.d.ts.map +1 -0
  76. package/dist/generic.js +31 -0
  77. package/dist/generic.js.map +1 -0
  78. package/dist/{i18n-CWO0vYVd.js → i18n-D9WYPgk9.js} +4 -4
  79. package/dist/{i18n-CWO0vYVd.js.map → i18n-D9WYPgk9.js.map} +1 -1
  80. package/dist/index-D7c2WAbn.d.ts +4 -0
  81. package/dist/layout-Dj3_KscE.js +5 -0
  82. package/dist/layout.d.ts +3 -0
  83. package/dist/layout.js +4 -0
  84. package/dist/{load-BJ8uRKR9.js → load-BzWc_SWH.js} +48 -46
  85. package/dist/load-BzWc_SWH.js.map +1 -0
  86. package/dist/load-runtime-config-DNu6zNak.js +14 -0
  87. package/dist/load-runtime-config-DNu6zNak.js.map +1 -0
  88. package/dist/main.d.ts +2 -1
  89. package/dist/main.js +8 -8
  90. package/dist/main.js.map +1 -1
  91. package/dist/open-file-uploads-B5pr1sA2.js +183 -0
  92. package/dist/open-file-uploads-B5pr1sA2.js.map +1 -0
  93. package/dist/package-manager-Be80sske.js +550 -0
  94. package/dist/package-manager-Be80sske.js.map +1 -0
  95. package/dist/{pglite-major-B39aOEiE.js → pglite-major-pao-ozRo.js} +23 -5
  96. package/dist/pglite-major-pao-ozRo.js.map +1 -0
  97. package/dist/{pglite-migrate-core-Boxqqx-c.js → pglite-migrate-core-B6FqmhH8.js} +9 -7
  98. package/dist/pglite-migrate-core-B6FqmhH8.js.map +1 -0
  99. package/dist/{pglite-seed-BqAUvNFw.js → pglite-seed-CZsMNsV8.js} +8 -4
  100. package/dist/pglite-seed-CZsMNsV8.js.map +1 -0
  101. package/dist/pglite.worker.d.ts +2 -1
  102. package/dist/pglite.worker.js +4 -3
  103. package/dist/pglite.worker.js.map +1 -1
  104. package/dist/pglite.worker.legacy.d.ts +2 -1
  105. package/dist/pglite.worker.legacy.js +4 -3
  106. package/dist/pglite.worker.legacy.js.map +1 -1
  107. package/dist/plugin-configs.d.ts +242 -0
  108. package/dist/plugin-configs.d.ts.map +1 -0
  109. package/dist/plugin-configs.js +26 -0
  110. package/dist/plugin-configs.js.map +1 -0
  111. package/dist/plugins-CC5YRuPo.js +264 -0
  112. package/dist/plugins-CC5YRuPo.js.map +1 -0
  113. package/dist/{preferences-store-_5Cw4_YV.js → preferences-store-DxYAnGCc.js} +6 -25
  114. package/dist/preferences-store-DxYAnGCc.js.map +1 -0
  115. package/dist/prerender.d.ts +38 -0
  116. package/dist/prerender.d.ts.map +1 -0
  117. package/dist/prerender.js +195 -0
  118. package/dist/prerender.js.map +1 -0
  119. package/dist/prerendered-shell-peKE7AqI.js +51 -0
  120. package/dist/prerendered-shell-peKE7AqI.js.map +1 -0
  121. package/dist/{pwa-manifest-link-DIgOSo2Q.js → pwa-manifest-link-DNwWvnLV.js} +5 -5
  122. package/dist/{pwa-manifest-link-DIgOSo2Q.js.map → pwa-manifest-link-DNwWvnLV.js.map} +1 -1
  123. package/dist/reactor-C9uRDsXf.js +1656 -0
  124. package/dist/reactor-C9uRDsXf.js.map +1 -0
  125. package/dist/reactor-chat-C6yp2S37.js +15 -0
  126. package/dist/reactor-chat-C6yp2S37.js.map +1 -0
  127. package/dist/reactor.worker.d.ts +2 -1
  128. package/dist/reactor.worker.js +494 -163
  129. package/dist/reactor.worker.js.map +1 -1
  130. package/dist/{registerServiceWorker-BSzbNfvz.js → registerServiceWorker-OR8nokAn.js} +5 -5
  131. package/dist/{registerServiceWorker-BSzbNfvz.js.map → registerServiceWorker-OR8nokAn.js.map} +1 -1
  132. package/dist/root-v9fj27sn.js +27 -0
  133. package/dist/root-v9fj27sn.js.map +1 -0
  134. package/dist/route-tree.d.ts +2220 -0
  135. package/dist/route-tree.d.ts.map +1 -0
  136. package/dist/route-tree.js +135 -0
  137. package/dist/route-tree.js.map +1 -0
  138. package/dist/route-views-BovMNHyn.js +60 -0
  139. package/dist/route-views-BovMNHyn.js.map +1 -0
  140. package/dist/route-views-C-H3ofJW.js +4 -0
  141. package/dist/route-views-DzgRMAx8.js +55 -0
  142. package/dist/route-views-DzgRMAx8.js.map +1 -0
  143. package/dist/route-views.d.ts +7 -0
  144. package/dist/route-views.d.ts.map +1 -0
  145. package/dist/route-views.js +4 -0
  146. package/dist/router-CWIsjETx.js +54 -0
  147. package/dist/router-CWIsjETx.js.map +1 -0
  148. package/dist/router-CnWkTEey.js +4 -0
  149. package/dist/router.d.ts +2 -0
  150. package/dist/router.js +3 -0
  151. package/dist/sentry-Cuc_Nbba.js +22 -0
  152. package/dist/sentry-Cuc_Nbba.js.map +1 -0
  153. package/dist/settings-lPl17GFn.js +1089 -0
  154. package/dist/settings-lPl17GFn.js.map +1 -0
  155. package/dist/settings-tabs-DjTVYKRn.js +424 -0
  156. package/dist/settings-tabs-DjTVYKRn.js.map +1 -0
  157. package/dist/shell-core-head.html +2 -0
  158. package/dist/shell-core.html +1 -0
  159. package/dist/shell-head.html +2 -0
  160. package/dist/shell-plugins.json +1 -0
  161. package/dist/shell.html +1 -0
  162. package/dist/start-connect.d.ts +7 -9
  163. package/dist/start-connect.d.ts.map +1 -1
  164. package/dist/start-connect.js +9 -8
  165. package/dist/start-connect.js.map +1 -1
  166. package/dist/store-lock-Bi3B9VJD.js +159 -0
  167. package/dist/store-lock-Bi3B9VJD.js.map +1 -0
  168. package/dist/style.css +3482 -733
  169. package/dist/{toast-BXIGd4Eb.js → toast-C6WW-_O-.js} +3 -3
  170. package/dist/{toast-BXIGd4Eb.js.map → toast-C6WW-_O-.js.map} +1 -1
  171. package/dist/ui-B5cPb3DN.js +66 -0
  172. package/dist/ui-B5cPb3DN.js.map +1 -0
  173. package/dist/ui-C1-l-Eyh.js +170 -0
  174. package/dist/ui-C1-l-Eyh.js.map +1 -0
  175. package/dist/{use-renown-login-Cf3va6u_.js → use-renown-login-dPpDOYq5.js} +4 -4
  176. package/dist/use-renown-login-dPpDOYq5.js.map +1 -0
  177. package/dist/workflows-C3qEvx1R.js +63 -0
  178. package/dist/workflows-C3qEvx1R.js.map +1 -0
  179. package/fonts.css +177 -0
  180. package/generic-routes.json +9 -0
  181. package/package.json +87 -26
  182. package/scripts/assert-plugin-configs.mjs +47 -0
  183. package/scripts/prerender-shell.ts +51 -0
  184. package/skills/customize-connect/SKILL.md +80 -0
  185. package/skills/customize-connect/references/data-and-navigation.md +315 -0
  186. package/skills/customize-connect/references/drive-apps.md +44 -0
  187. package/skills/customize-connect/references/hosts-and-plugins.md +88 -0
  188. package/skills/customize-connect/references/layout.md +162 -0
  189. package/skills/customize-connect/references/modals.md +99 -0
  190. package/skills/customize-connect/references/overrides.md +177 -0
  191. package/skills/customize-connect/references/packages.md +41 -0
  192. package/skills/customize-connect/references/pages.md +141 -0
  193. package/skills/customize-connect/references/runtime-config.md +411 -0
  194. package/skills/customize-connect/references/styles-and-branding.md +76 -0
  195. package/skills/customize-connect/references/types-and-troubleshooting.md +64 -0
  196. package/src/route-tree.ts +3 -0
  197. package/src/routeTree.gen.ts +235 -0
  198. package/src/router/index.ts +2 -0
  199. package/src/router/register.ts +9 -0
  200. package/src/routes/__root.tsx +12 -0
  201. package/src/routes/_app/$.tsx +13 -0
  202. package/src/routes/_app/d/$driveSlug/{-$nodeSlug}.tsx +13 -0
  203. package/src/routes/_app/d/$driveSlug.tsx +13 -0
  204. package/src/routes/_app/index.tsx +13 -0
  205. package/src/routes/_app/settings/appearance.tsx +13 -0
  206. package/src/routes/_app/settings/packages.tsx +13 -0
  207. package/src/routes/_app/settings.tsx +13 -0
  208. package/src/routes/_app.tsx +13 -0
  209. package/style.css +8 -23
  210. package/tailwind.css +12 -0
  211. package/theme.css +5 -0
  212. package/dist/AddDriveModal-xAw48kdl.js.map +0 -1
  213. package/dist/ClearStorageModal-BHLFpni1.js.map +0 -1
  214. package/dist/ConfirmDocumentUpgradeModal-FUOhZsk7.js.map +0 -1
  215. package/dist/CreateDocumentModal-C45W8J0V.js +0 -35
  216. package/dist/CreateDocumentModal-C45W8J0V.js.map +0 -1
  217. package/dist/DebugSettingsModal-cFjT1zO6.js.map +0 -1
  218. package/dist/DeleteDriveModal-Dug84t1j.js.map +0 -1
  219. package/dist/DeleteItemModal-mMzy3V8o.js.map +0 -1
  220. package/dist/DisclaimerModal-DvpD5dPM.js.map +0 -1
  221. package/dist/DocumentVersionUnsupportedModal-C3Q0V75l.js.map +0 -1
  222. package/dist/DownloadDocumentWithErrorsModal-IKl0ljQb.js.map +0 -1
  223. package/dist/DriveAuthRequiredModal-DVK7ZQzO.js.map +0 -1
  224. package/dist/DriveSettingsModal-C6-mRQiv.js +0 -57
  225. package/dist/DriveSettingsModal-C6-mRQiv.js.map +0 -1
  226. package/dist/InspectorModal-Z7YMEHRm.js.map +0 -1
  227. package/dist/LoginModal-CybbOm3N.js.map +0 -1
  228. package/dist/MissingPackageModal-nBnExqO0.js +0 -49
  229. package/dist/MissingPackageModal-nBnExqO0.js.map +0 -1
  230. package/dist/OpenFileDocumentsModal-JcGCx1ta.js.map +0 -1
  231. package/dist/SettingsModal-CgqnSXs5.js +0 -569
  232. package/dist/SettingsModal-CgqnSXs5.js.map +0 -1
  233. package/dist/UpgradeDriveModal-_8t9slxQ.js.map +0 -1
  234. package/dist/app-loader-GDy45Yza.js +0 -2244
  235. package/dist/app-loader-GDy45Yza.js.map +0 -1
  236. package/dist/app-loader-WZecUfE8.js +0 -4
  237. package/dist/build-info-BPvkFr0E.js.map +0 -1
  238. package/dist/components-Df4NlQZz.js +0 -4
  239. package/dist/connect.config-DaHDEUrw.js.map +0 -1
  240. package/dist/connection-state-3w4liC1X.js.map +0 -1
  241. package/dist/load-BJ8uRKR9.js.map +0 -1
  242. package/dist/pglite-major-B39aOEiE.js.map +0 -1
  243. package/dist/pglite-migrate-core-Boxqqx-c.js.map +0 -1
  244. package/dist/pglite-seed-BqAUvNFw.js.map +0 -1
  245. package/dist/preferences-store-_5Cw4_YV.js.map +0 -1
  246. package/dist/reactor-CbgxQyev.js +0 -1464
  247. package/dist/reactor-CbgxQyev.js.map +0 -1
  248. package/dist/runtime-config-DL3QjcfM.js +0 -24
  249. package/dist/runtime-config-DL3QjcfM.js.map +0 -1
  250. package/dist/sentry-QXKgQmr2.js +0 -15
  251. package/dist/sentry-QXKgQmr2.js.map +0 -1
  252. package/dist/use-renown-login-Cf3va6u_.js.map +0 -1
  253. package/dist/useRegistryPackages-BnUcL_nZ.js +0 -390
  254. package/dist/useRegistryPackages-BnUcL_nZ.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/connect",
3
3
  "productName": "Powerhouse-Connect",
4
- "version": "6.2.3-dev.10",
4
+ "version": "6.2.3-dev.101",
5
5
  "description": "Powerhouse Connect",
6
6
  "main": "dist/index.html",
7
7
  "type": "module",
@@ -10,7 +10,16 @@
10
10
  },
11
11
  "files": [
12
12
  "dist",
13
+ "skills",
14
+ "src/routes",
15
+ "src/router",
16
+ "src/route-tree.ts",
17
+ "src/routeTree.gen.ts",
18
+ "generic-routes.json",
13
19
  "style.css",
20
+ "tailwind.css",
21
+ "theme.css",
22
+ "fonts.css",
14
23
  "nginx.conf",
15
24
  "nginx.sh",
16
25
  "scripts",
@@ -30,14 +39,57 @@
30
39
  "types": "./dist/main.d.ts",
31
40
  "import": "./dist/main.js"
32
41
  },
42
+ "./router": {
43
+ "source": "./src/router/index.ts",
44
+ "types": "./dist/router.d.ts",
45
+ "import": "./dist/router.js"
46
+ },
47
+ "./layout": {
48
+ "source": "./src/layout/index.ts",
49
+ "types": "./dist/layout.d.ts",
50
+ "import": "./dist/layout.js"
51
+ },
52
+ "./generic": {
53
+ "source": "./src/generic/index.ts",
54
+ "types": "./dist/generic.d.ts",
55
+ "import": "./dist/generic.js"
56
+ },
57
+ "./route-tree": {
58
+ "source": "./src/route-tree.ts",
59
+ "types": "./dist/route-tree.d.ts",
60
+ "import": "./dist/route-tree.js"
61
+ },
62
+ "./prerender": {
63
+ "source": "./src/prerender/shell.tsx",
64
+ "types": "./dist/prerender.d.ts",
65
+ "import": "./dist/prerender.js"
66
+ },
67
+ "./route-views": {
68
+ "source": "./src/route-views/index.ts",
69
+ "types": "./dist/route-views.d.ts",
70
+ "import": "./dist/route-views.js"
71
+ },
72
+ "./plugin-configs": {
73
+ "source": "./src/plugin-configs/index.ts",
74
+ "types": "./dist/plugin-configs.d.ts",
75
+ "import": "./dist/plugin-configs.js",
76
+ "default": "./dist/plugin-configs.js"
77
+ },
78
+ "./routes/*": "./src/routes/*.tsx",
33
79
  "./assets/*": "./assets/*",
34
- "./style.css": "./dist/style.css"
80
+ "./style.css": "./dist/style.css",
81
+ "./tailwind.css": "./tailwind.css",
82
+ "./theme.css": "./theme.css",
83
+ "./fonts.css": "./fonts.css",
84
+ "./package.json": "./package.json"
35
85
  },
36
86
  "sideEffects": [
37
87
  "./dist/main.js",
38
88
  "./dist/start-connect.js",
39
89
  "./dist/i18n-*.js",
40
- "./dist/style.css"
90
+ "./src/i18n/index.ts",
91
+ "./dist/style.css",
92
+ "./fonts.css"
41
93
  ],
42
94
  "license": "AGPL-3.0-only",
43
95
  "author": "powerhouse.inc",
@@ -52,25 +104,31 @@
52
104
  "dependencies": {
53
105
  "@electric-sql/pglite": "0.3.15",
54
106
  "@electric-sql/pglite-tools": "0.2.20",
107
+ "@fontsource-variable/inter": "5.3.0",
55
108
  "@openfeature/core": "1.9.1",
56
109
  "@openfeature/web-sdk": "1.6.2",
57
110
  "@openpanel/web": "^1.4.1",
58
- "@powerhousedao/config": "6.2.3-dev.10",
59
- "@powerhousedao/design-system": "6.2.3-dev.10",
111
+ "@powerhousedao/config": "6.2.3-dev.101",
112
+ "@powerhousedao/connect-core": "6.2.3-dev.101",
113
+ "@powerhousedao/design-system": "6.2.3-dev.101",
60
114
  "@powerhousedao/document-engineering": "1.40.5",
61
- "@powerhousedao/powerhouse-vetra-packages": "6.2.3-dev.10",
62
- "@powerhousedao/reactor": "6.2.3-dev.10",
63
- "@powerhousedao/reactor-attachments": "6.2.3-dev.10",
64
- "@powerhousedao/reactor-browser": "6.2.3-dev.10",
65
- "@powerhousedao/reactor-mcp": "6.2.3-dev.10",
66
- "@powerhousedao/shared": "6.2.3-dev.10",
67
- "@powerhousedao/vetra": "6.2.3-dev.10",
115
+ "@powerhousedao/host-core": "6.2.3-dev.101",
116
+ "@powerhousedao/powerhouse-vetra-packages": "6.2.3-dev.101",
117
+ "@powerhousedao/reactor": "6.2.3-dev.101",
118
+ "@powerhousedao/reactor-attachments": "6.2.3-dev.101",
119
+ "@powerhousedao/reactor-browser": "6.2.3-dev.101",
120
+ "@powerhousedao/reactor-mcp": "6.2.3-dev.101",
121
+ "@powerhousedao/reactor-router": "6.2.3-dev.101",
122
+ "@powerhousedao/shared": "6.2.3-dev.101",
123
+ "@powerhousedao/vetra": "6.2.3-dev.101",
124
+ "@powerhousedao/workflow": "6.2.3-dev.101",
68
125
  "@privy-io/react-auth": "3.35.0",
69
126
  "@rainbow-me/rainbowkit": "^2.2.11",
70
- "@renown/sdk": "6.2.3-dev.10",
127
+ "@renown/sdk": "6.2.3-dev.101",
71
128
  "@sentry/react": "^10.17.0",
129
+ "@tailwindcss/node": "4.2.2",
72
130
  "@tanstack/react-query": "^5.90.2",
73
- "document-model": "6.2.3-dev.10",
131
+ "document-model": "6.2.3-dev.101",
74
132
  "i18next": "^25.5.3",
75
133
  "kysely": "0.28.16",
76
134
  "kysely-pglite-dialect": "1.2.0",
@@ -80,16 +138,18 @@
80
138
  "react-error-boundary": "^4.0.11",
81
139
  "react-hotkeys-hook": "^4.6.2",
82
140
  "react-i18next": "^16.0.0",
83
- "react-router-dom": "^6.11.2",
84
141
  "tailwind-merge": "3.4.0",
85
142
  "usehooks-ts": "^3.1.1",
86
143
  "wagmi": "2.19.5",
87
- "zod": "4.3.6"
144
+ "zod": "^4.5.4"
88
145
  },
89
146
  "devDependencies": {
90
- "cross-env": "10.1.0",
91
147
  "@tailwindcss/cli": "4.2.2",
92
148
  "@tailwindcss/vite": "4.2.2",
149
+ "@tanstack/react-router": "^1.170.41",
150
+ "@tanstack/react-router-devtools": "1.167.2",
151
+ "@tanstack/router-core": "1.171.34",
152
+ "@tanstack/router-plugin": "1.168.42",
93
153
  "@testing-library/dom": "^10.4.0",
94
154
  "@testing-library/react": "^16.0.1",
95
155
  "@types/bun": "1.3.8",
@@ -97,32 +157,33 @@
97
157
  "@types/react": "19.2.14",
98
158
  "@types/react-dom": "19.2.3",
99
159
  "@types/wicg-file-system-access": "^2023.10.7",
100
- "@vitejs/plugin-react": "6.0.1",
101
- "cypress": "^14.5.4",
160
+ "@vitejs/plugin-react": "6.1.1",
161
+ "cross-env": "10.1.0",
102
162
  "happy-dom": "^20.8.9",
103
163
  "react": "19.2.6",
104
164
  "react-dom": "19.2.6",
105
165
  "tailwindcss": "4.2.2",
106
- "tsdown": "0.21.1",
107
- "vite": "8.0.10",
108
- "vite-bundle-analyzer": "^1.3.6",
166
+ "tsdown": "0.23.0",
167
+ "typescript": "7.0.2",
168
+ "vite": "8.3.4",
109
169
  "vite-tsconfig-paths": "6.1.1"
110
170
  },
111
171
  "peerDependencies": {
172
+ "@tanstack/react-router": "^1.170.41",
112
173
  "react": ">=19.0.0",
113
174
  "react-dom": ">=19.0.0"
114
175
  },
115
176
  "scripts": {
116
177
  "tsc": "tsc",
117
- "lint": "eslint",
178
+ "lint": "cd ../.. && oxlint apps/connect",
118
179
  "test": "vitest --run",
119
180
  "dev": "vite dev",
120
- "build": "pnpm run build:bundle && pnpm run build:css",
121
- "build:bundle": "tsdown",
181
+ "build": "pnpm run build:bundle && pnpm run build:css && pnpm run build:shell",
182
+ "build:bundle": "tsdown && node scripts/assert-plugin-configs.mjs",
122
183
  "build:css": "pnpm exec tailwindcss -i style.css -o dist/style.css",
184
+ "build:shell": "vite build --config vite.prerender.config.ts --logLevel warn && node scripts/prerender-shell.ts",
123
185
  "build:debug": "cross-env PH_DEBUG_BUILD=true vite build",
124
186
  "preview": "vite preview",
125
- "cy:open": "cypress open",
126
187
  "docker:build": "docker build -f ./Dockerfile --tag connect-test-dev --build-arg TAG=dev .",
127
188
  "docker:run": "docker run -it -p 4000:4000 -v $(realpath ../../../monorepo):/monorepo -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf.template -e PH_CONNECT_BASE_PATH=/develop/powerhouse/connect -e PORT=4000 connect-test-dev"
128
189
  }
@@ -0,0 +1,47 @@
1
+ // Fails the build when dist/plugin-configs.js (or any chunk it imports)
2
+ // imports anything beyond its zod-only allowlist: the entry must load in
3
+ // Node (`ph run` validates plugin entry configs with it) and in a browser,
4
+ // so it may not reach React, the DOM app, or a Node built-in.
5
+ import { existsSync, readFileSync } from "node:fs";
6
+ import path from "node:path";
7
+ import { fileURLToPath } from "node:url";
8
+
9
+ const dist = path.join(
10
+ path.dirname(fileURLToPath(import.meta.url)),
11
+ "..",
12
+ "dist",
13
+ );
14
+ const ENTRY = "plugin-configs.js";
15
+ const ALLOWED = new Set([
16
+ "zod",
17
+ "@powerhousedao/shared/connect/connect-config-schema",
18
+ "@powerhousedao/shared/host-tokens",
19
+ ]);
20
+ const IMPORT = /(?:\bfrom\s*|\bimport\s*\(?\s*)["']([^"']+)["']/g;
21
+
22
+ const failures = [];
23
+ const seen = new Set();
24
+ const queue = [ENTRY];
25
+ while (queue.length > 0) {
26
+ const file = queue.shift();
27
+ if (seen.has(file)) continue;
28
+ seen.add(file);
29
+ const full = path.join(dist, file);
30
+ if (!existsSync(full)) {
31
+ failures.push(`${file} is missing from dist/`);
32
+ continue;
33
+ }
34
+ for (const [, specifier] of readFileSync(full, "utf8").matchAll(IMPORT)) {
35
+ if (specifier.startsWith(".")) {
36
+ queue.push(path.posix.join(path.posix.dirname(file), specifier));
37
+ } else if (!ALLOWED.has(specifier)) {
38
+ failures.push(`${file} imports "${specifier}"`);
39
+ }
40
+ }
41
+ }
42
+
43
+ if (failures.length > 0) {
44
+ console.error(`${ENTRY} must stay zod-only:\n ${failures.join("\n ")}`);
45
+ process.exit(1);
46
+ }
47
+ console.log(`${ENTRY} is zod-only (${seen.size} file(s))`);
@@ -0,0 +1,51 @@
1
+ // Writes dist/shell{,-core}.html (#root's markup), dist/shell{,-core}-head.html (critical CSS + guard) and shell-plugins.json.
2
+ import { mkdirSync, writeFileSync } from "node:fs";
3
+ import { dirname, join } from "node:path";
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
+ import type * as Prerender from "../src/prerender/shell.tsx";
6
+
7
+ process.env.NODE_ENV = "production";
8
+
9
+ const root = join(dirname(fileURLToPath(import.meta.url)), "..");
10
+ const prerenderDir = join(root, ".prerender");
11
+ const distDir = join(root, "dist");
12
+
13
+ type ShellVariant = "generic" | "core";
14
+
15
+ const FILE_PREFIX: Record<ShellVariant, string> = {
16
+ generic: "shell",
17
+ core: "shell-core",
18
+ };
19
+
20
+ const { renderShell, shellMarkup, shellCss, appShell, shellPlugins } =
21
+ (await import(
22
+ pathToFileURL(join(prerenderDir, "shell.js")).href
23
+ )) as typeof Prerender;
24
+
25
+ mkdirSync(distDir, { recursive: true });
26
+
27
+ const plugins = await shellPlugins();
28
+ const variants = ["core", ...Object.keys(plugins)] as ShellVariant[];
29
+
30
+ for (const variant of variants) {
31
+ const name = FILE_PREFIX[variant];
32
+ const markup = shellMarkup(await renderShell(variant));
33
+ // Connect's stylesheet, built for the markup's classes only.
34
+ const css = await shellCss(join(root, "style.css"), markup);
35
+ const shell = appShell(variant, variant, markup, css);
36
+ writeFileSync(join(distDir, `${name}.html`), shell.body);
37
+ writeFileSync(join(distDir, `${name}-head.html`), shell.head);
38
+ console.log(
39
+ `[connect] prerendered the ${variant} app shell: ${markup.length} B markup, ${shell.head.length} B head`,
40
+ );
41
+ }
42
+
43
+ // Each plugin specifier to the shell it picks; core's has none.
44
+ writeFileSync(
45
+ join(distDir, "shell-plugins.json"),
46
+ JSON.stringify(
47
+ Object.fromEntries(
48
+ Object.entries(plugins).map(([variant, module]) => [module, variant]),
49
+ ),
50
+ ),
51
+ );
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: customize-connect
3
+ description: Customize Powerhouse Connect from a project scaffolded by `ph init`. Covers adding pages, sidebar links and settings tabs; replacing the sidebar, the layout or Connect's own routes (home, drive view, settings, 404); loading data in routes and linking to documents; restyling modals and the loading screen; theming with Tailwind; app name, branding and runtime config; several hosts; and offering routes from a package. For editors, it covers reading the document from props, navigating and linking without knowing the routes, and showing that an action was rejected. For drive apps, it covers making one, its props and hooks, and which app a drive opens in. Use when a task changes what Connect shows or how it is configured, or how an editor or drive app reads the route and navigates.
4
+ metadata:
5
+ powerhouse-source: "@powerhousedao/connect"
6
+ ---
7
+ <!-- Generated by ph migrate from @powerhousedao/connect. ph migrate overwrites this folder. -->
8
+
9
+ # Customize Connect
10
+
11
+ Connect is the Powerhouse web app that shows drives, documents and their editors. A project changes it through its config, route files, `style.css`, hosts and packages. Find the task's row below, then read the guide it links to before writing code.
12
+
13
+ | Change | Where | Guide |
14
+ | --- | --- | --- |
15
+ | App name, drives, Renown, registry, feature flags | `powerhouse.config.json`, `connect.*` (no code) | [runtime-config.md](references/runtime-config.md) |
16
+ | Pages, sidebar links, settings tabs, page titles | File routes in `hosts/connect/routes/` | [pages.md](references/pages.md) |
17
+ | Sidebar, layout, loading screen | `hosts/connect/routes/_app.tsx` | [layout.md](references/layout.md) |
18
+ | Home, drive view, open document, settings page, 404 | A route file at Connect's route path | [overrides.md](references/overrides.md) |
19
+ | Loading data, documents of one type across drives and links to them, search params; an editor's document from props, its links and rejected actions | Route `loader`, `validateSearch`; `useDocumentsOfType` and the other `@powerhousedao/reactor-browser` hooks | [data-and-navigation.md](references/data-and-navigation.md) |
20
+ | Modals | `staticData.modals`, `staticData.modalFrame` | [modals.md](references/modals.md) |
21
+ | A drive's own view, and which drive uses it | A package's drive app; the drive's `preferredEditor` | [drive-apps.md](references/drive-apps.md) |
22
+ | Colours, fonts, CSS; app name and favicon per host | `hosts/connect/style.css` (this Connect's theme); `style.css` (the package's own tokens); `connect.branding` | [styles-and-branding.md](references/styles-and-branding.md) |
23
+ | Several Connects with different routes, config or plugins | `hosts/<name>/host.js` | [hosts-and-plugins.md](references/hosts-and-plugins.md) |
24
+ | Routes that ship with a package to other Connects | The package's `hosts/connect/routes/` | [packages.md](references/packages.md) |
25
+ | Type errors, a symptom, upgrading an older project | | [types-and-troubleshooting.md](references/types-and-troubleshooting.md) |
26
+
27
+ The guides are in `references/`, next to this file.
28
+
29
+ ## How it fits together
30
+
31
+ - Connect routes with [TanStack Router](https://tanstack.com/router) file routes. The project's `hosts/connect/routes/` folder joins Connect's own routes in one router. `ph vetra`, `ph connect studio`, `ph connect build` and `ph build` all mount it.
32
+ - A file in `_app/` renders inside Connect's layout, with the sidebar. Its route id starts with `/_app` but its URL does not: `_app/inventory.tsx` is `createFileRoute("/_app/inventory")` at `/inventory`. Any other file is a full page.
33
+ - A route's `loader` reads the app's PH store from the router context (`context.store`: drives, `reactorClient`, `documentCache`); components read live data with the `@powerhousedao/reactor-browser` hooks.
34
+ - A route describes itself through `staticData`: `nav` lists it in the sidebar, `settings` makes it a settings tab, `sidebar` hides or collapses the sidebar, `modals` and `modalFrame` restyle modals.
35
+ - Connect's routes come from `@powerhousedao/connect-core`. Each route file exports `options`, everything but the component. A project file at the same path spreads `options` and sets its own `component`; `ph build` and Studio warn when it doesn't.
36
+ - The generic plugin (id `@powerhousedao/connect/plugins/generic` in a host's composition and `runner.plugins`; not an importable module) draws Connect's sidebar, home, drive views and settings tabs. Without it, core's plain views show. A project's route files win over both.
37
+ - `@powerhousedao/connect/layout` exports core's layout parts. `@powerhousedao/connect/generic` adds the generic plugin's parts (`AppLayout`, `ConnectSidebar`, `OpenDocument`, `genericSettingsTabs`, and the home's `ConnectHomeScreen`, `HomeDriveItem`, `HomeAddDriveItem` and `useVisibleDrives`).
38
+
39
+ ## A first page
40
+
41
+ ```tsx
42
+ // hosts/connect/routes/_app/inventory.tsx
43
+ import { useDrives } from "@powerhousedao/reactor-browser";
44
+ import { createFileRoute } from "@tanstack/react-router";
45
+
46
+ export const Route = createFileRoute("/_app/inventory")({
47
+ staticData: { nav: { label: "Inventory", order: 10 } },
48
+ component: Inventory,
49
+ });
50
+
51
+ function Inventory() {
52
+ const drives = useDrives();
53
+ return <div className="p-6">{drives?.length ?? 0} drives</div>;
54
+ }
55
+ ```
56
+
57
+ ## Rules that break builds
58
+
59
+ - **One router.** `ph init` adds `@tanstack/react-router` as a peer and dev dependency at the version Connect is built with, and `ph migrate` adds it to older projects. Connect uses the project's copy, so don't add another version.
60
+ - **Route ids match the file.** `createFileRoute("...")` takes the file's id, `/_app/...` for files in `_app/`. A route outside `_app/` at the URL of one of Connect's fails the build.
61
+ - **Spread `options` when overriding** (`import { options } from "@powerhousedao/connect/routes/_app/..."`). Without them the route loses its loader, search params and title. The generic settings tabs have no route files: spread `genericSettingsTabs["<tab>"]` from `@powerhousedao/connect/generic` instead.
62
+ - **Navigate through the router.** Use `Link`, `useNavigate` or `useLinkProps`. A plain `href` reloads the whole app, `modalHref()` links included, so keep it for external links; link to a modal with `useModalLinkProps(modal)`.
63
+ - **One Tailwind build.** `style.css` imports `@powerhousedao/connect/tailwind.css`, never `@powerhousedao/connect/style.css` or a package's compiled CSS.
64
+ - **The loading screen renders in Node.** `ph connect build` renders the layout and `_app`'s `pendingComponent` at build time, with no drives. Code on that path must not touch `window` while rendering, and must handle `useDrives()` being `undefined`.
65
+ - **Package routes can't import `@powerhousedao/connect`.** Routes a package offers to other Connects import from `@powerhousedao/connect-core`, `@tanstack/react-router`, `@powerhousedao/reactor-browser`, the design system and the package's own code. Overrides of Connect's routes and of the generic settings tabs stay the project's, so they may. `@powerhousedao/connect-core` is a project dependency (`ph migrate` adds it to older projects), and `npm run tsc` and `npm run lint` fail on an offered route that imports `@powerhousedao/connect`.
66
+ - **`ph run` needs a flag.** `FEATURE_UNIFORM_RUNNERS_ENABLED=1 ph run <host> dev|build|serve`; see hosts-and-plugins.md for its output folder and ports.
67
+ - **Don't edit generated files.** `.ph/connect-routes.gen.ts` is regenerated from the routes folder.
68
+
69
+ ## Check your work
70
+
71
+ `ph` is the global Powerhouse CLI (`ph-cmd`). A project without it runs the same commands with `pnpm exec ph-cli`, e.g. `pnpm exec ph-cli build`.
72
+
73
+ 1. Open the route's URL in Vetra Studio: the `connectUrl` in `.ph/vetra-runtime.json`. Studio picks up a new routes folder and `powerhouse.config.json` changes without a restart. Studio shows a loading screen that fails to render over the page and in its log.
74
+ 2. Run `ph build`. It generates `.ph/connect-routes.gen.ts` and type-checks the routes. On type errors it stops when not interactive, and in a terminal asks whether to build anyway. Unknown route ids in `createFileRoute`, `Link` or `useNavigate` mean the tree is stale or the tsconfig lacks the `route-tree` paths; see [types-and-troubleshooting.md](references/types-and-troubleshooting.md).
75
+ 3. When the layout or `_app`'s `pendingComponent` changed, run `ph connect build`. It prerenders the loading screen and fails on code that touches `window` while rendering.
76
+
77
+ ## Reading Connect's source
78
+
79
+ - `node_modules/@powerhousedao/connect/src/routes/`: Connect's route files, the paths a project overrides.
80
+ - In `@powerhousedao/connect-core`'s folder, `src/router/` (`staticData` types, the router context, search params and titles), `src/routes/` (each core route's `options`) and `src/views/` (core's views, which the routes reference through `coreView()`). pnpm doesn't link it into the project's `node_modules`; find it with `ls -d node_modules/.pnpm/@powerhousedao+connect-core@*/node_modules/@powerhousedao/connect-core`.