@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.
- package/dist/src/codegen/.hygen/templates/powerhouse/generate-editor/editor.esm.t +2 -0
- package/dist/src/codegen/generate.d.ts.map +1 -1
- package/dist/src/codegen/generate.js +4 -3
- package/dist/src/codegen/generate.js.map +1 -1
- package/dist/src/codegen/hygen.d.ts.map +1 -1
- package/dist/src/codegen/hygen.js +1 -4
- package/dist/src/codegen/hygen.js.map +1 -1
- package/dist/src/ts-morph-utils/constants.d.ts +4 -11
- package/dist/src/ts-morph-utils/constants.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/constants.js +4 -11
- package/dist/src/ts-morph-utils/constants.js.map +1 -1
- package/dist/src/ts-morph-utils/document-type-metadata.d.ts +15 -0
- package/dist/src/ts-morph-utils/document-type-metadata.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/document-type-metadata.js +67 -0
- package/dist/src/ts-morph-utils/document-type-metadata.js.map +1 -0
- package/dist/src/ts-morph-utils/file-builders/document-editor.d.ts +3 -19
- package/dist/src/ts-morph-utils/file-builders/document-editor.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-editor.js +25 -239
- package/dist/src/ts-morph-utils/file-builders/document-editor.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.d.ts +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.js +18 -20
- package/dist/src/ts-morph-utils/file-builders/document-model/gen-dir.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.d.ts +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.js +6 -6
- package/dist/src/ts-morph-utils/file-builders/document-model/root-dir.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.d.ts +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.js +6 -7
- package/dist/src/ts-morph-utils/file-builders/document-model/src-dir.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/upgrades-dir.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/upgrades-dir.js +2 -3
- package/dist/src/ts-morph-utils/file-builders/document-model/upgrades-dir.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model.d.ts +6 -6
- package/dist/src/ts-morph-utils/file-builders/document-model.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/document-model.js +92 -109
- package/dist/src/ts-morph-utils/file-builders/document-model.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/drive-editor.d.ts +2 -49
- package/dist/src/ts-morph-utils/file-builders/drive-editor.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/drive-editor.js +89 -257
- package/dist/src/ts-morph-utils/file-builders/drive-editor.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/editor-common.d.ts +11 -1
- package/dist/src/ts-morph-utils/file-builders/editor-common.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/editor-common.js +23 -12
- package/dist/src/ts-morph-utils/file-builders/editor-common.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/index-files.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/index-files.js +2 -2
- package/dist/src/ts-morph-utils/file-builders/index-files.js.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/module-files.d.ts +7 -0
- package/dist/src/ts-morph-utils/file-builders/module-files.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/file-builders/module-files.js +36 -8
- package/dist/src/ts-morph-utils/file-builders/module-files.js.map +1 -1
- package/dist/src/ts-morph-utils/format-with-prettier.d.ts +4 -0
- package/dist/src/ts-morph-utils/format-with-prettier.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/format-with-prettier.js +16 -0
- package/dist/src/ts-morph-utils/format-with-prettier.js.map +1 -0
- package/dist/src/ts-morph-utils/index.d.ts +8 -0
- package/dist/src/ts-morph-utils/index.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/index.js +7 -0
- package/dist/src/ts-morph-utils/index.js.map +1 -0
- package/dist/src/ts-morph-utils/name-builders/get-variable-names.d.ts +15 -4
- package/dist/src/ts-morph-utils/name-builders/get-variable-names.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/name-builders/get-variable-names.js +11 -13
- package/dist/src/ts-morph-utils/name-builders/get-variable-names.js.map +1 -1
- package/dist/src/ts-morph-utils/name-builders/index.d.ts +2 -0
- package/dist/src/ts-morph-utils/name-builders/index.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/name-builders/index.js +2 -0
- package/dist/src/ts-morph-utils/name-builders/index.js.map +1 -0
- package/dist/src/ts-morph-utils/syntax-builders.d.ts +5 -72
- package/dist/src/ts-morph-utils/syntax-builders.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/syntax-builders.js +24 -167
- package/dist/src/ts-morph-utils/syntax-builders.js.map +1 -1
- package/dist/src/ts-morph-utils/syntax-getters.d.ts +6 -8
- package/dist/src/ts-morph-utils/syntax-getters.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/syntax-getters.js +9 -34
- package/dist/src/ts-morph-utils/syntax-getters.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-editor/editor.d.ts +5 -0
- package/dist/src/ts-morph-utils/templates/document-editor/editor.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/document-editor/editor.js +80 -0
- package/dist/src/ts-morph-utils/templates/document-editor/editor.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/document-editor/module.d.ts +7 -0
- package/dist/src/ts-morph-utils/templates/document-editor/module.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/document-editor/module.js +16 -0
- package/dist/src/ts-morph-utils/templates/document-editor/module.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/document-model/actions.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/actions.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/actions.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/actions.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/actions.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/actions.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/creators.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/creators.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/creators.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/document-schema.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/document-schema.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/document-schema.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/document-type.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/document-type.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/document-type.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/index.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/actions.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/actions.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/actions.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/creators.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/creators.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/creators.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/error.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/error.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/error.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/operations.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/operations.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/modules/operations.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/ph-factories.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/ph-factories.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/ph-factories.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/reducer.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/reducer.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/reducer.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/types.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/types.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/types.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/utils.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/utils.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/gen/utils.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/hooks.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/hooks.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/hooks.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/src/tests/document-model.test.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/src/tests/document-model.test.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/src/tests/document-model.test.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/src/tests/module.test.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/src/tests/module.test.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/src/tests/module.test.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/utils.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/utils.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/document-model/utils.js.map +1 -1
- package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.js +58 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/CreateDocument.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.js +24 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveContents.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.js +32 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/DriveExplorer.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.js +19 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/EmptyState.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.js +30 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Files.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.js +108 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/FolderTree.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.js +28 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/Folders.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.js +14 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/components/NavigationBreadcrumbs.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/config.d.ts +5 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/config.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/config.js +11 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/config.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/editor.d.ts +2 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/editor.d.ts.map +1 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/editor.js +18 -0
- package/dist/src/ts-morph-utils/templates/drive-editor/editor.js.map +1 -0
- package/dist/src/ts-morph-utils/templates/utils.d.ts +1 -1
- package/dist/src/ts-morph-utils/templates/utils.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/templates/utils.js.map +1 -1
- package/dist/src/ts-morph-utils/ts-morph-project.d.ts +24 -1
- package/dist/src/ts-morph-utils/ts-morph-project.d.ts.map +1 -1
- package/dist/src/ts-morph-utils/ts-morph-project.js +52 -4
- package/dist/src/ts-morph-utils/ts-morph-project.js.map +1 -1
- package/dist/src/ts-morph-utils/types.d.ts +56 -24
- package/dist/src/ts-morph-utils/types.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -9
- package/dist/src/ts-morph-utils/file-builders/document-model/types.d.ts +0 -32
- package/dist/src/ts-morph-utils/file-builders/document-model/types.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/file-builders/document-model/types.js +0 -2
- package/dist/src/ts-morph-utils/file-builders/document-model/types.js.map +0 -1
- package/dist/src/ts-morph-utils/file-builders/types.d.ts +0 -13
- package/dist/src/ts-morph-utils/file-builders/types.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/file-builders/types.js +0 -2
- package/dist/src/ts-morph-utils/file-builders/types.js.map +0 -1
- package/dist/src/ts-morph-utils/file-utils.d.ts +0 -28
- package/dist/src/ts-morph-utils/file-utils.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/file-utils.js +0 -102
- package/dist/src/ts-morph-utils/file-utils.js.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/common-files.d.ts +0 -5
- package/dist/src/ts-morph-utils/name-builders/common-files.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/common-files.js +0 -15
- package/dist/src/ts-morph-utils/name-builders/common-files.js.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/document-model-files.d.ts +0 -4
- package/dist/src/ts-morph-utils/name-builders/document-model-files.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/document-model-files.js +0 -12
- package/dist/src/ts-morph-utils/name-builders/document-model-files.js.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/editor-files.d.ts +0 -10
- package/dist/src/ts-morph-utils/name-builders/editor-files.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/editor-files.js +0 -37
- package/dist/src/ts-morph-utils/name-builders/editor-files.js.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/get-file-paths.d.ts +0 -4
- package/dist/src/ts-morph-utils/name-builders/get-file-paths.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/get-file-paths.js +0 -21
- package/dist/src/ts-morph-utils/name-builders/get-file-paths.js.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/types.d.ts +0 -19
- package/dist/src/ts-morph-utils/name-builders/types.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/types.js +0 -2
- package/dist/src/ts-morph-utils/name-builders/types.js.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/variables.d.ts +0 -12
- package/dist/src/ts-morph-utils/name-builders/variables.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/name-builders/variables.js +0 -35
- package/dist/src/ts-morph-utils/name-builders/variables.js.map +0 -1
- package/dist/src/ts-morph-utils/templates/drive-editor.d.ts +0 -5
- package/dist/src/ts-morph-utils/templates/drive-editor.d.ts.map +0 -1
- package/dist/src/ts-morph-utils/templates/drive-editor.js +0 -211
- package/dist/src/ts-morph-utils/templates/drive-editor.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/codegen",
|
|
3
|
-
"version": "5.1.0-dev.
|
|
3
|
+
"version": "5.1.0-dev.33",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -11,8 +11,24 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/powerhouse-inc/powerhouse"
|
|
13
13
|
},
|
|
14
|
-
"exports":
|
|
15
|
-
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./ts-morph": {
|
|
20
|
+
"types": "./dist/src/ts-morph-utils/index.d.ts",
|
|
21
|
+
"default": "./dist/src/ts-morph-utils/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./ts-morph/*": {
|
|
24
|
+
"types": "./dist/src/ts-morph-utils/*/index.d.ts",
|
|
25
|
+
"default": "./dist/src/ts-morph-utils/*/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./ts-morph/templates/*.js": {
|
|
28
|
+
"types": "./dist/src/ts-morph-utils/templates/*.d.ts",
|
|
29
|
+
"default": "./dist/src/ts-morph-utils/templates/*.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
16
32
|
"dependencies": {
|
|
17
33
|
"@anatine/zod-mock": "^3.13.3",
|
|
18
34
|
"@faker-js/faker": "^8.3.1",
|
|
@@ -36,11 +52,11 @@
|
|
|
36
52
|
"semver": "^7.7.3",
|
|
37
53
|
"ts-morph": "^26.0.0",
|
|
38
54
|
"zocker": "^3.0.0",
|
|
39
|
-
"@powerhousedao/common": "5.1.0-dev.
|
|
40
|
-
"@powerhousedao/design-system": "5.1.0-dev.
|
|
41
|
-
"@powerhousedao/config": "5.1.0-dev.
|
|
42
|
-
"@powerhousedao/reactor-browser": "5.1.0-dev.
|
|
43
|
-
"document-model": "5.1.0-dev.
|
|
55
|
+
"@powerhousedao/common": "5.1.0-dev.33",
|
|
56
|
+
"@powerhousedao/design-system": "5.1.0-dev.33",
|
|
57
|
+
"@powerhousedao/config": "5.1.0-dev.33",
|
|
58
|
+
"@powerhousedao/reactor-browser": "5.1.0-dev.33",
|
|
59
|
+
"document-model": "5.1.0-dev.33"
|
|
44
60
|
},
|
|
45
61
|
"devDependencies": {
|
|
46
62
|
"@powerhousedao/analytics-engine-core": "^0.5.0",
|
|
@@ -53,7 +69,7 @@
|
|
|
53
69
|
"react-dom": "^19.2.0",
|
|
54
70
|
"vitest": "^3.2.4",
|
|
55
71
|
"zod": "^4.1.13",
|
|
56
|
-
"document-drive": "5.1.0-dev.
|
|
72
|
+
"document-drive": "5.1.0-dev.33"
|
|
57
73
|
},
|
|
58
74
|
"scripts": {
|
|
59
75
|
"tsc": "tsc",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DocumentModelGlobalState, ModuleSpecification } from "document-model";
|
|
2
|
-
import type { Project } from "ts-morph";
|
|
3
|
-
import type { DocumentModelVariableNames } from "../../name-builders/types.js";
|
|
4
|
-
export type GenerateDocumentModelArgs = {
|
|
5
|
-
projectDir: string;
|
|
6
|
-
packageName: string;
|
|
7
|
-
documentModelState: DocumentModelGlobalState;
|
|
8
|
-
useVersioning: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type DocumentModelFileMakerArgs = DocumentModelVariableNames & GenerateDocumentModelArgs & {
|
|
11
|
-
project: Project;
|
|
12
|
-
version: number;
|
|
13
|
-
documentTypeId: string;
|
|
14
|
-
modules: ModuleSpecification[];
|
|
15
|
-
initialGlobalState: string;
|
|
16
|
-
initialLocalState: string;
|
|
17
|
-
hasLocalSchema: boolean;
|
|
18
|
-
documentModelsDirPath: string;
|
|
19
|
-
documentModelDirName: string;
|
|
20
|
-
documentModelDirPath: string;
|
|
21
|
-
documentModelVersionDirName: string;
|
|
22
|
-
documentModelVersionDirPath: string;
|
|
23
|
-
documentModelPackageImportPath: string;
|
|
24
|
-
versionedDocumentModelPackageImportPath: string;
|
|
25
|
-
srcDirPath: string;
|
|
26
|
-
genDirPath: string;
|
|
27
|
-
testsDirPath: string;
|
|
28
|
-
schemaDirPath: string;
|
|
29
|
-
reducersDirPath: string;
|
|
30
|
-
fileExtension: string;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ts-morph-utils/file-builders/document-model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GACjE,yBAAyB,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,2BAA2B,EAAE,MAAM,CAAC;IACpC,2BAA2B,EAAE,MAAM,CAAC;IACpC,8BAA8B,EAAE,MAAM,CAAC;IACvC,uCAAuC,EAAE,MAAM,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/ts-morph-utils/file-builders/document-model/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Project } from "ts-morph";
|
|
2
|
-
export type CommonMakeEditorComponentArgs = {
|
|
3
|
-
project: Project;
|
|
4
|
-
editorFilePath: string;
|
|
5
|
-
};
|
|
6
|
-
export type CommonGenerateEditorArgs = {
|
|
7
|
-
packageName: string;
|
|
8
|
-
projectDir: string;
|
|
9
|
-
editorDir: string;
|
|
10
|
-
editorName: string;
|
|
11
|
-
editorId: string;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/file-builders/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Project, SourceFile } from "ts-morph";
|
|
2
|
-
import { IndentationText, ts } from "ts-morph";
|
|
3
|
-
import type { DocumentModelDocumentTypeMetadata } from "./types.js";
|
|
4
|
-
export declare function getOrCreateSourceFile(project: Project, filePath: string): {
|
|
5
|
-
alreadyExists: boolean;
|
|
6
|
-
sourceFile: SourceFile;
|
|
7
|
-
};
|
|
8
|
-
export declare function getDefaultProjectOptions(tsConfigFilePath: string): {
|
|
9
|
-
tsConfigFilePath: string;
|
|
10
|
-
skipAddingFilesFromTsConfig: boolean;
|
|
11
|
-
skipLoadingLibFiles: boolean;
|
|
12
|
-
manipulationSettings: {
|
|
13
|
-
useTrailingCommas: boolean;
|
|
14
|
-
indentationText: IndentationText;
|
|
15
|
-
indentMultiLineObjectLiteralBeginningOnBlankLine: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare function buildNodePrinter(sourceFile: SourceFile): (node: ts.Node) => string;
|
|
19
|
-
type GetDocumentTypeMetadataArgs = {
|
|
20
|
-
project: Project;
|
|
21
|
-
packageName: string;
|
|
22
|
-
documentModelId: string;
|
|
23
|
-
documentModelsDirPath: string;
|
|
24
|
-
};
|
|
25
|
-
export declare function getDocumentTypeMetadata({ project, packageName, documentModelId, documentModelsDirPath, }: GetDocumentTypeMetadataArgs): DocumentModelDocumentTypeMetadata;
|
|
26
|
-
export declare function formatSourceFileWithPrettier(sourceFile: SourceFile): void;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=file-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-utils.d.ts","sourceRoot":"","sources":["../../../src/ts-morph-utils/file-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,eAAe,EAAc,EAAE,EAAE,MAAM,UAAU,CAAC;AAe3D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAC;AAEpE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM;;;EAavE;AAED,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,MAAM;;;;;;;;;EAiBhE;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,IAE7C,MAAM,EAAE,CAAC,IAAI,YAEtB;AACD,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AACF,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,eAAe,EACf,qBAAqB,GACtB,EAAE,2BAA2B,qCA8D7B;AAED,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,UAAU,QAalE"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { format } from "prettier";
|
|
2
|
-
import { IndentationText, SyntaxKind, ts } from "ts-morph";
|
|
3
|
-
import { documentModelDocumentTypeMetadata, documentModelGlobalStateTypeName, documentTypePropertyName, phDocumentTypeName, } from "./constants.js";
|
|
4
|
-
import { buildDocumentModelImportPath } from "./name-builders/document-model-files.js";
|
|
5
|
-
import { getObjectLiteral, getObjectProperty, getStringLiteralValue, getTypeDeclarationByTypeName, getVariableDeclarationByTypeName, } from "./syntax-getters.js";
|
|
6
|
-
export function getOrCreateSourceFile(project, filePath) {
|
|
7
|
-
const sourceFile = project.getSourceFile(filePath);
|
|
8
|
-
if (!sourceFile) {
|
|
9
|
-
const newSourceFile = project.createSourceFile(filePath, "");
|
|
10
|
-
return {
|
|
11
|
-
alreadyExists: false,
|
|
12
|
-
sourceFile: newSourceFile,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
alreadyExists: true,
|
|
17
|
-
sourceFile,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function getDefaultProjectOptions(tsConfigFilePath) {
|
|
21
|
-
const DEFAULT_PROJECT_OPTIONS = {
|
|
22
|
-
// don't add files from the tsconfig.json file, only use the ones we need
|
|
23
|
-
skipAddingFilesFromTsConfig: true,
|
|
24
|
-
// don't load library files, we only need the files we're adding
|
|
25
|
-
skipLoadingLibFiles: true,
|
|
26
|
-
// use formatting rules which match prettier
|
|
27
|
-
manipulationSettings: {
|
|
28
|
-
useTrailingCommas: true,
|
|
29
|
-
indentationText: IndentationText.TwoSpaces,
|
|
30
|
-
indentMultiLineObjectLiteralBeginningOnBlankLine: true,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
return {
|
|
34
|
-
...DEFAULT_PROJECT_OPTIONS,
|
|
35
|
-
tsConfigFilePath,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function buildNodePrinter(sourceFile) {
|
|
39
|
-
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed });
|
|
40
|
-
return (node) => printer.printNode(ts.EmitHint.Unspecified, node, sourceFile.compilerNode);
|
|
41
|
-
}
|
|
42
|
-
export function getDocumentTypeMetadata({ project, packageName, documentModelId, documentModelsDirPath, }) {
|
|
43
|
-
const sourceFiles = project.getSourceFiles();
|
|
44
|
-
const documentTypeMetadataList = [
|
|
45
|
-
documentModelDocumentTypeMetadata,
|
|
46
|
-
];
|
|
47
|
-
for (const sourceFile of sourceFiles) {
|
|
48
|
-
const variableDeclaration = getVariableDeclarationByTypeName(sourceFile, documentModelGlobalStateTypeName);
|
|
49
|
-
const variableStatement = variableDeclaration?.getVariableStatement();
|
|
50
|
-
const documentModelGlobalState = getObjectLiteral(variableStatement);
|
|
51
|
-
const documentType = getObjectProperty(documentModelGlobalState, documentTypePropertyName, SyntaxKind.StringLiteral);
|
|
52
|
-
const documentModelId = getStringLiteralValue(documentType);
|
|
53
|
-
if (!documentModelId)
|
|
54
|
-
continue;
|
|
55
|
-
const directory = sourceFile.getDirectory();
|
|
56
|
-
const directorySourceFiles = directory.getSourceFiles();
|
|
57
|
-
for (const file of directorySourceFiles) {
|
|
58
|
-
const typeDeclaration = getTypeDeclarationByTypeName(file, phDocumentTypeName);
|
|
59
|
-
const documentModelDocumentTypeName = typeDeclaration?.getName();
|
|
60
|
-
if (!documentModelDocumentTypeName)
|
|
61
|
-
continue;
|
|
62
|
-
const documentModelsDir = project.getDirectory(documentModelsDirPath);
|
|
63
|
-
if (!documentModelsDir)
|
|
64
|
-
continue;
|
|
65
|
-
const documentModelDir = project
|
|
66
|
-
.getDirectories()
|
|
67
|
-
.filter((dir) => dir.getPath().includes("document-models"))
|
|
68
|
-
.find((dir) => {
|
|
69
|
-
return (dir.isAncestorOf(sourceFile) && documentModelsDir.isAncestorOf(dir));
|
|
70
|
-
});
|
|
71
|
-
if (!documentModelDir)
|
|
72
|
-
continue;
|
|
73
|
-
const documentModelDirName = documentModelDir.getBaseName();
|
|
74
|
-
const documentModelImportPath = buildDocumentModelImportPath(packageName, documentModelDirName);
|
|
75
|
-
documentTypeMetadataList.push({
|
|
76
|
-
documentModelId,
|
|
77
|
-
documentModelDocumentTypeName,
|
|
78
|
-
documentModelDirName,
|
|
79
|
-
documentModelImportPath,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const documentTypeMetadata = documentTypeMetadataList.find((metadata) => metadata.documentModelId === documentModelId);
|
|
84
|
-
if (!documentTypeMetadata) {
|
|
85
|
-
throw new Error(`Document type metadata not found for document type: ${documentModelId}`);
|
|
86
|
-
}
|
|
87
|
-
return documentTypeMetadata;
|
|
88
|
-
}
|
|
89
|
-
export function formatSourceFileWithPrettier(sourceFile) {
|
|
90
|
-
const sourceText = sourceFile.getFullText();
|
|
91
|
-
format(sourceText, {
|
|
92
|
-
parser: "typescript",
|
|
93
|
-
})
|
|
94
|
-
.then((formattedText) => {
|
|
95
|
-
sourceFile.replaceWithText(formattedText);
|
|
96
|
-
sourceFile.saveSync();
|
|
97
|
-
})
|
|
98
|
-
.catch((error) => {
|
|
99
|
-
console.error("Error formatting source file:", error);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=file-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-utils.js","sourceRoot":"","sources":["../../../src/ts-morph-utils/file-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,iCAAiC,EACjC,gCAAgC,EAChC,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;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;
|
|
2
|
-
export declare function buildModulesSourceFilesPath(projectDir: string, modulesDir: string): string;
|
|
3
|
-
export declare function buildModulesOutputFilePath(modulesDirPath: string, outputFileName: string): string;
|
|
4
|
-
export declare function buildTsConfigFilePath(projectDir: string): string;
|
|
5
|
-
//# sourceMappingURL=common-files.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/common-files.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAEzE;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,UAInB;AAED,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,UAGvB;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,UAEvD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
export function buildModulesDirPath(projectDir, modulesDir) {
|
|
3
|
-
return path.join(projectDir, modulesDir);
|
|
4
|
-
}
|
|
5
|
-
export function buildModulesSourceFilesPath(projectDir, modulesDir) {
|
|
6
|
-
const modulesDirPath = buildModulesDirPath(projectDir, modulesDir);
|
|
7
|
-
return path.join(modulesDirPath, "/**/*");
|
|
8
|
-
}
|
|
9
|
-
export function buildModulesOutputFilePath(modulesDirPath, outputFileName) {
|
|
10
|
-
return path.join(modulesDirPath, outputFileName);
|
|
11
|
-
}
|
|
12
|
-
export function buildTsConfigFilePath(projectDir) {
|
|
13
|
-
return path.join(projectDir, "tsconfig.json");
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=common-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-files.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/common-files.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,UAAkB;IACxE,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,UAAkB,EAClB,UAAkB;IAElB,MAAM,cAAc,GAAG,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACnE,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,cAAsB,EACtB,cAAsB;IAEtB,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,UAAkB;IACtD,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function buildDocumentModelsDirPath(projectDir: string): string;
|
|
2
|
-
export declare function buildDocumentModelsSourceFilesPath(projectDir: string): string;
|
|
3
|
-
export declare function buildDocumentModelImportPath(packageName: string, documentModelDirName: string): string;
|
|
4
|
-
//# sourceMappingURL=document-model-files.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-model-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/document-model-files.ts"],"names":[],"mappings":"AAEA,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,UAE5D;AAED,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,MAAM,UAGpE;AAED,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,MAAM,UAG7B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
export function buildDocumentModelsDirPath(projectDir) {
|
|
3
|
-
return path.join(projectDir, "document-models");
|
|
4
|
-
}
|
|
5
|
-
export function buildDocumentModelsSourceFilesPath(projectDir) {
|
|
6
|
-
const documentModelsDirPath = buildDocumentModelsDirPath(projectDir);
|
|
7
|
-
return path.join(documentModelsDirPath, "/**/*");
|
|
8
|
-
}
|
|
9
|
-
export function buildDocumentModelImportPath(packageName, documentModelDirName) {
|
|
10
|
-
return path.join(packageName, "document-models", documentModelDirName);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=document-model-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-model-files.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/document-model-files.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,UAAU,0BAA0B,CAAC,UAAkB;IAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,UAAkB;IACnE,MAAM,qBAAqB,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAC;IACrE,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,WAAmB,EACnB,oBAA4B;IAE5B,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function buildEditorsDirPath(projectDir: string): string;
|
|
2
|
-
export declare function buildEditorDirPath(projectDir: string, editorDir: string): string;
|
|
3
|
-
export declare function buildEditorComponentsDirPath(projectDir: string, editorDir: string): string;
|
|
4
|
-
export declare function buildEditorFilePath(projectDir: string, editorDir: string): string;
|
|
5
|
-
export declare function buildEditDocumentNameComponentFilePath(projectDir: string, editorDir: string): string;
|
|
6
|
-
export declare function buildEditorConfigFilePath(projectDir: string, editorDir: string): string;
|
|
7
|
-
export declare function buildDriveContentsFilePath(projectDir: string, editorDir: string): string;
|
|
8
|
-
export declare function buildEditorModuleFilePath(projectDir: string, editorDir: string): string;
|
|
9
|
-
export declare function buildEditorSourceFilesPath(projectDir: string): string;
|
|
10
|
-
//# sourceMappingURL=editor-files.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-files.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/editor-files.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,UAErD;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAGvE;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,UAIlB;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAGxE;AAED,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,UAOlB;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,UAIlB;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,UAOlB;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,UAIlB;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,UAG5D"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
export function buildEditorsDirPath(projectDir) {
|
|
3
|
-
return path.join(projectDir, "editors");
|
|
4
|
-
}
|
|
5
|
-
export function buildEditorDirPath(projectDir, editorDir) {
|
|
6
|
-
const editorsDirPath = buildEditorsDirPath(projectDir);
|
|
7
|
-
return path.join(editorsDirPath, editorDir);
|
|
8
|
-
}
|
|
9
|
-
export function buildEditorComponentsDirPath(projectDir, editorDir) {
|
|
10
|
-
const editorDirPath = buildEditorDirPath(projectDir, editorDir);
|
|
11
|
-
return path.join(editorDirPath, "components");
|
|
12
|
-
}
|
|
13
|
-
export function buildEditorFilePath(projectDir, editorDir) {
|
|
14
|
-
const editorDirPath = buildEditorDirPath(projectDir, editorDir);
|
|
15
|
-
return path.join(editorDirPath, "editor.tsx");
|
|
16
|
-
}
|
|
17
|
-
export function buildEditDocumentNameComponentFilePath(projectDir, editorDir) {
|
|
18
|
-
const editorComponentsDirPath = buildEditorComponentsDirPath(projectDir, editorDir);
|
|
19
|
-
return path.join(editorComponentsDirPath, "EditName.tsx");
|
|
20
|
-
}
|
|
21
|
-
export function buildEditorConfigFilePath(projectDir, editorDir) {
|
|
22
|
-
const editorDirPath = buildEditorDirPath(projectDir, editorDir);
|
|
23
|
-
return path.join(editorDirPath, "config.ts");
|
|
24
|
-
}
|
|
25
|
-
export function buildDriveContentsFilePath(projectDir, editorDir) {
|
|
26
|
-
const editorComponentsDirPath = buildEditorComponentsDirPath(projectDir, editorDir);
|
|
27
|
-
return path.join(editorComponentsDirPath, "DriveContents.tsx");
|
|
28
|
-
}
|
|
29
|
-
export function buildEditorModuleFilePath(projectDir, editorDir) {
|
|
30
|
-
const editorDirPath = buildEditorDirPath(projectDir, editorDir);
|
|
31
|
-
return path.join(editorDirPath, "module.ts");
|
|
32
|
-
}
|
|
33
|
-
export function buildEditorSourceFilesPath(projectDir) {
|
|
34
|
-
const editorsDirPath = buildEditorsDirPath(projectDir);
|
|
35
|
-
return path.join(editorsDirPath, "/**/*");
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=editor-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-files.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/editor-files.ts"],"names":[],"mappings":"AAAA,OAAO,IAA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EACV,SAAS,CACV,CAAC;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,UAAkB,EAClB,SAAiB;IAEjB,MAAM,aAAa,GAAG,kBAAkB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAChE,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,UAAkB;IAC3D,MAAM,cAAc,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACvD,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { DocumentModelFilePaths, EditorFilePaths } from "../types.js";
|
|
2
|
-
export declare function getDocumentModelFilePaths(projectDir: string): DocumentModelFilePaths;
|
|
3
|
-
export declare function getEditorFilePaths(projectDir: string, editorDir: string): EditorFilePaths;
|
|
4
|
-
//# sourceMappingURL=get-file-paths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-paths.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/get-file-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAgB3E,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,sBAAsB,CAMxB;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,eAAe,CAiBjB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { buildDocumentModelsDirPath, buildDocumentModelsSourceFilesPath, } from "./document-model-files.js";
|
|
2
|
-
import { buildDriveContentsFilePath, buildEditDocumentNameComponentFilePath, buildEditorComponentsDirPath, buildEditorConfigFilePath, buildEditorFilePath, buildEditorModuleFilePath, buildEditorSourceFilesPath, buildEditorsDirPath, } from "./editor-files.js";
|
|
3
|
-
export function getDocumentModelFilePaths(projectDir) {
|
|
4
|
-
return {
|
|
5
|
-
documentModelsSourceFilesPath: buildDocumentModelsSourceFilesPath(projectDir),
|
|
6
|
-
documentModelsDirPath: buildDocumentModelsDirPath(projectDir),
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export function getEditorFilePaths(projectDir, editorDir) {
|
|
10
|
-
return {
|
|
11
|
-
editorSourceFilesPath: buildEditorSourceFilesPath(projectDir),
|
|
12
|
-
editorsDirPath: buildEditorsDirPath(projectDir),
|
|
13
|
-
editorFilePath: buildEditorFilePath(projectDir, editorDir),
|
|
14
|
-
editorModuleFilePath: buildEditorModuleFilePath(projectDir, editorDir),
|
|
15
|
-
editDocumentNameComponentFilePath: buildEditDocumentNameComponentFilePath(projectDir, editorDir),
|
|
16
|
-
editorComponentsDirPath: buildEditorComponentsDirPath(projectDir, editorDir),
|
|
17
|
-
editorConfigFilePath: buildEditorConfigFilePath(projectDir, editorDir),
|
|
18
|
-
driveContentsFilePath: buildDriveContentsFilePath(projectDir, editorDir),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=get-file-paths.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-paths.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/get-file-paths.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,0BAA0B,EAC1B,sCAAsC,EACtC,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,UAAU,yBAAyB,CACvC,UAAkB;IAElB,OAAO;QACL,6BAA6B,EAC3B,kCAAkC,CAAC,UAAU,CAAC;QAChD,qBAAqB,EAAE,0BAA0B,CAAC,UAAU,CAAC;KAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,UAAkB,EAClB,SAAiB;IAEjB,OAAO;QACL,qBAAqB,EAAE,0BAA0B,CAAC,UAAU,CAAC;QAC7D,cAAc,EAAE,mBAAmB,CAAC,UAAU,CAAC;QAC/C,cAAc,EAAE,mBAAmB,CAAC,UAAU,EAAE,SAAS,CAAC;QAC1D,oBAAoB,EAAE,yBAAyB,CAAC,UAAU,EAAE,SAAS,CAAC;QACtE,iCAAiC,EAAE,sCAAsC,CACvE,UAAU,EACV,SAAS,CACV;QACD,uBAAuB,EAAE,4BAA4B,CACnD,UAAU,EACV,SAAS,CACV;QACD,oBAAoB,EAAE,yBAAyB,CAAC,UAAU,EAAE,SAAS,CAAC;QACtE,qBAAqB,EAAE,0BAA0B,CAAC,UAAU,EAAE,SAAS,CAAC;KACzE,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ModuleSpecification, OperationErrorSpecification } from "document-model";
|
|
2
|
-
import type { DocumentModelFileMakerArgs } from "../file-builders/document-model/types.js";
|
|
3
|
-
import type { getDocumentModelOperationsModuleVariableNames, getDocumentModelVariableNames } from "./get-variable-names.js";
|
|
4
|
-
export type DocumentModelVariableNames = ReturnType<typeof getDocumentModelVariableNames>;
|
|
5
|
-
export type DocumentModelOperationsModuleVariableNames = ReturnType<typeof getDocumentModelOperationsModuleVariableNames>;
|
|
6
|
-
export type DocumentModelTemplateInputs = DocumentModelFileMakerArgs & DocumentModelVariableNames;
|
|
7
|
-
export type DocumentModelTemplateInputsWithModule = {
|
|
8
|
-
module: ModuleSpecification;
|
|
9
|
-
} & DocumentModelTemplateInputs & DocumentModelOperationsModuleVariableNames;
|
|
10
|
-
export type ActionFromOperation = {
|
|
11
|
-
name: string;
|
|
12
|
-
hasInput: boolean;
|
|
13
|
-
isEmptyInput: boolean;
|
|
14
|
-
hasAttachment: boolean;
|
|
15
|
-
scope: string;
|
|
16
|
-
state: string;
|
|
17
|
-
errors: OperationErrorSpecification[];
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,KAAK,EACV,6CAA6C,EAC7C,6BAA6B,EAC9B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,0CAA0C,GAAG,UAAU,CACjE,OAAO,6CAA6C,CACrD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,0BAA0B,GAClE,0BAA0B,CAAC;AAE7B,MAAM,MAAM,qCAAqC,GAAG;IAClD,MAAM,EAAE,mBAAmB,CAAC;CAC7B,GAAG,2BAA2B,GAC7B,0CAA0C,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,2BAA2B,EAAE,CAAC;CACvC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function buildDocumentVariableName(documentTypeName: string): string;
|
|
2
|
-
export declare function buildEditDocumentNameComponentName(documentTypeName: string): string;
|
|
3
|
-
export declare function buildDocumentNameVariableName(documentTypeName: string): string;
|
|
4
|
-
export declare function buildUseSelectedDocumentHookName(documentTypeName: string): string;
|
|
5
|
-
export declare function buildDispatchFunctionName(documentTypeName: string): string;
|
|
6
|
-
export declare function buildOnClickHandlerName(documentTypeName: string): string;
|
|
7
|
-
export declare function buildOnCancelEditHandlerName(documentTypeName: string): string;
|
|
8
|
-
export declare function buildSetNameActionName(documentTypeName: string): string;
|
|
9
|
-
export declare function buildIsEditingVariableName(documentTypeName: string): string;
|
|
10
|
-
export declare function buildSetIsEditingFunctionName(documentTypeName: string): string;
|
|
11
|
-
export declare function buildOnSubmitSetNameFunctionName(documentTypeName: string): string;
|
|
12
|
-
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/variables.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,MAAM,UAEjE;AAED,wBAAgB,kCAAkC,CAAC,gBAAgB,EAAE,MAAM,UAE1E;AAED,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,MAAM,UAErE;AAED,wBAAgB,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,UAExE;AAED,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,MAAM,UAEjE;AAED,wBAAgB,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,UAE/D;AAED,wBAAgB,4BAA4B,CAAC,gBAAgB,EAAE,MAAM,UAEpE;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,MAAM,UAE9D;AAED,wBAAgB,0BAA0B,CAAC,gBAAgB,EAAE,MAAM,UAElE;AAED,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,MAAM,UAErE;AAED,wBAAgB,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,UAExE"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { camelCase } from "change-case";
|
|
2
|
-
export function buildDocumentVariableName(documentTypeName) {
|
|
3
|
-
return camelCase(documentTypeName);
|
|
4
|
-
}
|
|
5
|
-
export function buildEditDocumentNameComponentName(documentTypeName) {
|
|
6
|
-
return `EditName`;
|
|
7
|
-
}
|
|
8
|
-
export function buildDocumentNameVariableName(documentTypeName) {
|
|
9
|
-
return `${documentTypeName}Name`;
|
|
10
|
-
}
|
|
11
|
-
export function buildUseSelectedDocumentHookName(documentTypeName) {
|
|
12
|
-
return `useSelected${documentTypeName}`;
|
|
13
|
-
}
|
|
14
|
-
export function buildDispatchFunctionName(documentTypeName) {
|
|
15
|
-
return "dispatch";
|
|
16
|
-
}
|
|
17
|
-
export function buildOnClickHandlerName(documentTypeName) {
|
|
18
|
-
return `onClickEdit${documentTypeName}Name`;
|
|
19
|
-
}
|
|
20
|
-
export function buildOnCancelEditHandlerName(documentTypeName) {
|
|
21
|
-
return `onClickCancelEdit${documentTypeName}Name`;
|
|
22
|
-
}
|
|
23
|
-
export function buildSetNameActionName(documentTypeName) {
|
|
24
|
-
return "setName";
|
|
25
|
-
}
|
|
26
|
-
export function buildIsEditingVariableName(documentTypeName) {
|
|
27
|
-
return "isEditing";
|
|
28
|
-
}
|
|
29
|
-
export function buildSetIsEditingFunctionName(documentTypeName) {
|
|
30
|
-
return "setIsEditing";
|
|
31
|
-
}
|
|
32
|
-
export function buildOnSubmitSetNameFunctionName(documentTypeName) {
|
|
33
|
-
return `onSubmitSet${documentTypeName}Name`;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=variables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../src/ts-morph-utils/name-builders/variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,UAAU,yBAAyB,CAAC,gBAAwB;IAChE,OAAO,SAAS,CAAC,gBAAgB,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,gBAAwB;IACzE,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,gBAAwB;IACpE,OAAO,GAAG,gBAAgB,MAAM,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,gBAAwB;IACvE,OAAO,cAAc,gBAAgB,EAAE,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,gBAAwB;IAChE,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,gBAAwB;IAC9D,OAAO,cAAc,gBAAgB,MAAM,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,gBAAwB;IACnE,OAAO,oBAAoB,gBAAgB,MAAM,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,gBAAwB;IAC7D,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,gBAAwB;IACjE,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,gBAAwB;IACpE,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,gBAAwB;IACvE,OAAO,cAAc,gBAAgB,MAAM,CAAC;AAC9C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drive-editor.d.ts","sourceRoot":"","sources":["../../../../src/ts-morph-utils/templates/drive-editor.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,QA6BjC,CAAC;AAEN,eAAO,MAAM,sBAAsB,QAyG9B,CAAC;AAEN,eAAO,MAAM,sBAAsB,QAgB9B,CAAC;AAEN,eAAO,MAAM,0BAA0B,QAuDlC,CAAC"}
|