@powerhousedao/builder-tools 6.0.0-dev.6 → 6.0.0-dev.61

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 (232) hide show
  1. package/dist/connect-utils/helpers.d.ts +1 -1
  2. package/dist/connect-utils/helpers.d.ts.map +1 -1
  3. package/dist/connect-utils/helpers.js +2 -2
  4. package/dist/connect-utils/helpers.js.map +1 -1
  5. package/dist/connect-utils/index.d.ts +0 -1
  6. package/dist/connect-utils/index.d.ts.map +1 -1
  7. package/dist/connect-utils/index.js +0 -1
  8. package/dist/connect-utils/index.js.map +1 -1
  9. package/dist/connect-utils/types.d.ts +0 -1
  10. package/dist/connect-utils/types.d.ts.map +1 -1
  11. package/dist/connect-utils/vite-config.d.ts.map +1 -1
  12. package/dist/connect-utils/vite-config.js +19 -4
  13. package/dist/connect-utils/vite-config.js.map +1 -1
  14. package/dist/editor-utils/index.d.ts +0 -2
  15. package/dist/editor-utils/index.d.ts.map +1 -1
  16. package/dist/editor-utils/index.js +0 -2
  17. package/dist/editor-utils/index.js.map +1 -1
  18. package/dist/tsconfig.tsbuildinfo +1 -1
  19. package/package.json +21 -108
  20. package/dist/browser.d.ts +0 -2
  21. package/dist/browser.d.ts.map +0 -1
  22. package/dist/browser.js +0 -2
  23. package/dist/browser.js.map +0 -1
  24. package/dist/connect-utils/env-config.d.ts +0 -844
  25. package/dist/connect-utils/env-config.d.ts.map +0 -1
  26. package/dist/connect-utils/env-config.js +0 -518
  27. package/dist/connect-utils/env-config.js.map +0 -1
  28. package/dist/document-model-editor/components/button.d.ts +0 -2
  29. package/dist/document-model-editor/components/button.d.ts.map +0 -1
  30. package/dist/document-model-editor/components/button.js +0 -8
  31. package/dist/document-model-editor/components/button.js.map +0 -1
  32. package/dist/document-model-editor/components/code-editors/constants.d.ts +0 -3
  33. package/dist/document-model-editor/components/code-editors/constants.d.ts.map +0 -1
  34. package/dist/document-model-editor/components/code-editors/constants.js +0 -38
  35. package/dist/document-model-editor/components/code-editors/constants.js.map +0 -1
  36. package/dist/document-model-editor/components/code-editors/factories.d.ts +0 -4
  37. package/dist/document-model-editor/components/code-editors/factories.d.ts.map +0 -1
  38. package/dist/document-model-editor/components/code-editors/factories.js +0 -47
  39. package/dist/document-model-editor/components/code-editors/factories.js.map +0 -1
  40. package/dist/document-model-editor/components/code-editors/graphql-editor.d.ts +0 -10
  41. package/dist/document-model-editor/components/code-editors/graphql-editor.d.ts.map +0 -1
  42. package/dist/document-model-editor/components/code-editors/graphql-editor.js +0 -73
  43. package/dist/document-model-editor/components/code-editors/graphql-editor.js.map +0 -1
  44. package/dist/document-model-editor/components/code-editors/hooks.d.ts +0 -23
  45. package/dist/document-model-editor/components/code-editors/hooks.d.ts.map +0 -1
  46. package/dist/document-model-editor/components/code-editors/hooks.js +0 -59
  47. package/dist/document-model-editor/components/code-editors/hooks.js.map +0 -1
  48. package/dist/document-model-editor/components/code-editors/json-editor.d.ts +0 -8
  49. package/dist/document-model-editor/components/code-editors/json-editor.d.ts.map +0 -1
  50. package/dist/document-model-editor/components/code-editors/json-editor.js +0 -47
  51. package/dist/document-model-editor/components/code-editors/json-editor.js.map +0 -1
  52. package/dist/document-model-editor/components/code-editors/linting.d.ts +0 -6
  53. package/dist/document-model-editor/components/code-editors/linting.d.ts.map +0 -1
  54. package/dist/document-model-editor/components/code-editors/linting.js +0 -59
  55. package/dist/document-model-editor/components/code-editors/linting.js.map +0 -1
  56. package/dist/document-model-editor/components/divider.d.ts +0 -8
  57. package/dist/document-model-editor/components/divider.d.ts.map +0 -1
  58. package/dist/document-model-editor/components/divider.js +0 -22
  59. package/dist/document-model-editor/components/divider.js.map +0 -1
  60. package/dist/document-model-editor/components/errors.d.ts +0 -6
  61. package/dist/document-model-editor/components/errors.d.ts.map +0 -1
  62. package/dist/document-model-editor/components/errors.js +0 -5
  63. package/dist/document-model-editor/components/errors.js.map +0 -1
  64. package/dist/document-model-editor/components/form.d.ts +0 -12
  65. package/dist/document-model-editor/components/form.d.ts.map +0 -1
  66. package/dist/document-model-editor/components/form.js +0 -43
  67. package/dist/document-model-editor/components/form.js.map +0 -1
  68. package/dist/document-model-editor/components/input.d.ts +0 -6
  69. package/dist/document-model-editor/components/input.d.ts.map +0 -1
  70. package/dist/document-model-editor/components/input.js +0 -9
  71. package/dist/document-model-editor/components/input.js.map +0 -1
  72. package/dist/document-model-editor/components/label.d.ts +0 -6
  73. package/dist/document-model-editor/components/label.d.ts.map +0 -1
  74. package/dist/document-model-editor/components/label.js +0 -10
  75. package/dist/document-model-editor/components/label.js.map +0 -1
  76. package/dist/document-model-editor/components/model-metadata-form.d.ts +0 -31
  77. package/dist/document-model-editor/components/model-metadata-form.d.ts.map +0 -1
  78. package/dist/document-model-editor/components/model-metadata-form.js +0 -70
  79. package/dist/document-model-editor/components/model-metadata-form.js.map +0 -1
  80. package/dist/document-model-editor/components/module-form.d.ts +0 -10
  81. package/dist/document-model-editor/components/module-form.d.ts.map +0 -1
  82. package/dist/document-model-editor/components/module-form.js +0 -22
  83. package/dist/document-model-editor/components/module-form.js.map +0 -1
  84. package/dist/document-model-editor/components/module.d.ts +0 -22
  85. package/dist/document-model-editor/components/module.d.ts.map +0 -1
  86. package/dist/document-model-editor/components/module.js +0 -10
  87. package/dist/document-model-editor/components/module.js.map +0 -1
  88. package/dist/document-model-editor/components/modules.d.ts +0 -20
  89. package/dist/document-model-editor/components/modules.d.ts.map +0 -1
  90. package/dist/document-model-editor/components/modules.js +0 -17
  91. package/dist/document-model-editor/components/modules.js.map +0 -1
  92. package/dist/document-model-editor/components/operation-description-form.d.ts +0 -9
  93. package/dist/document-model-editor/components/operation-description-form.d.ts.map +0 -1
  94. package/dist/document-model-editor/components/operation-description-form.js +0 -13
  95. package/dist/document-model-editor/components/operation-description-form.js.map +0 -1
  96. package/dist/document-model-editor/components/operation-error-form.d.ts +0 -13
  97. package/dist/document-model-editor/components/operation-error-form.d.ts.map +0 -1
  98. package/dist/document-model-editor/components/operation-error-form.js +0 -40
  99. package/dist/document-model-editor/components/operation-error-form.js.map +0 -1
  100. package/dist/document-model-editor/components/operation-errors.d.ts +0 -10
  101. package/dist/document-model-editor/components/operation-errors.d.ts.map +0 -1
  102. package/dist/document-model-editor/components/operation-errors.js +0 -17
  103. package/dist/document-model-editor/components/operation-errors.js.map +0 -1
  104. package/dist/document-model-editor/components/operation-form.d.ts +0 -13
  105. package/dist/document-model-editor/components/operation-form.d.ts.map +0 -1
  106. package/dist/document-model-editor/components/operation-form.js +0 -37
  107. package/dist/document-model-editor/components/operation-form.js.map +0 -1
  108. package/dist/document-model-editor/components/operation.d.ts +0 -23
  109. package/dist/document-model-editor/components/operation.d.ts.map +0 -1
  110. package/dist/document-model-editor/components/operation.js +0 -25
  111. package/dist/document-model-editor/components/operation.js.map +0 -1
  112. package/dist/document-model-editor/components/operations.d.ts +0 -18
  113. package/dist/document-model-editor/components/operations.d.ts.map +0 -1
  114. package/dist/document-model-editor/components/operations.js +0 -20
  115. package/dist/document-model-editor/components/operations.js.map +0 -1
  116. package/dist/document-model-editor/components/state-error.d.ts +0 -5
  117. package/dist/document-model-editor/components/state-error.d.ts.map +0 -1
  118. package/dist/document-model-editor/components/state-error.js +0 -21
  119. package/dist/document-model-editor/components/state-error.js.map +0 -1
  120. package/dist/document-model-editor/components/state-schemas.d.ts +0 -15
  121. package/dist/document-model-editor/components/state-schemas.d.ts.map +0 -1
  122. package/dist/document-model-editor/components/state-schemas.js +0 -81
  123. package/dist/document-model-editor/components/state-schemas.js.map +0 -1
  124. package/dist/document-model-editor/components/tabs.d.ts +0 -8
  125. package/dist/document-model-editor/components/tabs.d.ts.map +0 -1
  126. package/dist/document-model-editor/components/tabs.js +0 -13
  127. package/dist/document-model-editor/components/tabs.js.map +0 -1
  128. package/dist/document-model-editor/components/text-area.d.ts +0 -9
  129. package/dist/document-model-editor/components/text-area.d.ts.map +0 -1
  130. package/dist/document-model-editor/components/text-area.js +0 -27
  131. package/dist/document-model-editor/components/text-area.js.map +0 -1
  132. package/dist/document-model-editor/components/text-field.d.ts +0 -21
  133. package/dist/document-model-editor/components/text-field.d.ts.map +0 -1
  134. package/dist/document-model-editor/components/text-field.js +0 -80
  135. package/dist/document-model-editor/components/text-field.js.map +0 -1
  136. package/dist/document-model-editor/config.d.ts +0 -3
  137. package/dist/document-model-editor/config.d.ts.map +0 -1
  138. package/dist/document-model-editor/config.js +0 -4
  139. package/dist/document-model-editor/config.js.map +0 -1
  140. package/dist/document-model-editor/constants/documents.d.ts +0 -13
  141. package/dist/document-model-editor/constants/documents.d.ts.map +0 -1
  142. package/dist/document-model-editor/constants/documents.js +0 -18
  143. package/dist/document-model-editor/constants/documents.js.map +0 -1
  144. package/dist/document-model-editor/constants/graphql-kinds.d.ts +0 -9
  145. package/dist/document-model-editor/constants/graphql-kinds.d.ts.map +0 -1
  146. package/dist/document-model-editor/constants/graphql-kinds.js +0 -13
  147. package/dist/document-model-editor/constants/graphql-kinds.js.map +0 -1
  148. package/dist/document-model-editor/context/form-context.d.ts +0 -11
  149. package/dist/document-model-editor/context/form-context.d.ts.map +0 -1
  150. package/dist/document-model-editor/context/form-context.js +0 -4
  151. package/dist/document-model-editor/context/form-context.js.map +0 -1
  152. package/dist/document-model-editor/context/schema-context.d.ts +0 -18
  153. package/dist/document-model-editor/context/schema-context.d.ts.map +0 -1
  154. package/dist/document-model-editor/context/schema-context.js +0 -129
  155. package/dist/document-model-editor/context/schema-context.js.map +0 -1
  156. package/dist/document-model-editor/document-model-editor.stories.d.ts +0 -8
  157. package/dist/document-model-editor/document-model-editor.stories.d.ts.map +0 -1
  158. package/dist/document-model-editor/document-model-editor.stories.js +0 -267
  159. package/dist/document-model-editor/document-model-editor.stories.js.map +0 -1
  160. package/dist/document-model-editor/editor.d.ts +0 -2
  161. package/dist/document-model-editor/editor.d.ts.map +0 -1
  162. package/dist/document-model-editor/editor.js +0 -217
  163. package/dist/document-model-editor/editor.js.map +0 -1
  164. package/dist/document-model-editor/hooks/index.d.ts +0 -3
  165. package/dist/document-model-editor/hooks/index.d.ts.map +0 -1
  166. package/dist/document-model-editor/hooks/index.js +0 -3
  167. package/dist/document-model-editor/hooks/index.js.map +0 -1
  168. package/dist/document-model-editor/hooks/useDocumentModelDocument.d.ts +0 -5
  169. package/dist/document-model-editor/hooks/useDocumentModelDocument.d.ts.map +0 -1
  170. package/dist/document-model-editor/hooks/useDocumentModelDocument.js +0 -8
  171. package/dist/document-model-editor/hooks/useDocumentModelDocument.js.map +0 -1
  172. package/dist/document-model-editor/hooks/useFormField.d.ts +0 -13
  173. package/dist/document-model-editor/hooks/useFormField.d.ts.map +0 -1
  174. package/dist/document-model-editor/hooks/useFormField.js +0 -22
  175. package/dist/document-model-editor/hooks/useFormField.js.map +0 -1
  176. package/dist/document-model-editor/index.d.ts +0 -2
  177. package/dist/document-model-editor/index.d.ts.map +0 -1
  178. package/dist/document-model-editor/index.js +0 -2
  179. package/dist/document-model-editor/index.js.map +0 -1
  180. package/dist/document-model-editor/module.d.ts +0 -3
  181. package/dist/document-model-editor/module.d.ts.map +0 -1
  182. package/dist/document-model-editor/module.js +0 -10
  183. package/dist/document-model-editor/module.js.map +0 -1
  184. package/dist/document-model-editor/schemas/inputs.d.ts +0 -25
  185. package/dist/document-model-editor/schemas/inputs.d.ts.map +0 -1
  186. package/dist/document-model-editor/schemas/inputs.js +0 -71
  187. package/dist/document-model-editor/schemas/inputs.js.map +0 -1
  188. package/dist/document-model-editor/schemas/utils.d.ts +0 -3
  189. package/dist/document-model-editor/schemas/utils.d.ts.map +0 -1
  190. package/dist/document-model-editor/schemas/utils.js +0 -3
  191. package/dist/document-model-editor/schemas/utils.js.map +0 -1
  192. package/dist/document-model-editor/types/documents.d.ts +0 -26
  193. package/dist/document-model-editor/types/documents.d.ts.map +0 -1
  194. package/dist/document-model-editor/types/documents.js +0 -2
  195. package/dist/document-model-editor/types/documents.js.map +0 -1
  196. package/dist/document-model-editor/types.d.ts +0 -2
  197. package/dist/document-model-editor/types.d.ts.map +0 -1
  198. package/dist/document-model-editor/types.js +0 -2
  199. package/dist/document-model-editor/types.js.map +0 -1
  200. package/dist/document-model-editor/utils/helpers.d.ts +0 -112
  201. package/dist/document-model-editor/utils/helpers.d.ts.map +0 -1
  202. package/dist/document-model-editor/utils/helpers.js +0 -920
  203. package/dist/document-model-editor/utils/helpers.js.map +0 -1
  204. package/dist/document-model-editor/utils/linting.d.ts +0 -7
  205. package/dist/document-model-editor/utils/linting.d.ts.map +0 -1
  206. package/dist/document-model-editor/utils/linting.js +0 -49
  207. package/dist/document-model-editor/utils/linting.js.map +0 -1
  208. package/dist/document-model-editor/utils/style.d.ts +0 -3
  209. package/dist/document-model-editor/utils/style.d.ts.map +0 -1
  210. package/dist/document-model-editor/utils/style.js +0 -6
  211. package/dist/document-model-editor/utils/style.js.map +0 -1
  212. package/dist/editor-utils/hooks/index.d.ts +0 -2
  213. package/dist/editor-utils/hooks/index.d.ts.map +0 -1
  214. package/dist/editor-utils/hooks/index.js +0 -2
  215. package/dist/editor-utils/hooks/index.js.map +0 -1
  216. package/dist/editor-utils/hooks/useEnsInfo.d.ts +0 -15
  217. package/dist/editor-utils/hooks/useEnsInfo.d.ts.map +0 -1
  218. package/dist/editor-utils/hooks/useEnsInfo.js +0 -64
  219. package/dist/editor-utils/hooks/useEnsInfo.js.map +0 -1
  220. package/dist/editor-utils/storybook.d.ts +0 -32
  221. package/dist/editor-utils/storybook.d.ts.map +0 -1
  222. package/dist/editor-utils/storybook.js +0 -104
  223. package/dist/editor-utils/storybook.js.map +0 -1
  224. package/dist/style.css +0 -890
  225. package/dist/test/helpers.test.d.ts +0 -2
  226. package/dist/test/helpers.test.d.ts.map +0 -1
  227. package/dist/test/helpers.test.js +0 -805
  228. package/dist/test/helpers.test.js.map +0 -1
  229. package/dist/test/index.d.ts +0 -2
  230. package/dist/test/index.d.ts.map +0 -1
  231. package/dist/test/index.js +0 -2
  232. package/dist/test/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../document-model-editor/index.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { EditorModule } from "document-model";
