@powerhousedao/codegen 5.1.0-dev.31 → 5.1.0-dev.33

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 (228) hide show
  1. package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t +2 -0
  2. package/dist/src/codegen/generate.d.ts.map +1 -1
  3. package/dist/src/codegen/generate.js +4 -3
  4. package/dist/src/codegen/generate.js.map +1 -1
  5. package/dist/src/codegen/hygen.d.ts.map +1 -1
  6. package/dist/src/codegen/hygen.js +1 -4
  7. package/dist/src/codegen/hygen.js.map +1 -1
  8. package/dist/src/ts-morph-utils/constants.d.ts +4 -11
  9. package/dist/src/ts-morph-utils/constants.d.ts.map +1 -1
  10. package/dist/src/ts-morph-utils/constants.js +4 -11
  11. package/dist/src/ts-morph-utils/constants.js.map +1 -1
  12. package/dist/src/ts-morph-utils/document-type-metadata.d.ts +15 -0
  13. package/dist/src/ts-morph-utils/document-type-metadata.d.ts.map +1 -0
  14. package/dist/src/ts-morph-utils/document-type-metadata.js +67 -0
  15. package/dist/src/ts-morph-utils/document-type-metadata.js.map +1 -0
  16. package/dist/src/ts-morph-utils/file-builders/document-editor.d.ts +3 -19
  17. package/dist/src/ts-morph-utils/file-builders/document-editor.d.ts.map +1 -1
  18. package/dist/src/ts-morph-utils/file-builders/document-editor.js +25 -239
  19. package/dist/src/ts-morph-utils/file-builders/document-editor.js.map +1 -1
  20. package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.d.ts +1 -1
  21. package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.d.ts.map +1 -1
  22. package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.js +18 -20
  23. package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.js.map +1 -1
  24. package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.d.ts +1 -1
  25. package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.d.ts.map +1 -1
  26. package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.js +6 -6
  27. package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.js.map +1 -1
  28. package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.d.ts +1 -1
  29. package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.d.ts.map +1 -1
  30. package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.js +6 -7
  31. package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.js.map +1 -1
  32. package/dist/src/ts-morph-utils/file-builders/document-model/upgrades-dir.d.ts.map +1 -1
  33. package/dist/src/ts-morph-utils/file-builders/document-model/upgrades-dir.js +2 -3
  34. package/dist/src/ts-morph-utils/file-builders/document-model/upgrades-dir.js.map +1 -1
  35. package/dist/src/ts-morph-utils/file-builders/document-model.d.ts +6 -6
  36. package/dist/src/ts-morph-utils/file-builders/document-model.d.ts.map +1 -1
  37. package/dist/src/ts-morph-utils/file-builders/document-model.js +92 -109
  38. package/dist/src/ts-morph-utils/file-builders/document-model.js.map +1 -1
  39. package/dist/src/ts-morph-utils/file-builders/drive-editor.d.ts +2 -49
  40. package/dist/src/ts-morph-utils/file-builders/drive-editor.d.ts.map +1 -1
  41. package/dist/src/ts-morph-utils/file-builders/drive-editor.js +89 -257
  42. package/dist/src/ts-morph-utils/file-builders/drive-editor.js.map +1 -1
  43. package/dist/src/ts-morph-utils/file-builders/editor-common.d.ts +11 -1
  44. package/dist/src/ts-morph-utils/file-builders/editor-common.d.ts.map +1 -1
  45. package/dist/src/ts-morph-utils/file-builders/editor-common.js +23 -12
  46. package/dist/src/ts-morph-utils/file-builders/editor-common.js.map +1 -1
  47. package/dist/src/ts-morph-utils/file-builders/index-files.d.ts.map +1 -1
  48. package/dist/src/ts-morph-utils/file-builders/index-files.js +2 -2
  49. package/dist/src/ts-morph-utils/file-builders/index-files.js.map +1 -1
  50. package/dist/src/ts-morph-utils/file-builders/module-files.d.ts +7 -0
  51. package/dist/src/ts-morph-utils/file-builders/module-files.d.ts.map +1 -1
  52. package/dist/src/ts-morph-utils/file-builders/module-files.js +36 -8
  53. package/dist/src/ts-morph-utils/file-builders/module-files.js.map +1 -1
  54. package/dist/src/ts-morph-utils/format-with-prettier.d.ts +4 -0
  55. package/dist/src/ts-morph-utils/format-with-prettier.d.ts.map +1 -0
  56. package/dist/src/ts-morph-utils/format-with-prettier.js +16 -0
  57. package/dist/src/ts-morph-utils/format-with-prettier.js.map +1 -0
  58. package/dist/src/ts-morph-utils/index.d.ts +8 -0
  59. package/dist/src/ts-morph-utils/index.d.ts.map +1 -0
  60. package/dist/src/ts-morph-utils/index.js +7 -0
  61. package/dist/src/ts-morph-utils/index.js.map +1 -0
  62. package/dist/src/ts-morph-utils/name-builders/get-variable-names.d.ts +15 -4
  63. package/dist/src/ts-morph-utils/name-builders/get-variable-names.d.ts.map +1 -1
  64. package/dist/src/ts-morph-utils/name-builders/get-variable-names.js +11 -13
  65. package/dist/src/ts-morph-utils/name-builders/get-variable-names.js.map +1 -1
  66. package/dist/src/ts-morph-utils/name-builders/index.d.ts +2 -0
  67. package/dist/src/ts-morph-utils/name-builders/index.d.ts.map +1 -0
  68. package/dist/src/ts-morph-utils/name-builders/index.js +2 -0
  69. package/dist/src/ts-morph-utils/name-builders/index.js.map +1 -0
  70. package/dist/src/ts-morph-utils/syntax-builders.d.ts +5 -72
  71. package/dist/src/ts-morph-utils/syntax-builders.d.ts.map +1 -1
  72. package/dist/src/ts-morph-utils/syntax-builders.js +24 -167
  73. package/dist/src/ts-morph-utils/syntax-builders.js.map +1 -1
  74. package/dist/src/ts-morph-utils/syntax-getters.d.ts +6 -8
  75. package/dist/src/ts-morph-utils/syntax-getters.d.ts.map +1 -1
  76. package/dist/src/ts-morph-utils/syntax-getters.js +9 -34
  77. package/dist/src/ts-morph-utils/syntax-getters.js.map +1 -1
  78. package/dist/src/ts-morph-utils/templates/document-editor/editor.d.ts +5 -0
  79. package/dist/src/ts-morph-utils/templates/document-editor/editor.d.ts.map +1 -0
  80. package/dist/src/ts-morph-utils/templates/document-editor/editor.js +80 -0
  81. package/dist/src/ts-morph-utils/templates/document-editor/editor.js.map +1 -0
  82. package/dist/src/ts-morph-utils/templates/document-editor/module.d.ts +7 -0
  83. package/dist/src/ts-morph-utils/templates/document-editor/module.d.ts.map +1 -0
  84. package/dist/src/ts-morph-utils/templates/document-editor/module.js +16 -0
  85. package/dist/src/ts-morph-utils/templates/document-editor/module.js.map +1 -0
  86. package/dist/src/ts-morph-utils/templates/document-model/actions.d.ts +1 -1
  87. package/dist/src/ts-morph-utils/templates/document-model/actions.d.ts.map +1 -1
  88. package/dist/src/ts-morph-utils/templates/document-model/actions.js.map +1 -1
  89. package/dist/src/ts-morph-utils/templates/document-model/gen/actions.d.ts +1 -1
  90. package/dist/src/ts-morph-utils/templates/document-model/gen/actions.d.ts.map +1 -1
  91. package/dist/src/ts-morph-utils/templates/document-model/gen/actions.js.map +1 -1
  92. package/dist/src/ts-morph-utils/templates/document-model/gen/creators.d.ts +1 -1
  93. package/dist/src/ts-morph-utils/templates/document-model/gen/creators.d.ts.map +1 -1
  94. package/dist/src/ts-morph-utils/templates/document-model/gen/creators.js.map +1 -1
  95. package/dist/src/ts-morph-utils/templates/document-model/gen/document-schema.d.ts +1 -1
  96. package/dist/src/ts-morph-utils/templates/document-model/gen/document-schema.d.ts.map +1 -1
  97. package/dist/src/ts-morph-utils/templates/document-model/gen/document-schema.js.map +1 -1
  98. package/dist/src/ts-morph-utils/templates/document-model/gen/document-type.d.ts +1 -1
  99. package/dist/src/ts-morph-utils/templates/document-model/gen/document-type.d.ts.map +1 -1
  100. package/dist/src/ts-morph-utils/templates/document-model/gen/document-type.js.map +1 -1
  101. package/dist/src/ts-morph-utils/templates/document-model/gen/index.d.ts +1 -1
  102. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/actions.d.ts +1 -1
  103. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/actions.d.ts.map +1 -1
  104. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/actions.js.map +1 -1
  105. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/creators.d.ts +1 -1
  106. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/creators.d.ts.map +1 -1
  107. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/creators.js.map +1 -1
  108. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/error.d.ts +1 -1
  109. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/error.d.ts.map +1 -1
  110. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/error.js.map +1 -1
  111. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/operations.d.ts +1 -1
  112. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/operations.d.ts.map +1 -1
  113. package/dist/src/ts-morph-utils/templates/document-model/gen/modules/operations.js.map +1 -1
  114. package/dist/src/ts-morph-utils/templates/document-model/gen/ph-factories.d.ts +1 -1
  115. package/dist/src/ts-morph-utils/templates/document-model/gen/ph-factories.d.ts.map +1 -1
  116. package/dist/src/ts-morph-utils/templates/document-model/gen/ph-factories.js.map +1 -1
  117. package/dist/src/ts-morph-utils/templates/document-model/gen/reducer.d.ts +1 -1
  118. package/dist/src/ts-morph-utils/templates/document-model/gen/reducer.d.ts.map +1 -1
  119. package/dist/src/ts-morph-utils/templates/document-model/gen/reducer.js.map +1 -1
  120. package/dist/src/ts-morph-utils/templates/document-model/gen/types.d.ts +1 -1
  121. package/dist/src/ts-morph-utils/templates/document-model/gen/types.d.ts.map +1 -1
  122. package/dist/src/ts-morph-utils/templates/document-model/gen/types.js.map +1 -1
  123. package/dist/src/ts-morph-utils/templates/document-model/gen/utils.d.ts +1 -1
  124. package/dist/src/ts-morph-utils/templates/document-model/gen/utils.d.ts.map +1 -1
  125. package/dist/src/ts-morph-utils/templates/document-model/gen/utils.js.map +1 -1
  126. package/dist/src/ts-morph-utils/templates/document-model/hooks.d.ts +1 -1
  127. package/dist/src/ts-morph-utils/templates/document-model/hooks.d.ts.map +1 -1
  128. package/dist/src/ts-morph-utils/templates/document-model/hooks.js.map +1 -1
  129. package/dist/src/ts-morph-utils/templates/document-model/src/tests/document-model.test.d.ts +1 -1
  130. package/dist/src/ts-morph-utils/templates/document-model/src/tests/document-model.test.d.ts.map +1 -1
  131. package/dist/src/ts-morph-utils/templates/document-model/src/tests/document-model.test.js.map +1 -1
  132. package/dist/src/ts-morph-utils/templates/document-model/src/tests/module.test.d.ts +1 -1
  133. package/dist/src/ts-morph-utils/templates/document-model/src/tests/module.test.d.ts.map +1 -1
  134. package/dist/src/ts-morph-utils/templates/document-model/src/tests/module.test.js.map +1 -1
  135. package/dist/src/ts-morph-utils/templates/document-model/utils.d.ts +1 -1
  136. package/dist/src/ts-morph-utils/templates/document-model/utils.d.ts.map +1 -1
  137. package/dist/src/ts-morph-utils/templates/document-model/utils.js.map +1 -1
  138. package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.d.ts +2 -0
  139. package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.d.ts.map +1 -0
  140. package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.js +58 -0
  141. package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.js.map +1 -0
  142. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.d.ts +2 -0
  143. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.d.ts.map +1 -0
  144. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.js +24 -0
  145. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.js.map +1 -0
  146. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.d.ts +2 -0
  147. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.d.ts.map +1 -0
  148. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.js +32 -0
  149. package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.js.map +1 -0
  150. package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.d.ts +2 -0
  151. package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.d.ts.map +1 -0
  152. package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.js +19 -0
  153. package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.js.map +1 -0
  154. package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.d.ts +2 -0
  155. package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.d.ts.map +1 -0
  156. package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.js +30 -0
  157. package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.js.map +1 -0
  158. package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.d.ts +2 -0
  159. package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.d.ts.map +1 -0
  160. package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.js +108 -0
  161. package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.js.map +1 -0
  162. package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.d.ts +2 -0
  163. package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.d.ts.map +1 -0
  164. package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.js +28 -0
  165. package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.js.map +1 -0
  166. package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.d.ts +2 -0
  167. package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.d.ts.map +1 -0
  168. package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.js +14 -0
  169. package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.js.map +1 -0
  170. package/dist/src/ts-morph-utils/templates/drive-editor/config.d.ts +5 -0
  171. package/dist/src/ts-morph-utils/templates/drive-editor/config.d.ts.map +1 -0
  172. package/dist/src/ts-morph-utils/templates/drive-editor/config.js +11 -0
  173. package/dist/src/ts-morph-utils/templates/drive-editor/config.js.map +1 -0
  174. package/dist/src/ts-morph-utils/templates/drive-editor/editor.d.ts +2 -0
  175. package/dist/src/ts-morph-utils/templates/drive-editor/editor.d.ts.map +1 -0
  176. package/dist/src/ts-morph-utils/templates/drive-editor/editor.js +18 -0
  177. package/dist/src/ts-morph-utils/templates/drive-editor/editor.js.map +1 -0
  178. package/dist/src/ts-morph-utils/templates/utils.d.ts +1 -1
  179. package/dist/src/ts-morph-utils/templates/utils.d.ts.map +1 -1
  180. package/dist/src/ts-morph-utils/templates/utils.js.map +1 -1
  181. package/dist/src/ts-morph-utils/ts-morph-project.d.ts +24 -1
  182. package/dist/src/ts-morph-utils/ts-morph-project.d.ts.map +1 -1
  183. package/dist/src/ts-morph-utils/ts-morph-project.js +52 -4
  184. package/dist/src/ts-morph-utils/ts-morph-project.js.map +1 -1
  185. package/dist/src/ts-morph-utils/types.d.ts +56 -24
  186. package/dist/src/ts-morph-utils/types.d.ts.map +1 -1
  187. package/dist/tsconfig.tsbuildinfo +1 -1
  188. package/package.json +25 -9
  189. package/dist/src/ts-morph-utils/file-builders/document-model/types.d.ts +0 -32
  190. package/dist/src/ts-morph-utils/file-builders/document-model/types.d.ts.map +0 -1
  191. package/dist/src/ts-morph-utils/file-builders/document-model/types.js +0 -2
  192. package/dist/src/ts-morph-utils/file-builders/document-model/types.js.map +0 -1
  193. package/dist/src/ts-morph-utils/file-builders/types.d.ts +0 -13
  194. package/dist/src/ts-morph-utils/file-builders/types.d.ts.map +0 -1
  195. package/dist/src/ts-morph-utils/file-builders/types.js +0 -2
  196. package/dist/src/ts-morph-utils/file-builders/types.js.map +0 -1
  197. package/dist/src/ts-morph-utils/file-utils.d.ts +0 -28
  198. package/dist/src/ts-morph-utils/file-utils.d.ts.map +0 -1
  199. package/dist/src/ts-morph-utils/file-utils.js +0 -102
  200. package/dist/src/ts-morph-utils/file-utils.js.map +0 -1
  201. package/dist/src/ts-morph-utils/name-builders/common-files.d.ts +0 -5
  202. package/dist/src/ts-morph-utils/name-builders/common-files.d.ts.map +0 -1
  203. package/dist/src/ts-morph-utils/name-builders/common-files.js +0 -15
  204. package/dist/src/ts-morph-utils/name-builders/common-files.js.map +0 -1
  205. package/dist/src/ts-morph-utils/name-builders/document-model-files.d.ts +0 -4
  206. package/dist/src/ts-morph-utils/name-builders/document-model-files.d.ts.map +0 -1
  207. package/dist/src/ts-morph-utils/name-builders/document-model-files.js +0 -12
  208. package/dist/src/ts-morph-utils/name-builders/document-model-files.js.map +0 -1
  209. package/dist/src/ts-morph-utils/name-builders/editor-files.d.ts +0 -10
  210. package/dist/src/ts-morph-utils/name-builders/editor-files.d.ts.map +0 -1
  211. package/dist/src/ts-morph-utils/name-builders/editor-files.js +0 -37
  212. package/dist/src/ts-morph-utils/name-builders/editor-files.js.map +0 -1
  213. package/dist/src/ts-morph-utils/name-builders/get-file-paths.d.ts +0 -4
  214. package/dist/src/ts-morph-utils/name-builders/get-file-paths.d.ts.map +0 -1
  215. package/dist/src/ts-morph-utils/name-builders/get-file-paths.js +0 -21
  216. package/dist/src/ts-morph-utils/name-builders/get-file-paths.js.map +0 -1
  217. package/dist/src/ts-morph-utils/name-builders/types.d.ts +0 -19
  218. package/dist/src/ts-morph-utils/name-builders/types.d.ts.map +0 -1
  219. package/dist/src/ts-morph-utils/name-builders/types.js +0 -2
  220. package/dist/src/ts-morph-utils/name-builders/types.js.map +0 -1
  221. package/dist/src/ts-morph-utils/name-builders/variables.d.ts +0 -12
  222. package/dist/src/ts-morph-utils/name-builders/variables.d.ts.map +0 -1
  223. package/dist/src/ts-morph-utils/name-builders/variables.js +0 -35
  224. package/dist/src/ts-morph-utils/name-builders/variables.js.map +0 -1
  225. package/dist/src/ts-morph-utils/templates/drive-editor.d.ts +0 -5
  226. package/dist/src/ts-morph-utils/templates/drive-editor.d.ts.map +0 -1
  227. package/dist/src/ts-morph-utils/templates/drive-editor.js +0 -211
  228. package/dist/src/ts-morph-utils/templates/drive-editor.js.map +0 -1
