@powerhousedao/builder-tools 6.0.0-dev.7 → 6.0.0-dev.70

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 (342) hide show
  1. package/dist/bundle.d.ts +2 -0
  2. package/dist/bundle.d.ts.map +1 -0
  3. package/dist/connect-utils/helpers.d.ts +1 -1
  4. package/dist/connect-utils/helpers.d.ts.map +1 -1
  5. package/dist/connect-utils/index.d.ts +0 -1
  6. package/dist/connect-utils/index.d.ts.map +1 -1
  7. package/dist/connect-utils/types.d.ts +0 -1
  8. package/dist/connect-utils/types.d.ts.map +1 -1
  9. package/dist/connect-utils/vite-config.d.ts.map +1 -1
  10. package/dist/index.d.ts +0 -2
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +111942 -4
  13. package/dist/tsconfig.tsbuildinfo +1 -1
  14. package/package.json +20 -114
  15. package/dist/browser.d.ts +0 -2
  16. package/dist/browser.d.ts.map +0 -1
  17. package/dist/browser.js +0 -2
  18. package/dist/browser.js.map +0 -1
  19. package/dist/connect-build/build.d.ts +0 -6
  20. package/dist/connect-build/build.d.ts.map +0 -1
  21. package/dist/connect-build/build.js +0 -54
  22. package/dist/connect-build/build.js.map +0 -1
  23. package/dist/connect-build/constants.d.ts +0 -11
  24. package/dist/connect-build/constants.d.ts.map +0 -1
  25. package/dist/connect-build/constants.js +0 -11
  26. package/dist/connect-build/constants.js.map +0 -1
  27. package/dist/connect-build/helpers.d.ts +0 -37
  28. package/dist/connect-build/helpers.d.ts.map +0 -1
  29. package/dist/connect-build/helpers.js +0 -111
  30. package/dist/connect-build/helpers.js.map +0 -1
  31. package/dist/connect-build/index.d.ts +0 -5
  32. package/dist/connect-build/index.d.ts.map +0 -1
  33. package/dist/connect-build/index.js +0 -4
  34. package/dist/connect-build/index.js.map +0 -1
  35. package/dist/connect-build/preview.d.ts +0 -3
  36. package/dist/connect-build/preview.d.ts.map +0 -1
  37. package/dist/connect-build/preview.js +0 -19
  38. package/dist/connect-build/preview.js.map +0 -1
  39. package/dist/connect-build/types.d.ts +0 -27
  40. package/dist/connect-build/types.d.ts.map +0 -1
  41. package/dist/connect-build/types.js +0 -2
  42. package/dist/connect-build/types.js.map +0 -1
  43. package/dist/connect-studio/index.d.ts +0 -3
  44. package/dist/connect-studio/index.d.ts.map +0 -1
  45. package/dist/connect-studio/index.js +0 -2
  46. package/dist/connect-studio/index.js.map +0 -1
  47. package/dist/connect-studio/server.d.ts +0 -3
  48. package/dist/connect-studio/server.d.ts.map +0 -1
  49. package/dist/connect-studio/server.js +0 -234
  50. package/dist/connect-studio/server.js.map +0 -1
  51. package/dist/connect-studio/studio.d.ts +0 -3
  52. package/dist/connect-studio/studio.d.ts.map +0 -1
  53. package/dist/connect-studio/studio.js +0 -66
  54. package/dist/connect-studio/studio.js.map +0 -1
  55. package/dist/connect-studio/types.d.ts +0 -28
  56. package/dist/connect-studio/types.d.ts.map +0 -1
  57. package/dist/connect-studio/types.js +0 -2
  58. package/dist/connect-studio/types.js.map +0 -1
  59. package/dist/connect-utils/build.js +0 -21
  60. package/dist/connect-utils/build.js.map +0 -1
  61. package/dist/connect-utils/constants.js +0 -5
  62. package/dist/connect-utils/constants.js.map +0 -1
  63. package/dist/connect-utils/env-config.d.ts +0 -844
  64. package/dist/connect-utils/env-config.d.ts.map +0 -1
  65. package/dist/connect-utils/env-config.js +0 -518
  66. package/dist/connect-utils/env-config.js.map +0 -1
  67. package/dist/connect-utils/helpers.js +0 -265
  68. package/dist/connect-utils/helpers.js.map +0 -1
  69. package/dist/connect-utils/index.js +0 -16
  70. package/dist/connect-utils/index.js.map +0 -1
  71. package/dist/connect-utils/preview.js +0 -33
  72. package/dist/connect-utils/preview.js.map +0 -1
  73. package/dist/connect-utils/studio.js +0 -30
  74. package/dist/connect-utils/studio.js.map +0 -1
  75. package/dist/connect-utils/types.js +0 -2
  76. package/dist/connect-utils/types.js.map +0 -1
  77. package/dist/connect-utils/vite-config.js +0 -267
  78. package/dist/connect-utils/vite-config.js.map +0 -1
  79. package/dist/connect-utils/vite-plugins/base.js +0 -130
  80. package/dist/connect-utils/vite-plugins/base.js.map +0 -1
  81. package/dist/connect-utils/vite-plugins/document-models-hmr.js +0 -62
  82. package/dist/connect-utils/vite-plugins/document-models-hmr.js.map +0 -1
  83. package/dist/connect-utils/vite-plugins/editors-hmr.js +0 -61
  84. package/dist/connect-utils/vite-plugins/editors-hmr.js.map +0 -1
  85. package/dist/connect-utils/vite-plugins/external-packages.js +0 -127
  86. package/dist/connect-utils/vite-plugins/external-packages.js.map +0 -1
  87. package/dist/connect-utils/vite-plugins/importmap.js +0 -243
  88. package/dist/connect-utils/vite-plugins/importmap.js.map +0 -1
  89. package/dist/connect-utils/vite-plugins/ph-external-packages.js +0 -88
  90. package/dist/connect-utils/vite-plugins/ph-external-packages.js.map +0 -1
  91. package/dist/connect-utils/vite-plugins/studio.js +0 -33
  92. package/dist/connect-utils/vite-plugins/studio.js.map +0 -1
  93. package/dist/document-model-editor/components/button.d.ts +0 -2
  94. package/dist/document-model-editor/components/button.d.ts.map +0 -1
  95. package/dist/document-model-editor/components/button.js +0 -8
  96. package/dist/document-model-editor/components/button.js.map +0 -1
  97. package/dist/document-model-editor/components/code-editors/constants.d.ts +0 -3
  98. package/dist/document-model-editor/components/code-editors/constants.d.ts.map +0 -1
  99. package/dist/document-model-editor/components/code-editors/constants.js +0 -38
  100. package/dist/document-model-editor/components/code-editors/constants.js.map +0 -1
  101. package/dist/document-model-editor/components/code-editors/factories.d.ts +0 -4
  102. package/dist/document-model-editor/components/code-editors/factories.d.ts.map +0 -1
  103. package/dist/document-model-editor/components/code-editors/factories.js +0 -47
  104. package/dist/document-model-editor/components/code-editors/factories.js.map +0 -1
  105. package/dist/document-model-editor/components/code-editors/graphql-editor.d.ts +0 -10
  106. package/dist/document-model-editor/components/code-editors/graphql-editor.d.ts.map +0 -1
  107. package/dist/document-model-editor/components/code-editors/graphql-editor.js +0 -73
  108. package/dist/document-model-editor/components/code-editors/graphql-editor.js.map +0 -1
  109. package/dist/document-model-editor/components/code-editors/hooks.d.ts +0 -23
  110. package/dist/document-model-editor/components/code-editors/hooks.d.ts.map +0 -1
  111. package/dist/document-model-editor/components/code-editors/hooks.js +0 -59
  112. package/dist/document-model-editor/components/code-editors/hooks.js.map +0 -1
  113. package/dist/document-model-editor/components/code-editors/json-editor.d.ts +0 -8
  114. package/dist/document-model-editor/components/code-editors/json-editor.d.ts.map +0 -1
  115. package/dist/document-model-editor/components/code-editors/json-editor.js +0 -47
  116. package/dist/document-model-editor/components/code-editors/json-editor.js.map +0 -1
  117. package/dist/document-model-editor/components/code-editors/linting.d.ts +0 -6
  118. package/dist/document-model-editor/components/code-editors/linting.d.ts.map +0 -1
  119. package/dist/document-model-editor/components/code-editors/linting.js +0 -59
  120. package/dist/document-model-editor/components/code-editors/linting.js.map +0 -1
  121. package/dist/document-model-editor/components/divider.d.ts +0 -8
  122. package/dist/document-model-editor/components/divider.d.ts.map +0 -1
  123. package/dist/document-model-editor/components/divider.js +0 -22
  124. package/dist/document-model-editor/components/divider.js.map +0 -1
  125. package/dist/document-model-editor/components/errors.d.ts +0 -6
  126. package/dist/document-model-editor/components/errors.d.ts.map +0 -1
  127. package/dist/document-model-editor/components/errors.js +0 -5
  128. package/dist/document-model-editor/components/errors.js.map +0 -1
  129. package/dist/document-model-editor/components/form.d.ts +0 -12
  130. package/dist/document-model-editor/components/form.d.ts.map +0 -1
  131. package/dist/document-model-editor/components/form.js +0 -43
  132. package/dist/document-model-editor/components/form.js.map +0 -1
  133. package/dist/document-model-editor/components/input.d.ts +0 -6
  134. package/dist/document-model-editor/components/input.d.ts.map +0 -1
  135. package/dist/document-model-editor/components/input.js +0 -9
  136. package/dist/document-model-editor/components/input.js.map +0 -1
  137. package/dist/document-model-editor/components/label.d.ts +0 -6
  138. package/dist/document-model-editor/components/label.d.ts.map +0 -1
  139. package/dist/document-model-editor/components/label.js +0 -10
  140. package/dist/document-model-editor/components/label.js.map +0 -1
  141. package/dist/document-model-editor/components/model-metadata-form.d.ts +0 -31
  142. package/dist/document-model-editor/components/model-metadata-form.d.ts.map +0 -1
  143. package/dist/document-model-editor/components/model-metadata-form.js +0 -70
  144. package/dist/document-model-editor/components/model-metadata-form.js.map +0 -1
  145. package/dist/document-model-editor/components/module-form.d.ts +0 -10
  146. package/dist/document-model-editor/components/module-form.d.ts.map +0 -1
  147. package/dist/document-model-editor/components/module-form.js +0 -22
  148. package/dist/document-model-editor/components/module-form.js.map +0 -1
  149. package/dist/document-model-editor/components/module.d.ts +0 -22
  150. package/dist/document-model-editor/components/module.d.ts.map +0 -1
  151. package/dist/document-model-editor/components/module.js +0 -10
  152. package/dist/document-model-editor/components/module.js.map +0 -1
  153. package/dist/document-model-editor/components/modules.d.ts +0 -20
  154. package/dist/document-model-editor/components/modules.d.ts.map +0 -1
  155. package/dist/document-model-editor/components/modules.js +0 -17
  156. package/dist/document-model-editor/components/modules.js.map +0 -1
  157. package/dist/document-model-editor/components/operation-description-form.d.ts +0 -9
  158. package/dist/document-model-editor/components/operation-description-form.d.ts.map +0 -1
  159. package/dist/document-model-editor/components/operation-description-form.js +0 -13
  160. package/dist/document-model-editor/components/operation-description-form.js.map +0 -1
  161. package/dist/document-model-editor/components/operation-error-form.d.ts +0 -13
  162. package/dist/document-model-editor/components/operation-error-form.d.ts.map +0 -1
  163. package/dist/document-model-editor/components/operation-error-form.js +0 -40
  164. package/dist/document-model-editor/components/operation-error-form.js.map +0 -1
  165. package/dist/document-model-editor/components/operation-errors.d.ts +0 -10
  166. package/dist/document-model-editor/components/operation-errors.d.ts.map +0 -1
  167. package/dist/document-model-editor/components/operation-errors.js +0 -17
  168. package/dist/document-model-editor/components/operation-errors.js.map +0 -1
  169. package/dist/document-model-editor/components/operation-form.d.ts +0 -13
  170. package/dist/document-model-editor/components/operation-form.d.ts.map +0 -1
  171. package/dist/document-model-editor/components/operation-form.js +0 -37
  172. package/dist/document-model-editor/components/operation-form.js.map +0 -1
  173. package/dist/document-model-editor/components/operation.d.ts +0 -23
  174. package/dist/document-model-editor/components/operation.d.ts.map +0 -1
  175. package/dist/document-model-editor/components/operation.js +0 -25
  176. package/dist/document-model-editor/components/operation.js.map +0 -1
  177. package/dist/document-model-editor/components/operations.d.ts +0 -18
  178. package/dist/document-model-editor/components/operations.d.ts.map +0 -1
  179. package/dist/document-model-editor/components/operations.js +0 -20
  180. package/dist/document-model-editor/components/operations.js.map +0 -1
  181. package/dist/document-model-editor/components/state-error.d.ts +0 -5
  182. package/dist/document-model-editor/components/state-error.d.ts.map +0 -1
  183. package/dist/document-model-editor/components/state-error.js +0 -21
  184. package/dist/document-model-editor/components/state-error.js.map +0 -1
  185. package/dist/document-model-editor/components/state-schemas.d.ts +0 -15
  186. package/dist/document-model-editor/components/state-schemas.d.ts.map +0 -1
  187. package/dist/document-model-editor/components/state-schemas.js +0 -81
  188. package/dist/document-model-editor/components/state-schemas.js.map +0 -1
  189. package/dist/document-model-editor/components/tabs.d.ts +0 -8
  190. package/dist/document-model-editor/components/tabs.d.ts.map +0 -1
  191. package/dist/document-model-editor/components/tabs.js +0 -13
  192. package/dist/document-model-editor/components/tabs.js.map +0 -1
  193. package/dist/document-model-editor/components/text-area.d.ts +0 -9
  194. package/dist/document-model-editor/components/text-area.d.ts.map +0 -1
  195. package/dist/document-model-editor/components/text-area.js +0 -27
  196. package/dist/document-model-editor/components/text-area.js.map +0 -1
  197. package/dist/document-model-editor/components/text-field.d.ts +0 -21
  198. package/dist/document-model-editor/components/text-field.d.ts.map +0 -1
  199. package/dist/document-model-editor/components/text-field.js +0 -80
  200. package/dist/document-model-editor/components/text-field.js.map +0 -1
  201. package/dist/document-model-editor/config.d.ts +0 -3
  202. package/dist/document-model-editor/config.d.ts.map +0 -1
  203. package/dist/document-model-editor/config.js +0 -4
  204. package/dist/document-model-editor/config.js.map +0 -1
  205. package/dist/document-model-editor/constants/documents.d.ts +0 -13
  206. package/dist/document-model-editor/constants/documents.d.ts.map +0 -1
  207. package/dist/document-model-editor/constants/documents.js +0 -18
  208. package/dist/document-model-editor/constants/documents.js.map +0 -1
  209. package/dist/document-model-editor/constants/graphql-kinds.d.ts +0 -9
  210. package/dist/document-model-editor/constants/graphql-kinds.d.ts.map +0 -1
  211. package/dist/document-model-editor/constants/graphql-kinds.js +0 -13
  212. package/dist/document-model-editor/constants/graphql-kinds.js.map +0 -1
  213. package/dist/document-model-editor/context/form-context.d.ts +0 -11
  214. package/dist/document-model-editor/context/form-context.d.ts.map +0 -1
  215. package/dist/document-model-editor/context/form-context.js +0 -4
  216. package/dist/document-model-editor/context/form-context.js.map +0 -1
  217. package/dist/document-model-editor/context/schema-context.d.ts +0 -18
  218. package/dist/document-model-editor/context/schema-context.d.ts.map +0 -1
  219. package/dist/document-model-editor/context/schema-context.js +0 -129
  220. package/dist/document-model-editor/context/schema-context.js.map +0 -1
  221. package/dist/document-model-editor/document-model-editor.stories.d.ts +0 -8
  222. package/dist/document-model-editor/document-model-editor.stories.d.ts.map +0 -1
  223. package/dist/document-model-editor/document-model-editor.stories.js +0 -267
  224. package/dist/document-model-editor/document-model-editor.stories.js.map +0 -1
  225. package/dist/document-model-editor/editor.d.ts +0 -2
  226. package/dist/document-model-editor/editor.d.ts.map +0 -1
  227. package/dist/document-model-editor/editor.js +0 -217
  228. package/dist/document-model-editor/editor.js.map +0 -1
  229. package/dist/document-model-editor/hooks/index.d.ts +0 -3
  230. package/dist/document-model-editor/hooks/index.d.ts.map +0 -1
  231. package/dist/document-model-editor/hooks/index.js +0 -3
  232. package/dist/document-model-editor/hooks/index.js.map +0 -1
  233. package/dist/document-model-editor/hooks/useDocumentModelDocument.d.ts +0 -5
  234. package/dist/document-model-editor/hooks/useDocumentModelDocument.d.ts.map +0 -1
  235. package/dist/document-model-editor/hooks/useDocumentModelDocument.js +0 -8
  236. package/dist/document-model-editor/hooks/useDocumentModelDocument.js.map +0 -1
  237. package/dist/document-model-editor/hooks/useFormField.d.ts +0 -13
  238. package/dist/document-model-editor/hooks/useFormField.d.ts.map +0 -1
  239. package/dist/document-model-editor/hooks/useFormField.js +0 -22
  240. package/dist/document-model-editor/hooks/useFormField.js.map +0 -1
  241. package/dist/document-model-editor/index.d.ts +0 -2
  242. package/dist/document-model-editor/index.d.ts.map +0 -1
  243. package/dist/document-model-editor/index.js +0 -2
  244. package/dist/document-model-editor/index.js.map +0 -1
  245. package/dist/document-model-editor/module.d.ts +0 -3
  246. package/dist/document-model-editor/module.d.ts.map +0 -1
  247. package/dist/document-model-editor/module.js +0 -10
  248. package/dist/document-model-editor/module.js.map +0 -1
  249. package/dist/document-model-editor/schemas/inputs.d.ts +0 -25
  250. package/dist/document-model-editor/schemas/inputs.d.ts.map +0 -1
  251. package/dist/document-model-editor/schemas/inputs.js +0 -71
  252. package/dist/document-model-editor/schemas/inputs.js.map +0 -1
  253. package/dist/document-model-editor/schemas/utils.d.ts +0 -3
  254. package/dist/document-model-editor/schemas/utils.d.ts.map +0 -1
  255. package/dist/document-model-editor/schemas/utils.js +0 -3
  256. package/dist/document-model-editor/schemas/utils.js.map +0 -1
  257. package/dist/document-model-editor/types/documents.d.ts +0 -26
  258. package/dist/document-model-editor/types/documents.d.ts.map +0 -1
  259. package/dist/document-model-editor/types/documents.js +0 -2
  260. package/dist/document-model-editor/types/documents.js.map +0 -1
  261. package/dist/document-model-editor/types.d.ts +0 -2
  262. package/dist/document-model-editor/types.d.ts.map +0 -1
  263. package/dist/document-model-editor/types.js +0 -2
  264. package/dist/document-model-editor/types.js.map +0 -1
  265. package/dist/document-model-editor/utils/helpers.d.ts +0 -112
  266. package/dist/document-model-editor/utils/helpers.d.ts.map +0 -1
  267. package/dist/document-model-editor/utils/helpers.js +0 -920
  268. package/dist/document-model-editor/utils/helpers.js.map +0 -1
  269. package/dist/document-model-editor/utils/linting.d.ts +0 -7
  270. package/dist/document-model-editor/utils/linting.d.ts.map +0 -1
  271. package/dist/document-model-editor/utils/linting.js +0 -49
  272. package/dist/document-model-editor/utils/linting.js.map +0 -1
  273. package/dist/document-model-editor/utils/style.d.ts +0 -3
  274. package/dist/document-model-editor/utils/style.d.ts.map +0 -1
  275. package/dist/document-model-editor/utils/style.js +0 -6
  276. package/dist/document-model-editor/utils/style.js.map +0 -1
  277. package/dist/editor-utils/components/documentEditor.d.ts +0 -7
  278. package/dist/editor-utils/components/documentEditor.d.ts.map +0 -1
  279. package/dist/editor-utils/components/documentEditor.js +0 -6
  280. package/dist/editor-utils/components/documentEditor.js.map +0 -1
  281. package/dist/editor-utils/components/editorToolbar.d.ts +0 -11
  282. package/dist/editor-utils/components/editorToolbar.d.ts.map +0 -1
  283. package/dist/editor-utils/components/editorToolbar.js +0 -6
  284. package/dist/editor-utils/components/editorToolbar.js.map +0 -1
  285. package/dist/editor-utils/components/editorWorksheet.d.ts +0 -7
  286. package/dist/editor-utils/components/editorWorksheet.d.ts.map +0 -1
  287. package/dist/editor-utils/components/editorWorksheet.js +0 -5
  288. package/dist/editor-utils/components/editorWorksheet.js.map +0 -1
  289. package/dist/editor-utils/components/index.d.ts +0 -9
  290. package/dist/editor-utils/components/index.d.ts.map +0 -1
  291. package/dist/editor-utils/components/index.js +0 -10
  292. package/dist/editor-utils/components/index.js.map +0 -1
  293. package/dist/editor-utils/components/styles.d.ts +0 -40
  294. package/dist/editor-utils/components/styles.d.ts.map +0 -1
  295. package/dist/editor-utils/components/styles.js +0 -79
  296. package/dist/editor-utils/components/styles.js.map +0 -1
  297. package/dist/editor-utils/components/stylesVariant.d.ts +0 -40
  298. package/dist/editor-utils/components/stylesVariant.d.ts.map +0 -1
  299. package/dist/editor-utils/components/stylesVariant.js +0 -89
  300. package/dist/editor-utils/components/stylesVariant.js.map +0 -1
  301. package/dist/editor-utils/components/textInput.d.ts +0 -20
  302. package/dist/editor-utils/components/textInput.d.ts.map +0 -1
  303. package/dist/editor-utils/components/textInput.js +0 -84
  304. package/dist/editor-utils/components/textInput.js.map +0 -1
  305. package/dist/editor-utils/components/textInputVariant.d.ts +0 -21
  306. package/dist/editor-utils/components/textInputVariant.d.ts.map +0 -1
  307. package/dist/editor-utils/components/textInputVariant.js +0 -93
  308. package/dist/editor-utils/components/textInputVariant.js.map +0 -1
  309. package/dist/editor-utils/components/toolbarButton.d.ts +0 -7
  310. package/dist/editor-utils/components/toolbarButton.d.ts.map +0 -1
  311. package/dist/editor-utils/components/toolbarButton.js +0 -9
  312. package/dist/editor-utils/components/toolbarButton.js.map +0 -1
  313. package/dist/editor-utils/hooks/index.d.ts +0 -2
  314. package/dist/editor-utils/hooks/index.d.ts.map +0 -1
  315. package/dist/editor-utils/hooks/index.js +0 -2
  316. package/dist/editor-utils/hooks/index.js.map +0 -1
  317. package/dist/editor-utils/hooks/useEnsInfo.d.ts +0 -15
  318. package/dist/editor-utils/hooks/useEnsInfo.d.ts.map +0 -1
  319. package/dist/editor-utils/hooks/useEnsInfo.js +0 -64
  320. package/dist/editor-utils/hooks/useEnsInfo.js.map +0 -1
  321. package/dist/editor-utils/index.d.ts +0 -5
  322. package/dist/editor-utils/index.d.ts.map +0 -1
  323. package/dist/editor-utils/index.js +0 -5
  324. package/dist/editor-utils/index.js.map +0 -1
  325. package/dist/editor-utils/reducer.d.ts +0 -3
  326. package/dist/editor-utils/reducer.d.ts.map +0 -1
  327. package/dist/editor-utils/reducer.js +0 -25
  328. package/dist/editor-utils/reducer.js.map +0 -1
  329. package/dist/editor-utils/storybook.d.ts +0 -32
  330. package/dist/editor-utils/storybook.d.ts.map +0 -1
  331. package/dist/editor-utils/storybook.js +0 -104
  332. package/dist/editor-utils/storybook.js.map +0 -1
  333. package/dist/index.js.map +0 -1
  334. package/dist/style.css +0 -890
  335. package/dist/test/helpers.test.d.ts +0 -2
  336. package/dist/test/helpers.test.d.ts.map +0 -1
  337. package/dist/test/helpers.test.js +0 -805
  338. package/dist/test/helpers.test.js.map +0 -1
  339. package/dist/test/index.d.ts +0 -2
  340. package/dist/test/index.d.ts.map +0 -1
  341. package/dist/test/index.js +0 -2
  342. package/dist/test/index.js.map +0 -1
