@powerhousedao/powerhouse-vetra-packages 6.0.0-dev.215 → 6.0.0-dev.216

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 (180) hide show
  1. package/dist/build.d.ts +2 -0
  2. package/dist/build.d.ts.map +1 -0
  3. package/dist/document-models/document-model/index.d.ts +2 -0
  4. package/dist/document-models/document-model/index.d.ts.map +1 -0
  5. package/dist/document-models/document-model/test/document-skip-operations.test.d.ts +2 -0
  6. package/dist/document-models/document-model/test/document-skip-operations.test.d.ts.map +1 -0
  7. package/dist/document-models/document-model/test/prune.test.d.ts +2 -0
  8. package/dist/document-models/document-model/test/prune.test.d.ts.map +1 -0
  9. package/dist/document-models/document-model/test/reducer.test.d.ts +2 -0
  10. package/dist/document-models/document-model/test/reducer.test.d.ts.map +1 -0
  11. package/dist/document-models/document-model/test/skip-operations.test.d.ts +2 -0
  12. package/dist/document-models/document-model/test/skip-operations.test.d.ts.map +1 -0
  13. package/dist/document-models/document-model/test/validation.test.d.ts +2 -0
  14. package/dist/document-models/document-model/test/validation.test.d.ts.map +1 -0
  15. package/dist/document-models/document-model/test/versioning.test.d.ts +2 -0
  16. package/dist/document-models/document-model/test/versioning.test.d.ts.map +1 -0
  17. package/dist/document-models/document-model/test/zip.test.d.ts +2 -0
  18. package/dist/document-models/document-model/test/zip.test.d.ts.map +1 -0
  19. package/dist/document-models/document-models.d.ts +3 -0
  20. package/dist/document-models/document-models.d.ts.map +1 -0
  21. package/dist/document-models/index.d.ts +3 -0
  22. package/dist/document-models/index.d.ts.map +1 -0
  23. package/dist/editors/document-model-editor/components/button.d.ts +2 -0
  24. package/dist/editors/document-model-editor/components/button.d.ts.map +1 -0
  25. package/dist/editors/document-model-editor/components/code-editors/constants.d.ts +3 -0
  26. package/dist/editors/document-model-editor/components/code-editors/constants.d.ts.map +1 -0
  27. package/dist/editors/document-model-editor/components/code-editors/factories.d.ts +4 -0
  28. package/dist/editors/document-model-editor/components/code-editors/factories.d.ts.map +1 -0
  29. package/dist/editors/document-model-editor/components/code-editors/graphql-editor.d.ts +10 -0
  30. package/dist/editors/document-model-editor/components/code-editors/graphql-editor.d.ts.map +1 -0
  31. package/dist/editors/document-model-editor/components/code-editors/hooks.d.ts +23 -0
  32. package/dist/editors/document-model-editor/components/code-editors/hooks.d.ts.map +1 -0
  33. package/dist/editors/document-model-editor/components/code-editors/json-editor.d.ts +8 -0
  34. package/dist/editors/document-model-editor/components/code-editors/json-editor.d.ts.map +1 -0
  35. package/dist/editors/document-model-editor/components/code-editors/linting.d.ts +6 -0
  36. package/dist/editors/document-model-editor/components/code-editors/linting.d.ts.map +1 -0
  37. package/dist/editors/document-model-editor/components/divider.d.ts +8 -0
  38. package/dist/editors/document-model-editor/components/divider.d.ts.map +1 -0
  39. package/dist/editors/document-model-editor/components/errors.d.ts +6 -0
  40. package/dist/editors/document-model-editor/components/errors.d.ts.map +1 -0
  41. package/dist/editors/document-model-editor/components/form.d.ts +12 -0
  42. package/dist/editors/document-model-editor/components/form.d.ts.map +1 -0
  43. package/dist/editors/document-model-editor/components/input.d.ts +6 -0
  44. package/dist/editors/document-model-editor/components/input.d.ts.map +1 -0
  45. package/dist/editors/document-model-editor/components/label.d.ts +6 -0
  46. package/dist/editors/document-model-editor/components/label.d.ts.map +1 -0
  47. package/dist/editors/document-model-editor/components/model-metadata-form.d.ts +31 -0
  48. package/dist/editors/document-model-editor/components/model-metadata-form.d.ts.map +1 -0
  49. package/dist/editors/document-model-editor/components/module-form.d.ts +10 -0
  50. package/dist/editors/document-model-editor/components/module-form.d.ts.map +1 -0
  51. package/dist/editors/document-model-editor/components/module.d.ts +22 -0
  52. package/dist/editors/document-model-editor/components/module.d.ts.map +1 -0
  53. package/dist/editors/document-model-editor/components/modules.d.ts +20 -0
  54. package/dist/editors/document-model-editor/components/modules.d.ts.map +1 -0
  55. package/dist/editors/document-model-editor/components/operation-description-form.d.ts +9 -0
  56. package/dist/editors/document-model-editor/components/operation-description-form.d.ts.map +1 -0
  57. package/dist/editors/document-model-editor/components/operation-error-form.d.ts +13 -0
  58. package/dist/editors/document-model-editor/components/operation-error-form.d.ts.map +1 -0
  59. package/dist/editors/document-model-editor/components/operation-errors.d.ts +10 -0
  60. package/dist/editors/document-model-editor/components/operation-errors.d.ts.map +1 -0
  61. package/dist/editors/document-model-editor/components/operation-form.d.ts +13 -0
  62. package/dist/editors/document-model-editor/components/operation-form.d.ts.map +1 -0
  63. package/dist/editors/document-model-editor/components/operation.d.ts +23 -0
  64. package/dist/editors/document-model-editor/components/operation.d.ts.map +1 -0
  65. package/dist/editors/document-model-editor/components/operations.d.ts +18 -0
  66. package/dist/editors/document-model-editor/components/operations.d.ts.map +1 -0
  67. package/dist/editors/document-model-editor/components/state-error.d.ts +5 -0
  68. package/dist/editors/document-model-editor/components/state-error.d.ts.map +1 -0
  69. package/dist/editors/document-model-editor/components/state-schemas.d.ts +15 -0
  70. package/dist/editors/document-model-editor/components/state-schemas.d.ts.map +1 -0
  71. package/dist/editors/document-model-editor/components/tabs.d.ts +8 -0
  72. package/dist/editors/document-model-editor/components/tabs.d.ts.map +1 -0
  73. package/dist/editors/document-model-editor/components/text-area.d.ts +9 -0
  74. package/dist/editors/document-model-editor/components/text-area.d.ts.map +1 -0
  75. package/dist/editors/document-model-editor/components/text-field.d.ts +21 -0
  76. package/dist/editors/document-model-editor/components/text-field.d.ts.map +1 -0
  77. package/dist/editors/document-model-editor/config.d.ts +3 -0
  78. package/dist/editors/document-model-editor/config.d.ts.map +1 -0
  79. package/dist/editors/document-model-editor/constants/documents.d.ts +13 -0
  80. package/dist/editors/document-model-editor/constants/documents.d.ts.map +1 -0
  81. package/dist/editors/document-model-editor/constants/graphql-kinds.d.ts +9 -0
  82. package/dist/editors/document-model-editor/constants/graphql-kinds.d.ts.map +1 -0
  83. package/dist/editors/document-model-editor/context/form-context.d.ts +11 -0
  84. package/dist/editors/document-model-editor/context/form-context.d.ts.map +1 -0
  85. package/dist/editors/document-model-editor/context/schema-context.d.ts +18 -0
  86. package/dist/editors/document-model-editor/context/schema-context.d.ts.map +1 -0
  87. package/dist/editors/document-model-editor/editor.d.ts +2 -0
  88. package/dist/editors/document-model-editor/editor.d.ts.map +1 -0
  89. package/dist/editors/document-model-editor/hooks/index.d.ts +3 -0
  90. package/dist/editors/document-model-editor/hooks/index.d.ts.map +1 -0
  91. package/dist/editors/document-model-editor/hooks/useDocumentModelDocument.d.ts +5 -0
  92. package/dist/editors/document-model-editor/hooks/useDocumentModelDocument.d.ts.map +1 -0
  93. package/dist/editors/document-model-editor/hooks/useFormField.d.ts +13 -0
  94. package/dist/editors/document-model-editor/hooks/useFormField.d.ts.map +1 -0
  95. package/dist/editors/document-model-editor/index.d.ts +2 -0
  96. package/dist/editors/document-model-editor/index.d.ts.map +1 -0
  97. package/dist/editors/document-model-editor/module.d.ts +3 -0
  98. package/dist/editors/document-model-editor/module.d.ts.map +1 -0
  99. package/dist/editors/document-model-editor/schemas/inputs.d.ts +25 -0
  100. package/dist/editors/document-model-editor/schemas/inputs.d.ts.map +1 -0
  101. package/dist/editors/document-model-editor/schemas/utils.d.ts +3 -0
  102. package/dist/editors/document-model-editor/schemas/utils.d.ts.map +1 -0
  103. package/dist/editors/document-model-editor/types/documents.d.ts +26 -0
  104. package/dist/editors/document-model-editor/types/documents.d.ts.map +1 -0
  105. package/dist/editors/document-model-editor/types.d.ts +2 -0
  106. package/dist/editors/document-model-editor/types.d.ts.map +1 -0
  107. package/dist/editors/document-model-editor/utils/helpers.d.ts +112 -0
  108. package/dist/editors/document-model-editor/utils/helpers.d.ts.map +1 -0
  109. package/dist/editors/document-model-editor/utils/helpers.test.d.ts +2 -0
  110. package/dist/editors/document-model-editor/utils/helpers.test.d.ts.map +1 -0
  111. package/dist/editors/document-model-editor/utils/linting.d.ts +7 -0
  112. package/dist/editors/document-model-editor/utils/linting.d.ts.map +1 -0
  113. package/dist/editors/document-model-editor/utils/style.d.ts +3 -0
  114. package/dist/editors/document-model-editor/utils/style.d.ts.map +1 -0
  115. package/dist/editors/editors.d.ts +3 -0
  116. package/dist/editors/editors.d.ts.map +1 -0
  117. package/dist/editors/generic-drive-explorer/components/create-document.d.ts +2 -0
  118. package/dist/editors/generic-drive-explorer/components/create-document.d.ts.map +1 -0
  119. package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts +2 -0
  120. package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts.map +1 -0
  121. package/dist/editors/generic-drive-explorer/components/folder-view.d.ts +5 -0
  122. package/dist/editors/generic-drive-explorer/components/folder-view.d.ts.map +1 -0
  123. package/dist/editors/generic-drive-explorer/components/index.d.ts +6 -0
  124. package/dist/editors/generic-drive-explorer/components/index.d.ts.map +1 -0
  125. package/dist/editors/generic-drive-explorer/components/layout.d.ts +12 -0
  126. package/dist/editors/generic-drive-explorer/components/layout.d.ts.map +1 -0
  127. package/dist/editors/generic-drive-explorer/components/search-bar.d.ts +2 -0
  128. package/dist/editors/generic-drive-explorer/components/search-bar.d.ts.map +1 -0
  129. package/dist/editors/generic-drive-explorer/config.d.ts +3 -0
  130. package/dist/editors/generic-drive-explorer/config.d.ts.map +1 -0
  131. package/dist/editors/generic-drive-explorer/editor.d.ts +3 -0
  132. package/dist/editors/generic-drive-explorer/editor.d.ts.map +1 -0
  133. package/dist/editors/generic-drive-explorer/index.d.ts +3 -0
  134. package/dist/editors/generic-drive-explorer/index.d.ts.map +1 -0
  135. package/dist/editors/generic-drive-explorer/module.d.ts +3 -0
  136. package/dist/editors/generic-drive-explorer/module.d.ts.map +1 -0
  137. package/dist/editors/generic-drive-explorer/utils/cn.d.ts +3 -0
  138. package/dist/editors/generic-drive-explorer/utils/cn.d.ts.map +1 -0
  139. package/dist/editors/generic-drive-explorer/utils/index.d.ts +3 -0
  140. package/dist/editors/generic-drive-explorer/utils/index.d.ts.map +1 -0
  141. package/dist/editors/generic-drive-explorer/utils/types.d.ts +8 -0
  142. package/dist/editors/generic-drive-explorer/utils/types.d.ts.map +1 -0
  143. package/dist/editors/index.d.ts +3 -0
  144. package/dist/editors/index.d.ts.map +1 -0
  145. package/dist/index.d.ts +5 -0
  146. package/dist/index.d.ts.map +1 -0
  147. package/dist/tsconfig.tsbuildinfo +1 -0
  148. package/dist/tsdown.config.d.ts +3 -0
  149. package/dist/tsdown.config.d.ts.map +1 -0
  150. package/package.json +5 -5
  151. package/dist/browser/actions-CAH-hbfc-B6AqUZOp.d.ts +0 -2536
  152. package/dist/browser/actions-CAH-hbfc-B6AqUZOp.d.ts.map +0 -1
  153. package/dist/browser/document-models/document-model/index.d.ts +0 -1
  154. package/dist/browser/document-models/index.d.ts +0 -83
  155. package/dist/browser/document-models/index.d.ts.map +0 -1
  156. package/dist/browser/editors/document-model-editor/index.d.ts +0 -1
  157. package/dist/browser/editors/document-model-editor/module.d.ts +0 -7
  158. package/dist/browser/editors/document-model-editor/module.d.ts.map +0 -1
  159. package/dist/browser/editors/generic-drive-explorer/index.d.ts +0 -70
  160. package/dist/browser/editors/generic-drive-explorer/index.d.ts.map +0 -1
  161. package/dist/browser/editors/generic-drive-explorer/module.d.ts +0 -7
  162. package/dist/browser/editors/generic-drive-explorer/module.d.ts.map +0 -1
  163. package/dist/browser/editors/index.d.ts +0 -3
  164. package/dist/browser/index.d.ts +0 -13
  165. package/dist/browser/index.d.ts.map +0 -1
  166. package/dist/node/actions-CAH-hbfc-CvMBM5XZ.d.mts +0 -2536
  167. package/dist/node/actions-CAH-hbfc-CvMBM5XZ.d.mts.map +0 -1
  168. package/dist/node/document-models/document-model/index.d.mts +0 -1
  169. package/dist/node/document-models/index.d.mts +0 -83
  170. package/dist/node/document-models/index.d.mts.map +0 -1
  171. package/dist/node/editors/document-model-editor/index.d.mts +0 -1
  172. package/dist/node/editors/document-model-editor/module.d.mts +0 -7
  173. package/dist/node/editors/document-model-editor/module.d.mts.map +0 -1
  174. package/dist/node/editors/generic-drive-explorer/index.d.mts +0 -70
  175. package/dist/node/editors/generic-drive-explorer/index.d.mts.map +0 -1
  176. package/dist/node/editors/generic-drive-explorer/module.d.mts +0 -7
  177. package/dist/node/editors/generic-drive-explorer/module.d.mts.map +0 -1
  178. package/dist/node/editors/index.d.mts +0 -3
  179. package/dist/node/index.d.mts +0 -13
  180. package/dist/node/index.d.mts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../build.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/document-model/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=document-skip-operations.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-skip-operations.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/document-skip-operations.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prune.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prune.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/prune.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=reducer.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reducer.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/reducer.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skip-operations.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skip-operations.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/skip-operations.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=validation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/validation.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=versioning.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versioning.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/versioning.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=zip.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip.test.d.ts","sourceRoot":"","sources":["../../../../document-models/document-model/test/zip.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { type DocumentModelModule } from "@powerhousedao/shared/document-model";