@@ -1,76 +1,85 @@
1
- import { tsx } from "@tmpl/core";
1
+ import { buildTsMorphProject, formatSourceFileWithPrettier, getOrCreateSourceFile, } from "@powerhousedao/codegen/ts-morph";
2
+ import { createDocumentFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/CreateDocument.js";
3
+ import { driveEditorDriveContentsFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/DriveContents.js";
4
+ import { driveExplorerFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/DriveExplorer.js";
5
+ import { emptyStateFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/EmptyState.js";
6
+ import { driveEditorFilesFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/Files.js";
7
+ import { driveEditorFoldersFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/Folders.js";
8
+ import { folderTreeFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/FolderTree.js";
9
+ import { driveExplorerNavigationBreadcrumbsFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/components/NavigationBreadcrumbs.js";
10
+ import { driveEditorConfigFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/config.js";
11
+ import { driveEditorEditorFileTemplate } from "@powerhousedao/codegen/ts-morph/templates/drive-editor/editor.js";
2
12
  import path from "path";
3
- import { VariableDeclarationKind } from "ts-morph";
4
- import { buildNodePrinter, formatSourceFileWithPrettier, getOrCreateSourceFile, } from "../file-utils.js";
5
- import { getDocumentModelFilePaths, getEditorFilePaths, } from "../name-builders/get-file-paths.js";
6
- import { buildArrayLiteralWithStringElements, buildClassNameAttribute, buildFunctionCall, buildJsxElement, buildJsxSpreadAttribute, buildReturn, buildSelfClosingJsxElement, } from "../syntax-builders.js";
7
- import { getObjectLiteral } from "../syntax-getters.js";
8
- import { createDocumentFileTemplate, driveExplorerFileTemplate, emptyStateFileTemplate, folderTreeFileTemplate, } from "../templates/drive-editor.js";
9
- import { buildTsMorphProject } from "../ts-morph-project.js";
10
- import { makeEditorModuleFile } from "./document-editor.js";
11
- import { makeEditorsModulesFile } from "./editor-common.js";
13
+ import {} from "ts-morph";
14
+ import { makeEditorModuleFile } from "./editor-common.js";
15
+ import { makeEditorsModulesFile } from "./module-files.js";
16
+ /** Generates a drive editor with the configs for `allowedDocumentModelIds` and `isDragAndDropEnabled` */
12
17
  export function tsMorphGenerateDriveEditor({ projectDir, editorDir, editorName, editorId, allowedDocumentModelIds, isDragAndDropEnabled, }) {
13
- const { documentModelsSourceFilesPath } = getDocumentModelFilePaths(projectDir);
14
- const { editorSourceFilesPath, ...editorFilePaths } = getEditorFilePaths(projectDir, editorDir);
18
+ const documentModelsSourceFilesPath = path.join(projectDir, "document-models/**/*");
19
+ const editorsDirPath = path.join(projectDir, "editors");
20
+ const editorSourceFilesPath = path.join(editorsDirPath, "/**/*");
21
+ const editorDirPath = path.join(editorsDirPath, editorDir);
22
+ const editorComponentsDirPath = path.join(editorDirPath, "components");
15
23
  const project = buildTsMorphProject(projectDir);
16
24
  project.addSourceFilesAtPaths(documentModelsSourceFilesPath);
17
25
  project.addSourceFilesAtPaths(editorSourceFilesPath);
18
26
  makeNavigationBreadcrumbsFile({
19
27
  project,
20
- ...editorFilePaths,
28
+ editorComponentsDirPath,
21
29
  });
22
30
  makeCreateDocumentFile({
23
31
  project,
24
- ...editorFilePaths,
32
+ editorComponentsDirPath,
25
33
  });
26
34
  makeEmptyStateFile({
27
35
  project,
28
- ...editorFilePaths,
36
+ editorComponentsDirPath,
29
37
  });
30
38
  makeFoldersFile({
31
39
  project,
32
- ...editorFilePaths,
40
+ editorComponentsDirPath,
33
41
  });
34
42
  makeFolderTreeFile({
35
43
  project,
36
- ...editorFilePaths,
44
+ editorComponentsDirPath,
37
45
  });
38
46
  makeFilesFile({
39
47
  project,
40
- ...editorFilePaths,
48
+ editorComponentsDirPath,
41
49
  });
42
50
  makeDriveExplorerFile({
43
51
  project,
44
- ...editorFilePaths,
52
+ editorComponentsDirPath,
45
53
  });
46
54
  makeDriveContentsFile({
47
55
  project,
48
- ...editorFilePaths,
56
+ editorComponentsDirPath,
49
57
  });
50
58
  makeDriveEditorComponent({
51
59
  project,
52
- ...editorFilePaths,
60
+ editorDirPath,
53
61
  });
54
62
  makeDriveEditorConfigFile({
55
63
  project,
56
64
  allowedDocumentModelIds,
57
65
  isDragAndDropEnabled,
58
- ...editorFilePaths,
66
+ editorDirPath,
59
67
  });
60
68
  makeEditorModuleFile({
61
69
  project,
62
70
  editorName,
63
71
  editorId,
72
+ editorDirPath,
64
73
  documentModelId: "powerhouse/document-drive",
65
- ...editorFilePaths,
66
74
  });
67
75
  makeEditorsModulesFile(project, projectDir);
68
76
  project.saveSync();
69
77
  }
70
- export function makeDriveEditorComponent({ project, editorFilePath, }) {
71
- const { alreadyExists, sourceFile: driveEditorComponentSourceFile } = getOrCreateSourceFile(project, editorFilePath);
78
+ function makeDriveEditorComponent({ project, editorDirPath, }) {
79
+ const filePath = path.join(editorDirPath, "editor.tsx");
80
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
72
81
  if (alreadyExists) {
73
- const editorFunction = driveEditorComponentSourceFile.getFunction("Editor");
82
+ const editorFunction = sourceFile.getFunction("Editor");
74
83
  if (editorFunction) {
75
84
  if (!editorFunction.isDefaultExport()) {
76
85
  editorFunction.setIsDefaultExport(true);
@@ -78,264 +87,87 @@ export function makeDriveEditorComponent({ project, editorFilePath, }) {
78
87
  return;
79
88
  }
80
89
  }
81
- driveEditorComponentSourceFile.replaceWithText("");
82
- const printNode = buildNodePrinter(driveEditorComponentSourceFile);
83
- const importDeclarations = [
84
- {
85
- namedImports: ["useSetPHDriveEditorConfig"],
86
- moduleSpecifier: "@powerhousedao/reactor-browser",
87
- },
88
- {
89
- namedImports: ["EditorProps"],
90
- moduleSpecifier: "document-model",
91
- isTypeOnly: true,
92
- },
93
- {
94
- namedImports: ["DriveExplorer"],
95
- moduleSpecifier: "./components/DriveExplorer.js",
96
- },
97
- {
98
- namedImports: ["editorConfig"],
99
- moduleSpecifier: "./config.js",
100
- },
101
- ];
102
- driveEditorComponentSourceFile.addImportDeclarations(importDeclarations);
103
- const useSetPHDriveEditorConfigHookCall = buildFunctionCall({
104
- functionName: "useSetPHDriveEditorConfig",
105
- argumentsArray: ["editorConfig"],
106
- });
107
- const driveExplorerComponent = buildSelfClosingJsxElement("DriveExplorer", [
108
- buildJsxSpreadAttribute("props"),
109
- ]);
110
- const returnStatement = buildReturn(driveExplorerComponent);
111
- const statements = [useSetPHDriveEditorConfigHookCall, returnStatement].map(printNode);
112
- driveEditorComponentSourceFile.addFunction({
113
- name: "Editor",
114
- isDefaultExport: true,
115
- parameters: [{ name: "props", type: "EditorProps" }],
116
- statements,
117
- docs: ["Implement your drive explorer behavior here"],
118
- });
119
- formatSourceFileWithPrettier(driveEditorComponentSourceFile);
90
+ const template = driveEditorEditorFileTemplate();
91
+ sourceFile.replaceWithText(template);
92
+ formatSourceFileWithPrettier(sourceFile);
120
93
  }
121
- export function makeDriveEditorConfigFile({ project, editorConfigFilePath, allowedDocumentModelIds, isDragAndDropEnabled, }) {
122
- const { sourceFile: driveEditorConfigSourceFile } = getOrCreateSourceFile(project, editorConfigFilePath);
123
- driveEditorConfigSourceFile.replaceWithText("");
124
- driveEditorConfigSourceFile.addImportDeclaration({
125
- moduleSpecifier: "@powerhousedao/reactor-browser",
126
- namedImports: ["PHDriveEditorConfig"],
127
- isTypeOnly: true,
128
- });
129
- const printNode = buildNodePrinter(driveEditorConfigSourceFile);
130
- const configObjectVariableStatement = driveEditorConfigSourceFile.addVariableStatement({
131
- docs: ["Editor config for the AtlasDriveExplorer"],
132
- declarationKind: VariableDeclarationKind.Const,
133
- isExported: true,
134
- declarations: [
135
- {
136
- name: "editorConfig",
137
- type: "PHDriveEditorConfig",
138
- initializer: "{}",
139
- },
140
- ],
141
- });
142
- const objectLiteral = getObjectLiteral(configObjectVariableStatement);
143
- if (!objectLiteral) {
144
- throw new Error("Object literal not found");
145
- }
146
- objectLiteral.addPropertyAssignment({
147
- name: "isDragAndDropEnabled",
148
- initializer: isDragAndDropEnabled ? "true" : "false",
149
- });
150
- objectLiteral.addPropertyAssignment({
151
- name: "allowedDocumentTypes",
152
- initializer: printNode(buildArrayLiteralWithStringElements(allowedDocumentModelIds)),
153
- });
94
+ function makeDriveEditorConfigFile({ project, editorDirPath, allowedDocumentModelIds, isDragAndDropEnabled, }) {
95
+ const filePath = path.join(editorDirPath, "config.ts");
96
+ const { sourceFile } = getOrCreateSourceFile(project, filePath);
97
+ const allowedDocumentTypesString = JSON.stringify(allowedDocumentModelIds);
98
+ const isDragAndDropEnabledString = isDragAndDropEnabled ? "true" : "false";
99
+ const template = driveEditorConfigFileTemplate({
100
+ isDragAndDropEnabledString,
101
+ allowedDocumentTypesString,
102
+ });
103
+ sourceFile.replaceWithText(template);
104
+ formatSourceFileWithPrettier(sourceFile);
154
105
  }
155
- export function makeDriveContentsFile({ project, driveContentsFilePath, }) {
156
- const { alreadyExists, sourceFile: driveContentsSourceFile } = getOrCreateSourceFile(project, driveContentsFilePath);
106
+ function makeDriveContentsFile({ project, editorComponentsDirPath, }) {
107
+ const filePath = path.join(editorComponentsDirPath, "DriveContents.tsx");
108
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
157
109
  if (alreadyExists)
158
110
  return;
159
- const printNode = buildNodePrinter(driveContentsSourceFile);
160
- const importDeclarations = [
161
- {
162
- namedImports: ["CreateDocument"],
163
- moduleSpecifier: "./CreateDocument.js",
164
- },
165
- {
166
- namedImports: ["EmptyState"],
167
- moduleSpecifier: "./EmptyState.js",
168
- },
169
- {
170
- namedImports: ["Files"],
171
- moduleSpecifier: "./Files.js",
172
- },
173
- {
174
- namedImports: ["Folders"],
175
- moduleSpecifier: "./Folders.js",
176
- },
177
- {
178
- namedImports: ["NavigationBreadcrumbs"],
179
- moduleSpecifier: "./NavigationBreadcrumbs.js",
180
- },
181
- ];
182
- driveContentsSourceFile.addImportDeclarations(importDeclarations);
183
- const navigationBreadcrumbs = buildSelfClosingJsxElement("NavigationBreadcrumbs");
184
- const folders = buildSelfClosingJsxElement("Folders");
185
- const files = buildSelfClosingJsxElement("Files");
186
- const emptyState = buildSelfClosingJsxElement("EmptyState");
187
- const createDocument = buildSelfClosingJsxElement("CreateDocument");
188
- const wrapperDiv = buildJsxElement("div", [navigationBreadcrumbs, folders, files, emptyState, createDocument], [buildClassNameAttribute("space-y-6 px-6")]);
189
- const returnStatement = buildReturn(wrapperDiv);
190
- const statements = [returnStatement].map(printNode);
191
- driveContentsSourceFile.addFunction({
192
- name: "DriveContents",
193
- isExported: true,
194
- docs: ["Shows the documents and folders in the selected drive"],
195
- parameters: [],
196
- statements,
197
- });
198
- formatSourceFileWithPrettier(driveContentsSourceFile);
111
+ const template = driveEditorDriveContentsFileTemplate();
112
+ sourceFile.replaceWithText(template);
113
+ formatSourceFileWithPrettier(sourceFile);
199
114
  }
200
- export function makeNavigationBreadcrumbsFile({ project, editorComponentsDirPath, }) {
201
- const navigationBreadcrumbsFilePath = path.join(editorComponentsDirPath, "NavigationBreadcrumbs.tsx");
202
- const { alreadyExists, sourceFile: navigationBreadcrumbsSourceFile } = getOrCreateSourceFile(project, navigationBreadcrumbsFilePath);
115
+ function makeNavigationBreadcrumbsFile({ project, editorComponentsDirPath, }) {
116
+ const filePath = path.join(editorComponentsDirPath, "NavigationBreadcrumbs.tsx");
117
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
203
118
  if (alreadyExists)
204
119
  return;
205
- const printNode = buildNodePrinter(navigationBreadcrumbsSourceFile);
206
- const importDeclarations = [
207
- {
208
- namedImports: ["Breadcrumbs"],
209
- moduleSpecifier: "@powerhousedao/design-system/connect",
210
- },
211
- ];
212
- navigationBreadcrumbsSourceFile.addImportDeclarations(importDeclarations);
213
- const breadcrumbs = buildSelfClosingJsxElement("Breadcrumbs");
214
- const wrapperDiv = buildJsxElement("div", [breadcrumbs], [buildClassNameAttribute("border-b border-gray-200 pb-3 space-y-3")]);
215
- const returnStatement = buildReturn(wrapperDiv);
216
- const statements = [returnStatement].map(printNode);
217
- navigationBreadcrumbsSourceFile.addFunction({
218
- name: "NavigationBreadcrumbs",
219
- isExported: true,
220
- docs: ["Shows the navigation breadcrumbs for the selected drive or folder"],
221
- parameters: [],
222
- statements,
223
- });
224
- formatSourceFileWithPrettier(navigationBreadcrumbsSourceFile);
120
+ sourceFile.replaceWithText(driveExplorerNavigationBreadcrumbsFileTemplate());
121
+ formatSourceFileWithPrettier(sourceFile);
225
122
  }
226
- export function makeFoldersFile({ project, editorComponentsDirPath, }) {
123
+ function makeFoldersFile({ project, editorComponentsDirPath, }) {
227
124
  const foldersFilePath = path.join(editorComponentsDirPath, "Folders.tsx");
228
- const { alreadyExists, sourceFile: foldersSourceFile } = getOrCreateSourceFile(project, foldersFilePath);
125
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, foldersFilePath);
229
126
  if (alreadyExists)
230
127
  return;
231
- const importDeclarations = [
232
- {
233
- namedImports: ["FolderItem"],
234
- moduleSpecifier: "@powerhousedao/design-system/connect",
235
- },
236
- {
237
- namedImports: ["useNodesInSelectedDriveOrFolder", "isFolderNodeKind"],
238
- moduleSpecifier: "@powerhousedao/reactor-browser",
239
- },
240
- ];
241
- foldersSourceFile.addImportDeclarations(importDeclarations);
242
- foldersSourceFile.addFunction({
243
- name: "Folders",
244
- isExported: true,
245
- docs: ["Shows the folders in the selected drive or folder"],
246
- parameters: [],
247
- statements: [
248
- tsx `
249
- const nodes = useNodesInSelectedDriveOrFolder();
250
- const folderNodes = nodes.filter((n) => isFolderNodeKind(n));
251
- const hasFolders = folderNodes.length > 0;
252
- if (!hasFolders) return null;
253
-
254
- return (
255
- <div>
256
- <h3 className="mb-2 text-sm font-bold text-gray-600">Folders</h3>
257
- <div className="flex flex-wrap gap-4">
258
- {folderNodes.map((folderNode) => (
259
- <FolderItem key={folderNode.id} folderNode={folderNode} />
260
- ))}
261
- </div>
262
- </div>
263
- );`.raw,
264
- ],
265
- });
266
- formatSourceFileWithPrettier(foldersSourceFile);
128
+ const template = driveEditorFoldersFileTemplate();
129
+ sourceFile.replaceWithText(template);
130
+ formatSourceFileWithPrettier(sourceFile);
267
131
  }
268
- export function makeFilesFile({ project, editorComponentsDirPath, }) {
132
+ function makeFilesFile({ project, editorComponentsDirPath, }) {
269
133
  const filesFilePath = path.join(editorComponentsDirPath, "Files.tsx");
270
- const { alreadyExists, sourceFile: filesSourceFile } = getOrCreateSourceFile(project, filesFilePath);
134
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filesFilePath);
271
135
  if (alreadyExists)
272
136
  return;
273
- const importDeclarations = [
274
- {
275
- namedImports: ["FileItem"],
276
- moduleSpecifier: "@powerhousedao/design-system/connect",
277
- },
278
- {
279
- namedImports: ["useNodesInSelectedDriveOrFolder", "isFileNodeKind"],
280
- moduleSpecifier: "@powerhousedao/reactor-browser",
281
- },
282
- ];
283
- filesSourceFile.addImportDeclarations(importDeclarations);
284
- const statements = [
285
- tsx `const nodes = useNodesInSelectedDriveOrFolder();`.raw,
286
- tsx `const fileNodes = nodes.filter((n) => isFileNodeKind(n));`.raw,
287
- tsx `const hasFiles = fileNodes.length > 0;`.raw,
288
- tsx `if (!hasFiles) return null;`.raw,
289
- tsx `return (
290
- <div>
291
- <h3 className="mb-2 text-sm font-semibold text-gray-600">Documents</h3>
292
- <div className="flex flex-wrap gap-4">
293
- {fileNodes.map((fileNode) => (
294
- <FileItem key={fileNode.id} fileNode={fileNode} />
295
- ))}
296
- </div>
297
- </div>
298
- );`.raw,
299
- ];
300
- filesSourceFile.addFunction({
301
- name: "Files",
302
- isExported: true,
303
- docs: ["Shows the files in the selected drive or folder"],
304
- parameters: [],
305
- statements,
306
- });
307
- formatSourceFileWithPrettier(filesSourceFile);
137
+ const template = driveEditorFilesFileTemplate();
138
+ sourceFile.replaceWithText(template);
139
+ formatSourceFileWithPrettier(sourceFile);
308
140
  }
309
141
  function makeDriveExplorerFile({ project, editorComponentsDirPath, }) {
310
- const driveExplorerFilePath = path.join(editorComponentsDirPath, "DriveExplorer.tsx");
311
- const { alreadyExists, sourceFile: driveExplorerSourceFile } = getOrCreateSourceFile(project, driveExplorerFilePath);
142
+ const filePath = path.join(editorComponentsDirPath, "DriveExplorer.tsx");
143
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
312
144
  if (alreadyExists)
313
145
  return;
314
- driveExplorerSourceFile.replaceWithText(driveExplorerFileTemplate);
315
- formatSourceFileWithPrettier(driveExplorerSourceFile);
146
+ sourceFile.replaceWithText(driveExplorerFileTemplate);
147
+ formatSourceFileWithPrettier(sourceFile);
316
148
  }
317
- export function makeFolderTreeFile({ project, editorComponentsDirPath, }) {
318
- const folderTreeFilePath = path.join(editorComponentsDirPath, "FolderTree.tsx");
319
- const { alreadyExists, sourceFile: folderTreeSourceFile } = getOrCreateSourceFile(project, folderTreeFilePath);
149
+ function makeFolderTreeFile({ project, editorComponentsDirPath, }) {
150
+ const filePath = path.join(editorComponentsDirPath, "FolderTree.tsx");
151
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
320
152
  if (alreadyExists)
321
153
  return;
322
- folderTreeSourceFile.replaceWithText(folderTreeFileTemplate);
323
- formatSourceFileWithPrettier(folderTreeSourceFile);
154
+ sourceFile.replaceWithText(folderTreeFileTemplate);
155
+ formatSourceFileWithPrettier(sourceFile);
324
156
  }
325
- export function makeEmptyStateFile({ project, editorComponentsDirPath, }) {
326
- const emptyStateFilePath = path.join(editorComponentsDirPath, "EmptyState.tsx");
327
- const { alreadyExists, sourceFile: emptyStateSourceFile } = getOrCreateSourceFile(project, emptyStateFilePath);
157
+ function makeEmptyStateFile({ project, editorComponentsDirPath, }) {
158
+ const filePath = path.join(editorComponentsDirPath, "EmptyState.tsx");
159
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
328
160
  if (alreadyExists)
329
161
  return;
330
- emptyStateSourceFile.replaceWithText(emptyStateFileTemplate);
331
- formatSourceFileWithPrettier(emptyStateSourceFile);
162
+ sourceFile.replaceWithText(emptyStateFileTemplate);
163
+ formatSourceFileWithPrettier(sourceFile);
332
164
  }
333
- export function makeCreateDocumentFile({ project, editorComponentsDirPath, }) {
334
- const createDocumentFilePath = path.join(editorComponentsDirPath, "CreateDocument.tsx");
335
- const { alreadyExists, sourceFile: createDocumentSourceFile } = getOrCreateSourceFile(project, createDocumentFilePath);
165
+ function makeCreateDocumentFile({ project, editorComponentsDirPath, }) {
166
+ const filePath = path.join(editorComponentsDirPath, "CreateDocument.tsx");
167
+ const { alreadyExists, sourceFile } = getOrCreateSourceFile(project, filePath);
336
168
  if (alreadyExists)
337
169
  return;
338
- createDocumentSourceFile.replaceWithText(createDocumentFileTemplate);
339
- formatSourceFileWithPrettier(createDocumentSourceFile);
170
+ sourceFile.replaceWithText(createDocumentFileTemplate);
171
+ formatSourceFileWithPrettier(sourceFile);
340
172
  }
341
173
  //# sourceMappingURL=drive-editor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drive-editor.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/drive-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAgB,MAAM,UAAU,CAAC;AACjE,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mCAAmC,EACnC,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,WAAW,EACX,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,0BAA0B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orsModulesFile(project: Project, projectDir: string): void;
2
+ type MakeEditorModuleFileArgs = {
3
+ project: Project;
4
+ editorName: string;
5
+ editorId: string;
6
+ documentModelId?: string;
7
+ editorDirPath: string;
8
+ legacyMultipleDocumentTypes?: string[];
9
+ };
10
+ /** Generates the `module.ts` file for a document editor or drive editor */
11
+ export declare function makeEditorModuleFile({ project, editorDirPath, editorName, documentModelId, editorId, legacyMultipleDocumentTypes, }: MakeEditorModuleFileArgs): void;
12
+ export {};
3
13
  //# sourceMappingURL=editor-common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor-common.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/editor-common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAaxC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,QAU1E"}
1
+ {"version":3,"file":"editor-common.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/editor-common.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC;CACxC,CAAC;AACF,2EAA2E;AAC3E,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,aAAa,EACb,UAAU,EACV,eAAe,EACf,QAAQ,EACR,2BAA2B,GAC5B,EAAE,wBAAwB,QAwB1B"}
@@ -1,15 +1,26 @@
1
- import { editorModuleOutputFileName, editorModuleTypeName, editorModuleVariableName, editorModuleVariableType, } from "../constants.js";
2
- import { buildEditorsDirPath, buildEditorSourceFilesPath, } from "../name-builders/editor-files.js";
3
- import { makeModulesFile } from "./module-files.js";
4
- export function makeEditorsModulesFile(project, projectDir) {
5
- makeModulesFile({
6
- project,
7
- modulesDirPath: buildEditorsDirPath(projectDir),
8
- modulesSourceFilesPath: buildEditorSourceFilesPath(projectDir),
9
- outputFileName: editorModuleOutputFileName,
10
- typeName: editorModuleTypeName,
11
- variableName: editorModuleVariableName,
12
- variableType: editorModuleVariableType,
1
+ import { pascalCase } from "change-case";
2
+ import path from "path";
3
+ import { documentEditorModuleFileTemplate } from "../templates/document-editor/module.js";
4
+ import { getOrCreateSourceFile } from "../ts-morph-project.js";
5
+ /** Generates the `module.ts` file for a document editor or drive editor */
6
+ export function makeEditorModuleFile({ project, editorDirPath, editorName, documentModelId, editorId, legacyMultipleDocumentTypes, }) {
7
+ if (documentModelId && !!legacyMultipleDocumentTypes) {
8
+ throw new Error("Cannot specify both documentModelId and legacyMultipleDocumentTypes");
9
+ }
10
+ const filePath = path.join(editorDirPath, "module.ts");
11
+ const { sourceFile } = getOrCreateSourceFile(project, filePath);
12
+ sourceFile.replaceWithText("");
13
+ const pascalCaseEditorName = pascalCase(editorName);
14
+ const documentTypes = documentModelId
15
+ ? `["${documentModelId}"]`
16
+ : JSON.stringify(legacyMultipleDocumentTypes);
17
+ const template = documentEditorModuleFileTemplate({
18
+ editorName,
19
+ editorId,
20
+ pascalCaseEditorName,
21
+ documentTypes,
13
22
  });
23
+ sourceFile.replaceWithText(template);
24
+ project.saveSync();
14
25
  }
15
26
  //# sourceMappingURL=editor-common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor-common.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/editor-common.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,UAAkB;IACzE,eAAe,CAAC;QACd,OAAO;QACP,cAAc,EAAE,mBAAmB,CAAC,UAAU,CAAC;QAC/C,sBAAsB,EAAE,0BAA0B,CAAC,UAAU,CAAC;QAC9D,cAAc,EAAE,0BAA0B;QAC1C,QAAQ,EAAE,oBAAoB;QAC9B,YAAY,EAAE,wBAAwB;QACtC,YAAY,EAAE,wBAAwB;KACvC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"editor-common.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/editor-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAU/D,2EAA2E;AAC3E,MAAM,UAAU,oBAAoB,CAAC,EACnC,OAAO,EACP,aAAa,EACb,UAAU,EACV,eAAe,EACf,QAAQ,EACR,2BAA2B,GACF;IACzB,IAAI,eAAe,IAAI,CAAC,CAAC,2BAA2B,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACvD,MAAM,EAAE,UAAU,EAAE,GAAG,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAEhE,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,oBAAoB,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,eAAe;QACnC,CAAC,CAAC,KAAK,eAAe,IAAI;QAC1B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;IAEhD,MAAM,QAAQ,GAAG,gCAAgC,CAAC;QAChD,UAAU;QACV,QAAQ;QACR,oBAAoB;QACpB,aAAa;KACd,CAAC,CAAC;IACH,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,CAAC,QAAQ,EAAE,CAAC;AACrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/index-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,KAAK,uBAAuB,GAAG;IAC7B,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;QAClC,eAAe,EAAE,MAAM,CAAC;KACzB,EAAE,CAAC;CACL,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,cAAc,EACd,OAAO,GACR,EAAE,uBAAuB,QAyBzB"}
1
+ {"version":3,"file":"index-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/index-files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,KAAK,uBAAuB,GAAG;IAC7B,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;QAClC,eAAe,EAAE,MAAM,CAAC;KACzB,EAAE,CAAC;CACL,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,cAAc,EACd,OAAO,GACR,EAAE,uBAAuB,QAsBzB"}
@@ -1,9 +1,9 @@
1
- import { buildModulesOutputFilePath } from "../name-builders/common-files.js";
1
+ import path from "node:path";
2
2
  /**
3
3
  * Makes a legacy index.ts file for the modules file which exports the modules as individual exports instead of an array of named exports.
4
4
  */
5
5
  export function makeLegacyIndexFile({ project, modulesDirPath, modules, }) {
6
- const indexSourceFilePath = buildModulesOutputFilePath(modulesDirPath, "index.ts");
6
+ const indexSourceFilePath = path.join(modulesDirPath, "index.ts");
7
7
  // get the source file for the index.ts file if it exists
8
8
  let indexSourceFile = project.getSourceFile(indexSourceFilePath);
9
9
  // if the index.ts file doesn't exist, create it
@@ -1 +1 @@
1
- {"version":3,"file":"index-files.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/index-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAc9E;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,OAAO,EACP,cAAc,EACd,OAAO,GACiB;IACxB,MAAM,mBAAmB,GAAG,0BAA0B,CACpD,cAAc,EACd,UAAU,CACX,CAAC;IAEF,yDAAyD;IACzD,IAAI,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACjE,gDAAgD;IAChD,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;SAAM,CAAC;QACN,eAAe,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAED,eAAe,CAAC,qBAAqB,CACnC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;QACpE,YAAY,EAAE;YACZ,aAAa;gBACX,CAAC,CAAC,GAAG,eAAe,OAAO,aAAa,EAAE;gBAC1C,CAAC,CAAC,eAAe;SACpB;QACD,eAAe;KAChB,CAAC,CAAC,CACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index-files.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/index-files.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAe7B;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,OAAO,EACP,cAAc,EACd,OAAO,GACiB;IACxB,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IAElE,yDAAyD;IACzD,IAAI,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACjE,gDAAgD;IAChD,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;SAAM,CAAC;QACN,eAAe,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAED,eAAe,CAAC,qBAAqB,CACnC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;QACpE,YAAY,EAAE;YACZ,aAAa;gBACX,CAAC,CAAC,GAAG,eAAe,OAAO,aAAa,EAAE;gBAC1C,CAAC,CAAC,eAAe;SACpB;QACD,eAAe;KAChB,CAAC,CAAC,CACJ,CAAC;AACJ,CAAC"}
@@ -21,5 +21,12 @@ type MakeModuleFileArgs = {
21
21
  * Makes a file which exports the modules from the module.ts files in the given directory as a variable declaration.
22
22
  */
23
23
  export declare function makeModulesFile({ project, modulesDirPath, modulesSourceFilesPath, outputFileName, typeName, variableName, variableType, shouldMakeLegacyIndexFile, }: MakeModuleFileArgs): void;
24
+ /** Generates the `document-models.ts` file which exports the document models defined in each document model dir's `module.ts` file */
25
+ export declare function makeDocumentModelModulesFile({ project, projectDir, }: {
26
+ project: Project;
27
+ projectDir: string;
28
+ }): void;
29
+ /** Generates the `editors.ts` file which exports the editors defined in each editor dir's `module.ts` file */
30
+ export declare function makeEditorsModulesFile(project: Project, projectDir: string): void;
24
31
  export {};
25
32
  //# sourceMappingURL=module-files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/module-files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAMxC,KAAK,kBAAkB,GAAG;IACxB,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uGAAuG;IACvG,cAAc,EAAE,MAAM,CAAC;IACvB,iHAAiH;IACjH,QAAQ,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,YAAY,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AACF;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,yBAAgC,GACjC,EAAE,kBAAkB,QAoHpB"}
1
+ {"version":3,"file":"module-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/module-files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,kBAAkB,GAAG;IACxB,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uGAAuG;IACvG,cAAc,EAAE,MAAM,CAAC;IACvB,iHAAiH;IACjH,QAAQ,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,YAAY,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AACF;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,yBAAgC,GACjC,EAAE,kBAAkB,QAkHpB;AAED,sIAAsI;AACtI,wBAAgB,4BAA4B,CAAC,EAC3C,OAAO,EACP,UAAU,GACX,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,QAeA;AAED,8GAA8G;AAC9G,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,QAY1E"}