@@ -1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,CAAC,CAAC;AAM1D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAEhD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAEjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAyDD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,cAAmB,GAAG,UAAU,CAQvE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,OAAO,GAAE,cAAmB,GAC3B,iBAAiB,CAInB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,cAAmB,GAAG,eAAe,CAI1E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CA0B/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAuB1D"}
@@ -1,518 +0,0 @@
1
- import { z } from "zod/v3";
2
- /**
3
- * Coerces string values to boolean.
4
- * Accepts: "true", "false", true, false
5
- */
6
- const booleanString = z
7
- .union([z.boolean(), z.enum(["true", "false"])])
8
- .transform((val) => {
9
- if (typeof val === "boolean")
10
- return val;
11
- return val === "true";
12
- });
13
- /**
14
- * Coerces string values to number.
15
- */
16
- const numberString = z.union([z.number(), z.string()]).transform((val) => {
17
- if (typeof val === "number")
18
- return val;
19
- return parseInt(val, 10);
20
- });
21
- // ============================================================================
22
- // Build-time Environment Variables
23
- // ============================================================================
24
- /**
25
- * Build-time configuration schema
26
- */
27
- const buildEnvSchema = z.object({
28
- /**
29
- * Path to powerhouse config file
30
- * @default "powerhouse.config.json"
31
- */
32
- PH_CONFIG_PATH: z.string().optional(),
33
- /**
34
- * Comma-separated list of package names to load
35
- * @example "package1,package2"
36
- */
37
- PH_PACKAGES: z.string().optional(),
38
- /**
39
- * Path to local package to load during development
40
- */
41
- PH_LOCAL_PACKAGE: z.string().optional(),
42
- /**
43
- * Disable loading of local package
44
- * @default false
45
- */
46
- PH_DISABLE_LOCAL_PACKAGE: booleanString.default(false),
47
- /**
48
- * Amount of time to wait before a file is considered changed
49
- * @default 300
50
- */
51
- PH_WATCH_TIMEOUT: numberString.default(300),
52
- /**
53
- * Sentry authentication token for uploading source maps
54
- */
55
- PH_SENTRY_AUTH_TOKEN: z.string().optional(),
56
- /**
57
- * Sentry organization slug
58
- */
59
- PH_SENTRY_ORG: z.string().optional(),
60
- /**
61
- * Sentry project slug
62
- */
63
- PH_SENTRY_PROJECT: z.string().optional(),
64
- });
65
- // ============================================================================
66
- // Application Configuration
67
- // ============================================================================
68
- /**
69
- * Application configuration schema
70
- */
71
- const appConfigSchema = z.object({
72
- /**
73
- * Application version number
74
- * @default "unknown"
75
- */
76
- PH_CONNECT_VERSION: z.string().default("unknown"),
77
- /**
78
- * Log level for the application
79
- * @default "info"
80
- */
81
- PH_CONNECT_LOG_LEVEL: z
82
- .enum(["debug", "info", "warn", "error"])
83
- .default("info"),
84
- /**
85
- * Whether app requires hard refresh on updates
86
- * @default true
87
- */
88
- PH_CONNECT_REQUIRES_HARD_REFRESH: booleanString.default(true),
89
- /**
90
- * Show warning when app version is outdated
91
- * @default false
92
- */
93
- PH_CONNECT_WARN_OUTDATED_APP: booleanString.default(false),
94
- /**
95
- * Enable studio mode features
96
- * @default false
97
- */
98
- PH_CONNECT_STUDIO_MODE: booleanString.default(false),
99
- /**
100
- * Base path for the Connect router, defaults to import.meta.env.BASE_URL
101
- */
102
- PH_CONNECT_BASE_PATH: z.string().optional(),
103
- /**
104
- * Default drives URL to load on startup
105
- */
106
- PH_CONNECT_DEFAULT_DRIVES_URL: z.string().optional(),
107
- /**
108
- * Strategy for preserving drives
109
- */
110
- PH_CONNECT_DRIVES_PRESERVE_STRATEGY: z.string().optional(),
111
- /**
112
- * Interval in milliseconds to check for version updates
113
- * @default 3600000 (1 hour)
114
- */
115
- PH_CONNECT_VERSION_CHECK_INTERVAL: numberString.default(60 * 60 * 1000),
116
- /**
117
- * CLI version number
118
- */
119
- PH_CONNECT_CLI_VERSION: z.string().optional(),
120
- /**
121
- * Chunk size for file upload operations
122
- * @default 50
123
- */
124
- PH_CONNECT_FILE_UPLOAD_OPERATIONS_CHUNK_SIZE: numberString.default(50),
125
- });
126
- // ============================================================================
127
- // Feature Flags & UI Configuration
128
- // ============================================================================
129
- /**
130
- * Feature flags and UI configuration schema
131
- */
132
- const featureFlagsSchema = z.object({
133
- /**
134
- * Hide the "Add Drive" button completely
135
- * @default false
136
- */
137
- PH_CONNECT_DISABLE_ADD_DRIVE: booleanString.default(false),
138
- /**
139
- * Show search bar in the UI
140
- * @default false
141
- */
142
- PH_CONNECT_SEARCH_BAR_ENABLED: booleanString.default(false),
143
- /**
144
- * Show inspector button in the sidebar
145
- * @default false
146
- */
147
- PH_CONNECT_INSPECTOR_ENABLED: booleanString.default(false),
148
- /**
149
- * Hide document model selection in settings
150
- * @default true
151
- */
152
- PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS: booleanString.default(true),
153
- /**
154
- * Comma-separated list of enabled editor types
155
- * Use "*" to enable all editors
156
- * @example "editor1,editor2" or "*"
157
- */
158
- PH_CONNECT_ENABLED_EDITORS: z.string().optional(),
159
- /**
160
- * Comma-separated list of disabled editor types
161
- * @default "powerhouse/document-drive"
162
- */
163
- PH_CONNECT_DISABLED_EDITORS: z.string().default("powerhouse/document-drive"),
164
- /**
165
- * Google Analytics tracking ID
166
- */
167
- PH_CONNECT_GA_TRACKING_ID: z.string().optional(),
168
- /**
169
- * Disable loading of external packages
170
- * @default false
171
- */
172
- PH_CONNECT_EXTERNAL_PACKAGES_DISABLED: booleanString.default(false),
173
- });
174
- // ============================================================================
175
- // Drives Configuration
176
- // ============================================================================
177
- /**
178
- * Drives configuration schema
179
- */
180
- const drivesConfigSchema = z.object({
181
- /**
182
- * Enable public drives section
183
- * @default true
184
- */
185
- PH_CONNECT_PUBLIC_DRIVES_ENABLED: booleanString.default(true),
186
- /**
187
- * Allow adding public drives
188
- * @default true
189
- */
190
- PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES: booleanString.default(false),
191
- /**
192
- * Allow deleting public drives
193
- * @default true
194
- */
195
- PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES: booleanString.default(false),
196
- /**
197
- * Enable cloud drives section
198
- * @default true
199
- */
200
- PH_CONNECT_CLOUD_DRIVES_ENABLED: booleanString.default(true),
201
- /**
202
- * Allow adding cloud drives
203
- * @default true
204
- */
205
- PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES: booleanString.default(false),
206
- /**
207
- * Allow deleting cloud drives
208
- * @default true
209
- */
210
- PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES: booleanString.default(false),
211
- /**
212
- * Enable local drives section
213
- * @default true
214
- */
215
- PH_CONNECT_LOCAL_DRIVES_ENABLED: booleanString.default(true),
216
- /**
217
- * Allow adding local drives
218
- * @default true
219
- */
220
- PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES: booleanString.default(false),
221
- /**
222
- * Allow deleting local drives
223
- * @default true
224
- */
225
- PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES: booleanString.default(false),
226
- });
227
- // ============================================================================
228
- // Analytics Processor Configuration
229
- // ============================================================================
230
- /**
231
- * Analytics processor configuration schema
232
- */
233
- const analyticsProcessorsConfigSchema = z.object({
234
- /**
235
- * Enable analytics
236
- * @default true
237
- */
238
- PH_CONNECT_ANALYTICS_ENABLED: booleanString.default(true),
239
- /**
240
- * Name of the analytics database
241
- * Defaults to basename + ":analytics"
242
- */
243
- PH_CONNECT_ANALYTICS_DATABASE_NAME: z.string().optional(),
244
- /**
245
- * Disable analytics database worker
246
- * @default false
247
- */
248
- PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED: booleanString.default(true),
249
- /**
250
- * Enable diff analytics tracking
251
- * @default false
252
- */
253
- PH_CONNECT_DIFF_ANALYTICS_ENABLED: booleanString.default(false),
254
- /**
255
- * Enable drive analytics tracking
256
- * @default true
257
- */
258
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: booleanString.default(true),
259
- /**
260
- * Enable external analytics processors
261
- * @default true
262
- */
263
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: booleanString.default(true),
264
- });
265
- /**
266
- * Relational DB processor configuration schema
267
- */
268
- const relationalProcessorsConfigSchema = z.object({
269
- /**
270
- * Enable relational processors
271
- * @default true
272
- */
273
- PH_CONNECT_RELATIONAL_PROCESSORS_ENABLED: booleanString.default(true),
274
- /**
275
- * Enable external relational processors
276
- * @default true
277
- */
278
- PH_CONNECT_EXTERNAL_RELATIONAL_PROCESSORS_ENABLED: booleanString.default(true),
279
- });
280
- /**
281
- * External processors configuration schema
282
- */
283
- const processorsBaseConfigSchema = z.object({
284
- /**
285
- * Enable processors
286
- * @default true
287
- */
288
- PH_CONNECT_PROCESSORS_ENABLED: booleanString.default(true),
289
- /**
290
- * Enable external processors
291
- * @default true
292
- */
293
- PH_CONNECT_EXTERNAL_PROCESSORS_ENABLED: booleanString.default(true),
294
- });
295
- const processorsConfigSchema = processorsBaseConfigSchema
296
- .merge(analyticsProcessorsConfigSchema)
297
- .merge(relationalProcessorsConfigSchema);
298
- // ============================================================================
299
- // Sentry Configuration
300
- // ============================================================================
301
- /**
302
- * Sentry error tracking configuration schema
303
- */
304
- const sentryConfigSchema = z.object({
305
- /**
306
- * Sentry release identifier
307
- * Defaults to app version
308
- */
309
- PH_CONNECT_SENTRY_RELEASE: z.string().optional(),
310
- /**
311
- * Sentry DSN for error reporting
312
- */
313
- PH_CONNECT_SENTRY_DSN: z.string().optional(),
314
- /**
315
- * Sentry environment name
316
- * @default "prod"
317
- */
318
- PH_CONNECT_SENTRY_ENV: z.string().default("dev"),
319
- /**
320
- * Enable Sentry performance tracing
321
- * @default false
322
- */
323
- PH_CONNECT_SENTRY_TRACING_ENABLED: booleanString.default(false),
324
- });
325
- // ============================================================================
326
- // Renown Configuration
327
- // ============================================================================
328
- /**
329
- * Renown authentication configuration schema
330
- */
331
- const renownConfigSchema = z.object({
332
- /**
333
- * Renown authentication service URL
334
- * @default "https://www.renown.id"
335
- */
336
- PH_CONNECT_RENOWN_URL: z.string().default("https://www.renown.id"),
337
- /**
338
- * Renown network ID
339
- * @default "eip155"
340
- */
341
- PH_CONNECT_RENOWN_NETWORK_ID: z.string().default("eip155"),
342
- /**
343
- * Renown chain ID
344
- * @default 1
345
- */
346
- PH_CONNECT_RENOWN_CHAIN_ID: numberString.default(1),
347
- });
348
- // ============================================================================
349
- // Combined Schemas
350
- // ============================================================================
351
- /**
352
- * Complete runtime environment schema (all PH_CONNECT_* vars)
353
- */
354
- export const runtimeEnvSchema = appConfigSchema
355
- .merge(featureFlagsSchema)
356
- .merge(drivesConfigSchema)
357
- .merge(processorsConfigSchema)
358
- .merge(sentryConfigSchema)
359
- .merge(renownConfigSchema);
360
- /**
361
- * Complete environment schema (build + runtime)
362
- */
363
- export const connectEnvSchema = buildEnvSchema.merge(runtimeEnvSchema);
364
- /**
365
- * Internal helper to merge environment sources with priority.
366
- * Validates each value and falls back to next priority if invalid.
367
- */
368
- function mergeEnvSources(options, keys, schema) {
369
- const { processEnv = {}, optionsEnv = {}, fileEnv = {} } = options;
370
- const merged = {};
371
- // Apply priority: fileEnv < optionsEnv < processEnv
372
- for (const key of keys) {
373
- const sources = [
374
- { name: "process.env", value: processEnv[key] },
375
- { name: "options", value: optionsEnv[key] },
376
- { name: "fileEnv", value: fileEnv[key] },
377
- ];
378
- // Try each source in priority order
379
- for (const source of sources) {
380
- const value = source.value;
381
- if (value === undefined || value === "")
382
- continue;
383
- // Try to validate just this field
384
- try {
385
- const fieldSchema = schema.shape[key];
386
- if (fieldSchema) {
387
- fieldSchema.parse(value);
388
- merged[key] = value;
389
- break; // Successfully validated, use this value
390
- }
391
- // No schema for this key, accept it
392
- console.warn(`Unknown environment variable: '${key}'`);
393
- merged[key] = value;
394
- break;
395
- }
396
- catch {
397
- // Validation failed, log warning and try next source
398
- const valueStr = value === null
399
- ? "null"
400
- : typeof value === "object"
401
- ? JSON.stringify(value)
402
- : value;
403
- console.warn(`Invalid value for ${key} from ${source.name}: ${valueStr}. Trying next source.`);
404
- }
405
- }
406
- }
407
- return merged;
408
- }
409
- /**
410
- * Loads and validates environment variables with priority:
411
- * 1. process.env (highest)
412
- * 2. options
413
- * 3. fileEnv
414
- * 4. defaults from schema (lowest)
415
- *
416
- * @param options - Environment sources in priority order
417
- * @returns Validated and typed environment configuration
418
- */
419
- export function loadConnectEnv(options = {}) {
420
- const allKeys = new Set([
421
- ...Object.keys(buildEnvSchema.shape),
422
- ...Object.keys(runtimeEnvSchema.shape),
423
- ]);
424
- const merged = mergeEnvSources(options, allKeys, connectEnvSchema);
425
- return connectEnvSchema.parse(merged);
426
- }
427
- /**
428
- * Loads only runtime environment variables
429
- *
430
- * @param options - Environment sources in priority order
431
- * @returns Validated runtime environment configuration
432
- */
433
- export function loadRuntimeEnv(options = {}) {
434
- const allKeys = new Set(Object.keys(runtimeEnvSchema.shape));
435
- const merged = mergeEnvSources(options, allKeys, runtimeEnvSchema);
436
- return runtimeEnvSchema.parse(merged);
437
- }
438
- /**
439
- * Loads only build-time environment variables
440
- *
441
- * @param options - Environment sources in priority order
442
- * @returns Validated build environment configuration
443
- */
444
- export function loadBuildEnv(options = {}) {
445
- const allKeys = new Set(Object.keys(buildEnvSchema.shape));
446
- const merged = mergeEnvSources(options, allKeys, buildEnvSchema);
447
- return buildEnvSchema.parse(merged);
448
- }
449
- /**
450
- * Safely sets Connect environment variables with validation.
451
- * Invalid values will log a warning and be skipped.
452
- *
453
- * @param values - Type-safe object with key-value pairs to set
454
- *
455
- * @example
456
- * ```ts
457
- * setConnectEnv({
458
- * PH_CONNECT_LOG_LEVEL: "debug",
459
- * PH_CONNECT_VERSION: "1.2.3",
460
- * PH_CONNECT_STUDIO_MODE: true,
461
- * });
462
- * ```
463
- */
464
- export function setConnectEnv(values) {
465
- for (const [key, value] of Object.entries(values)) {
466
- // Check if key exists in schema
467
- const fieldSchema = connectEnvSchema.shape[key];
468
- if (!fieldSchema) {
469
- console.warn(`Unknown environment variable: ${key}. Variable not set. Valid keys: ${Object.keys(connectEnvSchema.shape).join(", ")}`);
470
- continue;
471
- }
472
- try {
473
- // Validate the value
474
- fieldSchema.parse(value);
475
- // Set the value (convert to string for process.env compatibility)
476
- process.env[key] = String(value);
477
- }
478
- catch (error) {
479
- console.warn(`Invalid value for ${key}: ${String(value)}. Validation failed.`, error);
480
- }
481
- }
482
- }
483
- /**
484
- * Normalizes a base path to ensure it:
485
- * - Starts with a forward slash (/)
486
- * - Ends with a forward slash (/)
487
- * - Has no relative path prefix (.)
488
- *
489
- * @param basePath - The base path to normalize
490
- * @returns The normalized base path
491
- *
492
- * @example
493
- * normalizeBasePath('/app') // '/app/'
494
- * normalizeBasePath('./app/') // '/app/'
495
- * normalizeBasePath('app') // '/app/'
496
- * normalizeBasePath('/') // '/'
497
- * normalizeBasePath('') // '/'
498
- */
499
- export function normalizeBasePath(basePath) {
500
- if (!basePath) {
501
- return "/";
502
- }
503
- let normalized = basePath;
504
- // Remove relative path prefix
505
- if (normalized.startsWith(".")) {
506
- normalized = normalized.slice(1);
507
- }
508
- // Ensure it starts with a forward slash
509
- if (!normalized.startsWith("/")) {
510
- normalized = `/${normalized}`;
511
- }
512
- // Ensure it ends with a forward slash
513
- if (!normalized.endsWith("/")) {
514
- normalized = `${normalized}/`;
515
- }
516
- return normalized;
517
- }
518
- //# sourceMappingURL=env-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env-config.js","sourceRoot":"","sources":["../../connect-utils/env-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,E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