2
+ export declare const documentModels: DocumentModelModule<any>[];
3
+ //# sourceMappingURL=document-models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-models.d.ts","sourceRoot":"","sources":["../../document-models/document-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAGhF,eAAO,MAAM,cAAc,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAGpD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { driveDocumentModelModule } from "@powerhousedao/shared/document-drive";
2
+ export { documentModelDocumentModelModule } from "document-model";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../document-models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
2
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/button.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM,0NAYjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const baseKeymap: import("@codemirror/view").KeyBinding[];
2
+ export declare const baseEditorExtensions: import("@codemirror/state").Extension[];
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../editors/document-model-editor/components/code-editors/constants.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,UAAU,yCAStB,CAAC;AAEF,eAAO,MAAM,oBAAoB,yCAmBhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function makeUpdateHandler(readonly: boolean | undefined, timeoutRef: React.MutableRefObject<NodeJS.Timeout | null>, updateDocumentInModel?: (newDoc: string) => void): import("@codemirror/state").Extension;
2
+ export declare function makeFocusHandler(readonly: boolean | undefined, timeoutRef: React.MutableRefObject<NodeJS.Timeout | null>, updateDocumentInModel?: (newDoc: string) => void): import("@codemirror/state").Extension;
3
+ export declare function makePasteHandler(readonly: boolean | undefined, timeoutRef: React.MutableRefObject<NodeJS.Timeout | null>, updateDocumentInModel?: (newDoc: string) => void): import("@codemirror/state").Extension;
4
+ //# sourceMappingURL=factories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../../../editors/document-model-editor/components/code-editors/factories.ts"],"names":[],"mappings":"AAMA,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,EACzD,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,yCAoBjD;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,EACzD,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,yCAWjD;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,EACzD,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,yCAcjD"}
@@ -0,0 +1,10 @@
1
+ import type { Diagnostic } from "@codemirror/lint";
2
+ type Props = {
3
+ doc: string;
4
+ readonly?: boolean;
5
+ updateDocumentInModel?: (newDoc: string) => void;
6
+ customLinter?: (doc: string) => Diagnostic[];
7
+ };
8
+ declare const GraphqlEditor: import("react").NamedExoticComponent<Props>;
9
+ export default GraphqlEditor;
10
+ //# sourceMappingURL=graphql-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-editor.d.ts","sourceRoot":"","sources":["../../../../../editors/document-model-editor/components/code-editors/graphql-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAuBnD,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,UAAU,EAAE,CAAC;CAC9C,CAAC;AAEF,QAAA,MAAM,aAAa,6CAoFjB,CAAC;AAEH,eAAe,aAAa,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { Compartment } from "@codemirror/state";
2
+ import type { EditorView } from "@codemirror/view";
3
+ export type EditorConfig = {
4
+ doc: string;
5
+ readonly?: boolean;
6
+ updateDocumentInModel?: (newDoc: string) => void;
7
+ };
8
+ export declare function useEditorRefs(): {
9
+ editorRef: import("react").RefObject<HTMLDivElement | null>;
10
+ viewRef: import("react").RefObject<EditorView | null>;
11
+ updateListenerCompartment: import("react").RefObject<Compartment>;
12
+ focusHandlerCompartment: import("react").RefObject<Compartment>;
13
+ pasteHandlerCompartment: import("react").RefObject<Compartment>;
14
+ timeoutRef: import("react").RefObject<NodeJS.Timeout | null>;
15
+ };
16
+ export declare function useEditorCleanup(viewRef: React.MutableRefObject<EditorView | null>): void;
17
+ export declare function useHandlerReconfiguration(view: EditorView | null, readonly: boolean | undefined, timeoutRef: React.MutableRefObject<NodeJS.Timeout | null>, updateDocumentInModel: ((newDoc: string) => void) | undefined, compartments: {
18
+ updateListener: Compartment;
19
+ focusHandler: Compartment;
20
+ pasteHandler: Compartment;
21
+ }): void;
22
+ export declare function useDocumentSync(view: EditorView | null, doc: string): void;
23
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../editors/document-model-editor/components/code-editors/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,wBAAgB,aAAa;;;;;;;EAgB5B;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,UAAU,GAAG,IAAI,CAAC,QAUnD;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,EACzD,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,EAC7D,YAAY,EAAE;IACZ,cAAc,EAAE,WAAW,CAAC;IAC5B,YAAY,EAAE,WAAW,CAAC;IAC1B,YAAY,EAAE,WAAW,CAAC;CAC3B,QAmBF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,QAYnE"}
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ doc: string;
3
+ readonly?: boolean;
4
+ updateDocumentInModel?: (newDoc: string) => void;
5
+ };
6
+ declare const JSONEditor: import("react").NamedExoticComponent<Props>;
7
+ export default JSONEditor;
8
+ //# sourceMappingURL=json-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-editor.d.ts","sourceRoot":"","sources":["../../../../../editors/document-model-editor/components/code-editors/json-editor.tsx"],"names":[],"mappings":"AAmBA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,QAAA,MAAM,UAAU,6CA0Dd,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Diagnostic } from "@codemirror/lint";
2
+ import type { GraphQLSchema } from "graphql";
3
+ import { GraphQLError } from "graphql";
4
+ export declare function convertGraphQLErrorToDiagnostic(error: GraphQLError): Diagnostic;
5
+ export declare function makeLinter(schema: GraphQLSchema, customLinter?: (doc: string) => Diagnostic[]): import("@codemirror/state").Extension;
6
+ //# sourceMappingURL=linting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linting.d.ts","sourceRoot":"","sources":["../../../../../editors/document-model-editor/components/code-editors/linting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AAOrD,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,YAAY,GAClB,UAAU,CAOZ;AASD,wBAAgB,UAAU,CACxB,MAAM,EAAE,aAAa,EACrB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,UAAU,EAAE,yCAmD7C"}
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ className?: string;
3
+ size?: "sm" | "md" | "lg";
4
+ margin?: "sm" | "md" | "lg";
5
+ };
6
+ export declare function Divider({ className, size, margin }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/divider.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC7B,CAAC;AACF,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,IAAW,EAAE,MAAa,EAAE,EAAE,KAAK,2CAkBvE"}
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ errors: string;
3
+ };
4
+ export declare function Errors({ errors }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/errors.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,2CAUvC"}
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type * as LabelPrimitive from "@radix-ui/react-label";
3
+ import type { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
4
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
5
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
8
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
9
+ declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
10
+ declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
11
+ export { Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
12
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAO/E,QAAA,MAAM,IAAI,4MAAe,CAAC;AAE1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,QAAQ,6GAWZ,CAAC;AAGH,QAAA,MAAM,SAAS,yJAcb,CAAC;AAGH,QAAA,MAAM,WAAW,8JAkBf,CAAC;AAGH,QAAA,MAAM,eAAe,yHAcnB,CAAC;AAGH,QAAA,MAAM,WAAW,yHAqBf,CAAC;AAGH,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ }
4
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export { Input };
6
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAElF,QAAA,MAAM,KAAK,qFAcV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ import type { VariantProps } from "class-variance-authority";
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
+ export { Label };
6
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQ7D,QAAA,MAAM,KAAK,4PAUT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ import type { Scope } from "../types/documents.js";
3
+ export declare const MetadataFormSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ documentType: z.ZodString;
6
+ extension: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
+ description: z.ZodString;
8
+ authorName: z.ZodString;
9
+ authorWebsite: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export type MetadataFormValues = z.infer<typeof MetadataFormSchema>;
12
+ type Props = MetadataFormValues & {
13
+ globalStateSchema: string;
14
+ localStateSchema: string;
15
+ setModelName: (name: string) => void;
16
+ setModelId: (id: string) => void;
17
+ setModelExtension: (extension: string) => void;
18
+ setModelDescription: (description: string) => void;
19
+ setAuthorName: (authorName: string) => void;
20
+ setAuthorWebsite: (authorWebsite: string) => void;
21
+ setStateSchema: (schema: string, scope: Scope) => void;
22
+ };
23
+ export default function ModelMetadata(props: Props): import("react/jsx-runtime").JSX.Element;
24
+ export declare function ModelNameForm(props: Props): import("react/jsx-runtime").JSX.Element;
25
+ export declare function DocumentTypeForm(props: Props): import("react/jsx-runtime").JSX.Element;
26
+ export declare function ModelExtensionForm(props: Props): import("react/jsx-runtime").JSX.Element;
27
+ export declare function DescriptionForm(props: Props): import("react/jsx-runtime").JSX.Element;
28
+ export declare function AuthorNameForm(props: Props): import("react/jsx-runtime").JSX.Element;
29
+ export declare function AuthorWebsiteForm(props: Props): import("react/jsx-runtime").JSX.Element;
30
+ export {};
31
+ //# sourceMappingURL=model-metadata-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-metadata-form.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/model-metadata-form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAQnD,eAAO,MAAM,kBAAkB;;;;;;;iBAO7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,KAAK,KAAK,GAAG,kBAAkB,GAAG;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,mBAAmB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,KAAK,2CAuBjD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,2CA8DzC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,2CAa5C;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,2CAa9C;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,2CAc3C;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,2CAa1C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,2CAgB7C"}
@@ -0,0 +1,10 @@
1
+ import type { ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ modules?: ModuleSpecification[];
4
+ module?: ModuleSpecification;
5
+ onAddModule: (name: string) => Promise<string | undefined>;
6
+ updateModuleName: (id: string, name: string) => void;
7
+ };
8
+ export declare function ModuleForm({ module, onAddModule, updateModuleName, modules, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=module-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-form.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/module-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAIhF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3D,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,OAAY,GACb,EAAE,KAAK,2CA8BP"}
@@ -0,0 +1,22 @@
1
+ import type { ModuleSpecification as TModule } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ module?: TModule;
4
+ modules?: TModule[];
5
+ allOperations: TModule["operations"];
6
+ lastCreatedModuleId: string | null;
7
+ onAddModule: (name: string) => Promise<string | undefined>;
8
+ updateModuleName: (id: string, name: string) => void;
9
+ deleteModule: (id: string) => void;
10
+ updateOperationName: (id: string, name: string) => void;
11
+ deleteOperation: (id: string) => void;
12
+ addOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
13
+ updateOperationSchema: (id: string, newDoc: string) => void;
14
+ setOperationDescription: (id: string, description: string) => void;
15
+ addOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
16
+ deleteOperationError: (id: string) => void;
17
+ setOperationErrorName: (operationId: string, errorId: string, name: string) => void;
18
+ toggleNoInputRequired: (id: string, noInputRequired: boolean) => void;
19
+ };
20
+ export declare function Module(props: Props): import("react/jsx-runtime").JSX.Element;
21
+ export {};
22
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/module.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAG3F,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3D,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,4BAA4B,EAAE,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,uBAAuB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,EAAE,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;IACV,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;CACvE,CAAC;AACF,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,2CAiElC"}
@@ -0,0 +1,20 @@
1
+ import type { ModuleSpecification as TModule } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ modules: TModule[];
4
+ allOperations: TModule["operations"];
5
+ addModule: (name: string) => Promise<string | undefined>;
6
+ updateModuleName: (id: string, name: string) => void;
7
+ deleteModule: (id: string) => void;
8
+ updateOperationName: (id: string, name: string) => void;
9
+ deleteOperation: (id: string) => void;
10
+ addOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
11
+ updateOperationSchema: (id: string, newDoc: string) => void;
12
+ setOperationDescription: (id: string, description: string) => void;
13
+ addOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
14
+ deleteOperationError: (id: string) => void;
15
+ setOperationErrorName: (operationId: string, errorId: string, name: string) => void;
16
+ toggleNoInputRequired: (id: string, noInputRequired: boolean) => void;
17
+ };
18
+ export default function Modules({ modules, allOperations, addModule, updateModuleName, deleteModule, updateOperationName, deleteOperation, addOperationAndInitialSchema, updateOperationSchema, setOperationDescription, addOperationError, deleteOperationError, setOperationErrorName, toggleNoInputRequired, }: Props): import("react/jsx-runtime").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=modules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/modules.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,IAAI,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAI3F,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzD,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,4BAA4B,EAAE,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,uBAAuB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,EAAE,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;IACV,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;CACvE,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,EAAE,KAAK,2CAoEP"}
@@ -0,0 +1,9 @@
1
+ import type { ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ operation: ModuleSpecification["operations"][number];
4
+ focusOnMount?: boolean;
5
+ setOperationDescription: (id: string, description: string) => void;
6
+ };
7
+ export declare function OperationDescriptionForm({ operation, focusOnMount, setOperationDescription, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=operation-description-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-description-form.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/operation-description-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAIhF,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uBAAuB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACpE,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,YAAY,EACZ,uBAAuB,GACxB,EAAE,KAAK,2CAsBP"}
@@ -0,0 +1,13 @@
1
+ import type { OperationErrorSpecification, ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ operation: ModuleSpecification["operations"][number];
4
+ error?: OperationErrorSpecification;
5
+ focusOnMount?: boolean;
6
+ onSubmit?: () => void;
7
+ onAddOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
8
+ deleteOperationError: (id: string) => void;
9
+ setOperationErrorName: (operationId: string, errorId: string, name: string) => void;
10
+ };
11
+ export declare function OperationErrorForm({ operation, error, focusOnMount, onSubmit, onAddOperationError, deleteOperationError, setOperationErrorName, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=operation-error-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-error-form.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/operation-error-form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,2BAA2B,EAC3B,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAI9C,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,KAAK,CAAC,EAAE,2BAA2B,CAAC;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,mBAAmB,EAAE,CACnB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,EAAE,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;CACX,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,EAAE,KAAK,2CA0DP"}
@@ -0,0 +1,10 @@
1
+ import type { ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ operation: ModuleSpecification["operations"][number];
4
+ addOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
5
+ deleteOperationError: (id: string) => void;
6
+ setOperationErrorName: (operationId: string, errorId: string, name: string) => void;
7
+ };
8
+ export declare function OperationErrors({ operation, addOperationError, deleteOperationError, setOperationErrorName, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=operation-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-errors.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/operation-errors.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAIhF,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,EAAE,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;CACX,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,GACtB,EAAE,KAAK,2CA8CP"}
@@ -0,0 +1,13 @@
1
+ import type { ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ module: ModuleSpecification;
4
+ operation?: ModuleSpecification["operations"][number];
5
+ focusOnMount?: boolean;
6
+ allOperationNames: string[];
7
+ onAddOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
8
+ updateOperationName: (id: string, name: string) => void;
9
+ deleteOperation: (id: string) => void;
10
+ };
11
+ export declare function OperationForm({ operation, module, focusOnMount, allOperationNames, onAddOperationAndInitialSchema, updateOperationName, deleteOperation, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=operation-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-form.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/operation-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAKhF,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,8BAA8B,EAAE,CAC9B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,MAAM,EACN,YAAY,EACZ,iBAAiB,EACjB,8BAA8B,EAC9B,mBAAmB,EACnB,eAAe,GAChB,EAAE,KAAK,2CAuDP"}
@@ -0,0 +1,23 @@
1
+ import type { ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ import type { DocumentActionHandlers } from "../types/documents.js";
3
+ export type WrappedHandlers = DocumentActionHandlers & {
4
+ addOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
5
+ };
6
+ type Props = {
7
+ lastCreatedOperationId: string | null;
8
+ operation: ModuleSpecification["operations"][number];
9
+ module: ModuleSpecification;
10
+ allOperationNames: string[];
11
+ onAddOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
12
+ updateOperationName: (id: string, name: string) => void;
13
+ deleteOperation: (id: string) => void;
14
+ updateOperationSchema: (id: string, newDoc: string) => void;
15
+ setOperationDescription: (id: string, description: string) => void;
16
+ addOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
17
+ deleteOperationError: (id: string) => void;
18
+ setOperationErrorName: (operationId: string, errorId: string, name: string) => void;
19
+ toggleNoInputRequired: (id: string, noInputRequired: boolean) => void;
20
+ };
21
+ export declare function Operation(props: Props): import("react/jsx-runtime").JSX.Element;
22
+ export {};
23
+ //# sourceMappingURL=operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/operation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAOpE,MAAM,MAAM,eAAe,GAAG,sBAAsB,GAAG;IACrD,4BAA4B,EAAE,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClC,CAAC;AACF,KAAK,KAAK,GAAG;IACX,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,SAAS,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,EAAE,mBAAmB,CAAC;IAC5B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,8BAA8B,EAAE,CAC9B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,uBAAuB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,EAAE,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;IACV,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;CACvE,CAAC;AACF,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,2CAoGrC"}
@@ -0,0 +1,18 @@
1
+ import type { ModuleSpecification } from "@powerhousedao/shared/document-model";
2
+ type Props = {
3
+ module: ModuleSpecification;
4
+ allOperations: ModuleSpecification["operations"];
5
+ shouldFocusNewOperation: boolean;
6
+ updateOperationName: (id: string, name: string) => void;
7
+ deleteOperation: (id: string) => void;
8
+ addOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
9
+ updateOperationSchema: (id: string, newDoc: string) => void;
10
+ setOperationDescription: (id: string, description: string) => void;
11
+ addOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
12
+ deleteOperationError: (id: string) => void;
13
+ setOperationErrorName: (operationId: string, errorId: string, name: string) => void;
14
+ toggleNoInputRequired: (id: string, noInputRequired: boolean) => void;
15
+ };
16
+ export declare function Operations({ module, allOperations, shouldFocusNewOperation, updateOperationName, deleteOperation, addOperationAndInitialSchema, addOperationError, deleteOperationError, setOperationErrorName, updateOperationSchema, setOperationDescription, toggleNoInputRequired, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/operations.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAIhF,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,mBAAmB,CAAC;IAC5B,aAAa,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACjD,uBAAuB,EAAE,OAAO,CAAC;IACjC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,4BAA4B,EAAE,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,uBAAuB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,EAAE,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,KACT,IAAI,CAAC;IACV,qBAAqB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;CACvE,CAAC;AACF,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,EAAE,KAAK,2CAsDP"}
@@ -0,0 +1,5 @@
1
+ import type { StateValidationError } from "../utils/helpers.js";
2
+ export declare function StateValidationErrorMessage({ error, }: {
3
+ error: StateValidationError;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=state-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-error.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/state-error.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,wBAAgB,2BAA2B,CAAC,EAC1C,KAAK,GACN,EAAE;IACD,KAAK,EAAE,oBAAoB,CAAC;CAC7B,2CA2DA"}
@@ -0,0 +1,15 @@
1
+ import type { Scope } from "../types/documents.js";
2
+ type Props = {
3
+ modelName: string;
4
+ globalStateSchema: string;
5
+ localStateSchema: string;
6
+ globalStateInitialValue: string;
7
+ localStateInitialValue: string;
8
+ setStateSchema: (doc: string, scope: Scope) => void;
9
+ setInitialState: (doc: string, scope: Scope) => void;
10
+ currentScope: Scope;
11
+ onScopeChange: (scope: Scope) => void;
12
+ };
13
+ export default function StateSchemas({ modelName, globalStateSchema, localStateSchema, globalStateInitialValue, localStateInitialValue, setStateSchema, setInitialState, currentScope, onScopeChange, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=state-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state-schemas.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/state-schemas.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAcnD,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpD,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrD,YAAY,EAAE,KAAK,CAAC;IACpB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACvC,CAAC;AA+LF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,aAAa,GACd,EAAE,KAAK,2CAmDP"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
8
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAGtD,QAAA,MAAM,IAAI,gGAAqB,CAAC;AAEhC,QAAA,MAAM,QAAQ,uJAYZ,CAAC;AAGH,QAAA,MAAM,WAAW,gKAYf,CAAC;AAGH,QAAA,MAAM,WAAW,0JAKf,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ }
4
+ export interface TextareaHandle {
5
+ focus: () => void;
6
+ element: HTMLTextAreaElement | null;
7
+ }
8
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<TextareaHandle>>;
9
+ //# sourceMappingURL=text-area.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/text-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAE3F,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,QAAQ,sFAwCpB,CAAC"}
@@ -0,0 +1,21 @@
1
+ type TextFieldProps = {
2
+ name: string;
3
+ value: string | null | undefined;
4
+ onSubmit: (value: string) => void;
5
+ label?: string;
6
+ placeholder?: string;
7
+ className?: string;
8
+ rows?: number;
9
+ focusOnMount?: boolean;
10
+ required?: boolean;
11
+ allowEmpty?: boolean;
12
+ unique?: string[];
13
+ shouldReset?: boolean;
14
+ onChange?: (value: string) => void;
15
+ };
16
+ type TextFieldHandle = {
17
+ focus: () => void;
18
+ };
19
+ export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<TextFieldHandle>>;
20
+ export {};
21
+ //# sourceMappingURL=text-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../editors/document-model-editor/components/text-field.tsx"],"names":[],"mappings":"AAyBA,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,4GA2IrB,CAAC"}