2
- export declare const documentModelEditorModule: EditorModule;
3
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../document-model-editor/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,eAAO,MAAM,yBAAyB,EAAE,YAOvC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { lazy } from "react";
2
- export const documentModelEditorModule = {
3
- config: {
4
- id: "document-model-editor-v2",
5
- name: "Document Model Editor",
6
- },
7
- documentTypes: ["powerhouse/document-model"],
8
- Component: lazy(() => import("./editor.js")),
9
- };
10
- //# sourceMappingURL=module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../document-model-editor/module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,MAAM,CAAC,MAAM,yBAAyB,GAAiB;IACrD,MAAM,EAAE;QACN,EAAE,EAAE,0BAA0B;QAC9B,IAAI,EAAE,uBAAuB;KAC9B;IACD,aAAa,EAAE,CAAC,2BAA2B,CAAC;IAC5C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;CAC7C,CAAC"}
@@ -1,25 +0,0 @@
1
- import { z } from "zod";
2
- export declare function containsSpaces(s: string): boolean;
3
- export declare function replaceSpaces(s: string): string;
4
- type SchemaOptions = {
5
- required?: boolean;
6
- allowEmpty?: boolean;
7
- unique?: string[];
8
- };
9
- export declare function createNameSchema(options?: SchemaOptions): z.ZodString | z.ZodOptional<z.ZodString>;
10
- export declare function createConstantCaseSchema(options?: SchemaOptions): z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>> | z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
11
- export declare function createLowercaseSnakeCaseSchema(options?: SchemaOptions): z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>> | z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
12
- export declare function toLowercaseSnakeCase(value: string, options?: SchemaOptions): LowercaseSnakeCase;
13
- export declare function toConstantCase(value: string, options?: SchemaOptions): ConstantCase;
14
- export type SnakeCase = `${string}_${string}`;
15
- export type LowercaseSnakeCase = Lowercase<SnakeCase>;
16
- export type ConstantCase = Uppercase<SnakeCase>;
17
- export type Prettify<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
20
- export declare const AuthorSchema: z.ZodDefault<z.ZodObject<{
21
- name: z.ZodString | z.ZodOptional<z.ZodString>;
22
- website: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>>;
23
- }, z.core.$strip>>;
24
- export {};
25
- //# sourceMappingURL=inputs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../document-model-editor/schemas/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,WAEvC;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,UAEtC;AAED,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,aAAkB,4CAkC3D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,aAAkB,sKAMnE;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,aAAkB,sKAMzE;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,aAAkB,GAItB,kBAAkB,CACxB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAGlE,YAAY,CAClB;AAED,MAAM,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAC9C,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC;AAChD,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAC;AAEP,eAAO,MAAM,YAAY;;;kBAWrB,CAAC"}
@@ -1,71 +0,0 @@
1
- import { z } from "zod";
2
- import validator from "validator";
3
- import { snakeCase, constantCase } from "change-case";
4
- const whitespaceRegex = /\s+/g;
5
- export function containsSpaces(s) {
6
- return whitespaceRegex.test(s);
7
- }
8
- export function replaceSpaces(s) {
9
- return s.replace(whitespaceRegex, "_");
10
- }
11
- export function createNameSchema(options = {}) {
12
- const { required = false, allowEmpty = false, unique = [] } = options;
13
- const baseSchema = allowEmpty ? z.string() : z.string().min(1);
14
- const uniqueRefinement = baseSchema.refine((value) => {
15
- if (!value && allowEmpty)
16
- return true;
17
- return !unique
18
- .map((n) => n.toLowerCase())
19
- .includes(value.replace(/^\s+|\s+$/g, "_").toLowerCase());
20
- }, { message: "Item with this name already exists" });
21
- if (!required) {
22
- return unique.length > 0
23
- ? z
24
- .string()
25
- .optional()
26
- .refine((value) => {
27
- if (value === undefined)
28
- return true;
29
- if (!value && allowEmpty)
30
- return true;
31
- return !unique
32
- .map((n) => n.toLowerCase())
33
- .includes(value.replace(/^\s+|\s+$/g, "_").toLowerCase());
34
- }, { message: "Item with this name already exists" })
35
- : z.string().optional();
36
- }
37
- return unique.length > 0 ? uniqueRefinement : baseSchema;
38
- }
39
- export function createConstantCaseSchema(options = {}) {
40
- return createNameSchema(options)
41
- .transform((value) => (value ? value.toUpperCase() : value))
42
- .refine((value) => !value || validator.isUppercase(value), {
43
- message: "Must be uppercase",
44
- });
45
- }
46
- export function createLowercaseSnakeCaseSchema(options = {}) {
47
- return createNameSchema(options)
48
- .transform((value) => (value ? value.toLowerCase() : value))
49
- .refine((value) => !value || validator.isLowercase(value), {
50
- message: "Must be lowercase",
51
- });
52
- }
53
- export function toLowercaseSnakeCase(value, options = {}) {
54
- return createLowercaseSnakeCaseSchema(options).parse(snakeCase(value));
55
- }
56
- export function toConstantCase(value, options = {}) {
57
- return createConstantCaseSchema(options).parse(constantCase(value));
58
- }
59
- export const AuthorSchema = z
60
- .object({
61
- name: createNameSchema({ allowEmpty: true }),
62
- website: z
63
- .union([z.string().url(), z.literal("")])
64
- .optional()
65
- .default(""),
66
- })
67
- .default({
68
- name: "",
69
- website: "",
70
- });
71
- //# sourceMappingURL=inputs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../document-model-editor/schemas/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,eAAe,GAAG,MAAM,CAAC;AAE/B,MAAM,UAAU,cAAc,CAAC,CAAS;IACtC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,CAAS;IACrC,OAAO,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;AACzC,CAAC;AAQD,MAAM,UAAU,gBAAgB,CAAC,UAAyB,EAAE;IAC1D,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAA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AAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,IAAI,EAAE,gBAAgB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IAC5C,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;SACxC,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,CAAC;CACf,CAAC;KACD,OAAO,CAAC;IACP,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,EAAE;CACZ,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- export declare const EmptyStringSchema: z.ZodDefault<z.ZodString>;
3
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../document-model-editor/schemas/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,2BAAyB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { z } from "zod";
2
- export const EmptyStringSchema = z.string().default("");
3
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../document-model-editor/schemas/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC"}
@@ -1,26 +0,0 @@
1
- export type Scope = string;
2
- export type DocumentActionHandlers = {
3
- addModule: (name: string) => Promise<string | undefined>;
4
- addOperation: (moduleId: string, name: string) => Promise<string | undefined>;
5
- addOperationAndInitialSchema: (moduleId: string, name: string) => Promise<string | undefined>;
6
- addOperationError: (operationId: string, errorName: string) => Promise<string | undefined>;
7
- setModelId: (id: string) => void;
8
- setModelExtension: (extension: string) => void;
9
- setModelName: (name: string) => void;
10
- setAuthorName: (authorName: string) => void;
11
- setAuthorWebsite: (authorWebsite: string) => void;
12
- setStateSchema: (schema: string, scope: Scope) => void;
13
- setInitialState: (initialValue: string, scope: Scope) => void;
14
- setModelDescription: (description: string) => void;
15
- updateModuleName: (id: string, name: string) => void;
16
- updateModuleDescription: (id: string, description: string) => void;
17
- deleteModule: (id: string) => void;
18
- updateOperationName: (id: string, name: string) => void;
19
- updateOperationSchema: (id: string, schema: string) => void;
20
- setOperationDescription: (id: string, description: string) => void;
21
- updateOperationScope: (id: string, scope: Scope) => void;
22
- deleteOperation: (id: string) => void;
23
- deleteOperationError: (id: string) => void;
24
- setOperationErrorName: (operationId: string, errorId: string, errorName: string) => void;
25
- };
26
- //# sourceMappingURL=documents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../document-model-editor/types/documents.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG;IAEnC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzD,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9E,4BAA4B,EAAE,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjC,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAGjC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,iBAAiB,EAAE,CAAC,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SAAS,EAAE,MAAM,KACd,IAAI,CAAC;CACX,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=documents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../document-model-editor/types/documents.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR" | "SILENT";
2
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../document-model-editor/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../document-model-editor/types.ts"],"names":[],"mappings":""}
@@ -1,112 +0,0 @@
1
- import type { Serializable } from "@powerhousedao/document-engineering/graphql";
2
- import type { ASTNode, DocumentNode, FieldDefinitionNode, GraphQLObjectType, GraphQLSchema, NamedTypeNode, ObjectTypeDefinitionNode, TypeNode } from "graphql";
3
- import { GraphQLInputObjectType } from "graphql";
4
- import type { Scope } from "../types/documents.js";
5
- export declare function makeStateSchemaNameForScope(modelName: string, scope: string): string;
6
- export declare function makeInitialSchemaDoc(modelName: string, scope: string): string;
7
- export declare function makeOperationInitialDoc(name: string): string;
8
- export declare function makeEmptyOperationSchema(operationName: string): string;
9
- export declare function isEmptyOperationSchema(schema: string | null | undefined): boolean;
10
- export declare function safeParseJsonRecord(json: string): Record<string, Serializable> | null;
11
- export declare function makeMinimalObjectForStateType(args: {
12
- sharedSchemaDocumentNode: DocumentNode;
13
- stateTypeDefinitionNode: ObjectTypeDefinitionNode;
14
- existingValue: string;
15
- }): string;
16
- export declare function makeMinimalValuesForObjectFields(args: {
17
- schemaDocumentNode: DocumentNode;
18
- existingValueObject: Record<string, Serializable> | null;
19
- fieldDefinitionNodes: readonly FieldDefinitionNode[];
20
- visitedTypes?: Set<string>;
21
- }): Record<string, Serializable>;
22
- export declare function isGqlPrimitiveNode(astNodeTypeNode: ASTNode | null): astNodeTypeNode is NamedTypeNode;
23
- export declare function compareStringsWithoutWhitespace(str1: string | null | undefined, str2: string | null | undefined): boolean;
24
- export declare function renameSchemaType(sdl: string, oldName: string, newName: string, scope: Scope): string;
25
- export declare function initializeModelSchema(modelName: string): string;
26
- export declare function updateModelSchemaNames(params: {
27
- oldName: string;
28
- newName: string;
29
- globalStateSchema: string;
30
- localStateSchema: string;
31
- setStateSchema: (schema: string, scope: Scope) => void;
32
- }): void;
33
- export declare function handleModelNameChange(params: {
34
- oldName: string;
35
- newName: string;
36
- globalStateSchema: string;
37
- localStateSchema: string;
38
- setStateSchema: (schema: string, scope: Scope) => void;
39
- }): void;
40
- /**
41
- * Converts an output object type into an equivalent input object type.
42
- * Intended for structural validation of state objects.
43
- */
44
- export declare function objectTypeToInputType(schema: GraphQLSchema, objectType: GraphQLObjectType, options?: {
45
- nameSuffix?: string;
46
- cache?: Map<string, GraphQLInputObjectType>;
47
- }): GraphQLInputObjectType;
48
- export declare function validateStateObject(sharedSchemaDocumentNode: DocumentNode, stateTypeDefinitionNode: ObjectTypeDefinitionNode, stateValue: string): Error[];
49
- export type StateValidationErrorKind = "MISSING" | "MISSING_OPTIONAL" | "UNKNOWN_FIELD" | "NON_NULL" | "TYPE" | "RECURSIVE_TYPE";
50
- export type StateValidationErrorPayload = {
51
- kind: "MISSING";
52
- path: (string | number)[];
53
- field: string;
54
- expectedType?: string;
55
- } | {
56
- kind: "MISSING_OPTIONAL";
57
- path: (string | number)[];
58
- field: string;
59
- expectedType?: string;
60
- } | {
61
- kind: "UNKNOWN_FIELD";
62
- path: (string | number)[];
63
- field: string;
64
- didYouMean?: string;
65
- typeName?: string;
66
- } | {
67
- kind: "NON_NULL";
68
- path: (string | number)[];
69
- field: string;
70
- expectedType?: string;
71
- } | {
72
- kind: "TYPE";
73
- path: (string | number)[];
74
- field: string;
75
- expectedType?: string;
76
- details?: string;
77
- } | {
78
- kind: "RECURSIVE_TYPE";
79
- path: (string | number)[];
80
- field: string;
81
- typeName: string;
82
- };
83
- export declare class StateValidationError extends Error {
84
- readonly payload: StateValidationErrorPayload;
85
- readonly originalMessage?: string;
86
- constructor(payload: StateValidationErrorPayload, originalMessage?: string);
87
- get kind(): StateValidationErrorKind;
88
- get path(): (string | number)[];
89
- get field(): string;
90
- }
91
- export declare function graphQLErrorsToStateValidationErrors(errors: readonly Error[]): StateValidationError[];
92
- /**
93
- * Information about a missing field in the state object.
94
- */
95
- export type MissingFieldInfo = {
96
- fieldName: string;
97
- path: (string | number)[];
98
- isRequired: boolean;
99
- /** The underlying type (unwrapped from NonNull if applicable) */
100
- type: TypeNode;
101
- };
102
- /**
103
- * Finds all fields defined in the schema that are missing from the state object.
104
- * Returns information about each missing field including whether it's required.
105
- */
106
- export declare function findMissingFields(sharedSchemaDocumentNode: DocumentNode, rootTypeNode: ObjectTypeDefinitionNode, value: string | Record<string, unknown>, basePath?: (string | number)[]): MissingFieldInfo[];
107
- /**
108
- * Detects optional fields defined in the schema that are missing from the state object.
109
- * Returns StateValidationError[] for each missing optional field.
110
- */
111
- export declare function detectMissingOptionalFields(sharedSchemaDocumentNode: DocumentNode, rootTypeNode: ObjectTypeDefinitionNode, value: string | Record<string, unknown>): StateValidationError[];
112
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../document-model-editor/utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAGhF,OAAO,KAAK,EACV,OAAO,EAEP,YAAY,EAEZ,mBAAmB,EAEnB,iBAAiB,EAEjB,aAAa,EAGb,aAAa,EAEb,wBAAwB,EAExB,QAAQ,E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