@dxos/react-ui-form 0.8.4-main.3eb6e50203 → 0.8.4-main.3fbcb4aa9b

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 (153) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +1134 -682
  3. package/dist/lib/browser/index.mjs.map +4 -4
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/translations.mjs +82 -0
  6. package/dist/lib/browser/translations.mjs.map +7 -0
  7. package/dist/lib/node-esm/index.mjs +1134 -682
  8. package/dist/lib/node-esm/index.mjs.map +4 -4
  9. package/dist/lib/node-esm/meta.json +1 -1
  10. package/dist/lib/node-esm/translations.mjs +84 -0
  11. package/dist/lib/node-esm/translations.mjs.map +7 -0
  12. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +3 -3
  13. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  14. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +63 -61
  15. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/Form.d.ts +44 -16
  17. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/Form.stories.d.ts +75 -73
  19. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/FormField.d.ts +11 -5
  21. package/dist/types/src/components/Form/FormField.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/FormFieldComponent.d.ts +8 -7
  23. package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -1
  24. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts +2 -2
  25. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -1
  26. package/dist/types/src/components/Form/FormFieldSet.d.ts +6 -10
  27. package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/fields/ArrayField.d.ts +4 -4
  29. package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -1
  30. package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -1
  31. package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -1
  32. package/dist/types/src/components/Form/fields/MarkdownField.d.ts +8 -1
  33. package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -1
  34. package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts +84 -0
  35. package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts.map +1 -0
  36. package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -1
  37. package/dist/types/src/components/Form/fields/RefField.d.ts +15 -7
  38. package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -1
  39. package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -1
  40. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -1
  41. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +63 -61
  42. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -1
  43. package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -1
  44. package/dist/types/src/components/Form/fields/TextField.d.ts +1 -1
  45. package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -1
  46. package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -1
  47. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts +9 -0
  48. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -0
  49. package/dist/types/src/components/ObjectForm/index.d.ts +2 -0
  50. package/dist/types/src/components/ObjectForm/index.d.ts.map +1 -0
  51. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +26 -4
  52. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
  53. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +63 -61
  54. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
  55. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +9 -0
  56. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -0
  57. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +127 -0
  58. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -0
  59. package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts +2 -0
  60. package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts.map +1 -0
  61. package/dist/types/src/components/ObjectProperties/index.d.ts +2 -0
  62. package/dist/types/src/components/ObjectProperties/index.d.ts.map +1 -0
  63. package/dist/types/src/components/Settings/Settings.d.ts +28 -33
  64. package/dist/types/src/components/Settings/Settings.d.ts.map +1 -1
  65. package/dist/types/src/components/Settings/Settings.stories.d.ts +64 -61
  66. package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -1
  67. package/dist/types/src/components/Settings/SettingsFieldSet.d.ts +43 -0
  68. package/dist/types/src/components/Settings/SettingsFieldSet.d.ts.map +1 -0
  69. package/dist/types/src/components/Settings/SettingsItem.d.ts +16 -0
  70. package/dist/types/src/components/Settings/SettingsItem.d.ts.map +1 -0
  71. package/dist/types/src/components/Settings/SettingsSelectField.d.ts +18 -0
  72. package/dist/types/src/components/Settings/SettingsSelectField.d.ts.map +1 -0
  73. package/dist/types/src/components/Settings/index.d.ts +2 -0
  74. package/dist/types/src/components/Settings/index.d.ts.map +1 -1
  75. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +6 -6
  76. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  77. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +67 -64
  78. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  79. package/dist/types/src/components/index.d.ts +2 -0
  80. package/dist/types/src/components/index.d.ts.map +1 -1
  81. package/dist/types/src/components/testing.d.ts +4 -4
  82. package/dist/types/src/components/testing.d.ts.map +1 -1
  83. package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -1
  84. package/dist/types/src/hooks/useKeyHandler.d.ts +2 -1
  85. package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -1
  86. package/dist/types/src/index.d.ts +0 -2
  87. package/dist/types/src/index.d.ts.map +1 -1
  88. package/dist/types/src/translations.d.ts +63 -61
  89. package/dist/types/src/translations.d.ts.map +1 -1
  90. package/dist/types/src/util/field-type.d.ts +19 -0
  91. package/dist/types/src/util/field-type.d.ts.map +1 -0
  92. package/dist/types/src/util/field.d.ts.map +1 -1
  93. package/dist/types/src/util/formatting.d.ts.map +1 -1
  94. package/dist/types/src/util/index.d.ts +1 -1
  95. package/dist/types/src/util/index.d.ts.map +1 -1
  96. package/dist/types/src/util/properties.d.ts.map +1 -1
  97. package/dist/types/src/util/refs.d.ts +1 -0
  98. package/dist/types/src/util/refs.d.ts.map +1 -1
  99. package/dist/types/tsconfig.tsbuildinfo +1 -1
  100. package/package.json +42 -42
  101. package/src/components/FieldEditor/FieldEditor.stories.tsx +6 -8
  102. package/src/components/FieldEditor/FieldEditor.test.tsx +0 -1
  103. package/src/components/FieldEditor/FieldEditor.tsx +6 -6
  104. package/src/components/Form/AUDIT.md +17 -0
  105. package/src/components/Form/Form.stories.tsx +29 -44
  106. package/src/components/Form/Form.tsx +101 -54
  107. package/src/components/Form/FormField.tsx +39 -19
  108. package/src/components/Form/FormFieldComponent.stories.tsx +4 -4
  109. package/src/components/Form/FormFieldComponent.tsx +11 -11
  110. package/src/components/Form/FormFieldSet.tsx +121 -104
  111. package/src/components/Form/fields/ArrayField.tsx +10 -9
  112. package/src/components/Form/fields/GeoPointField.tsx +8 -7
  113. package/src/components/Form/fields/MarkdownField.stories.tsx +206 -0
  114. package/src/components/Form/fields/MarkdownField.tsx +135 -45
  115. package/src/components/Form/fields/RefField.tsx +85 -45
  116. package/src/components/Form/fields/SelectField.tsx +1 -1
  117. package/src/components/Form/fields/SelectOptionField.stories.tsx +10 -8
  118. package/src/components/Form/fields/SelectOptionField.tsx +13 -13
  119. package/src/components/Form/fields/TextField.tsx +2 -2
  120. package/src/components/Form/fields/TupleField.tsx +1 -1
  121. package/src/components/ObjectForm/ObjectForm.tsx +114 -0
  122. package/src/components/ObjectForm/index.ts +5 -0
  123. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +16 -18
  124. package/src/components/ObjectPicker/ObjectPicker.tsx +92 -65
  125. package/src/components/ObjectProperties/ObjectProperties.stories.tsx +362 -0
  126. package/src/components/ObjectProperties/ObjectProperties.test.tsx +101 -0
  127. package/src/components/ObjectProperties/ObjectProperties.tsx +141 -0
  128. package/src/components/ObjectProperties/index.ts +5 -0
  129. package/src/components/Settings/AUDIT.md +52 -0
  130. package/src/components/Settings/Settings.stories.tsx +69 -21
  131. package/src/components/Settings/Settings.tsx +33 -187
  132. package/src/components/Settings/SettingsFieldSet.tsx +257 -0
  133. package/src/components/Settings/SettingsItem.tsx +58 -0
  134. package/src/components/Settings/SettingsSelectField.tsx +59 -0
  135. package/src/components/Settings/index.ts +2 -0
  136. package/src/components/ViewEditor/ViewEditor.stories.tsx +21 -19
  137. package/src/components/ViewEditor/ViewEditor.test.tsx +2 -2
  138. package/src/components/ViewEditor/ViewEditor.tsx +87 -50
  139. package/src/components/index.ts +2 -0
  140. package/src/components/testing.tsx +23 -12
  141. package/src/hooks/useFormHandler.ts +42 -24
  142. package/src/hooks/useKeyHandler.tsx +7 -7
  143. package/src/index.ts +0 -4
  144. package/src/translations.ts +66 -63
  145. package/src/util/field-type.ts +60 -0
  146. package/src/util/index.ts +1 -1
  147. package/src/util/refs.ts +7 -3
  148. package/dist/types/src/components/Form/Form-old.stories.d.ts +0 -131
  149. package/dist/types/src/components/Form/Form-old.stories.d.ts.map +0 -1
  150. package/dist/types/src/util/echo.d.ts +0 -6
  151. package/dist/types/src/util/echo.d.ts.map +0 -1
  152. package/src/components/Form/Form-old.stories.tsx +0 -314
  153. package/src/util/echo.ts +0 -25
@@ -1,84 +1,87 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
+ import { type View } from '@dxos/echo';
3
4
  import { type EchoSchema } from '@dxos/echo/internal';
4
- import { type ProjectionModel, View } from '@dxos/schema';
5
+ import { type ProjectionModel } from '@dxos/schema';
5
6
  import { type ViewEditorProps } from './ViewEditor';
6
7
  export type ViewEditorDebugObjects = {
7
8
  schema: EchoSchema;
8
9
  view: View.View;
9
10
  projection: ProjectionModel;
10
11
  };
11
- type StoryProps = Pick<ViewEditorProps, 'readonly' | 'mode'>;
12
+ type DefaultStoryProps = Pick<ViewEditorProps, 'readonly' | 'mode'>;
12
13
  declare const meta: {
13
14
  title: string;
14
- render: (props: StoryProps) => React.JSX.Element;
15
+ render: (props: DefaultStoryProps) => React.JSX.Element;
15
16
  decorators: import("@storybook/react").Decorator[];
16
17
  parameters: {
17
18
  layout: string;
18
19
  translations: [{
19
20
  readonly 'en-US': {
20
21
  readonly "@dxos/react-ui-form": {
21
- readonly 'fields label': "Fields";
22
- readonly 'hidden fields label': "Hidden Fields";
23
- readonly 'empty readonly ref field label': "(none)";
24
- readonly 'add property button label': "Add property";
25
- readonly 'field property label': "Property";
26
- readonly 'field property placeholder': "Property name";
27
- readonly 'field format label': "Type";
28
- readonly 'field path label': "Field path";
29
- readonly 'add field': "Add field";
30
- readonly 'delete field': "Delete field";
31
- readonly 'field limit reached': "Maximum number of fields reached";
32
- readonly 'boolean input true value': "Yes";
33
- readonly 'boolean input false value': "No";
34
- readonly 'show field label': "Show field";
35
- readonly 'hide field label': "Hide field";
36
- readonly 'delete field label': "Delete field";
37
- readonly 'ref field combobox input placeholder': "Search…";
38
- readonly 'ref field placeholder_one': "Select…";
39
- readonly 'ref field placeholder_other': "Select items…";
40
- readonly 'example placeholder': "Example";
41
- readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
42
- readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
43
- readonly 'cancel button label': "Cancel";
44
- readonly 'save button label': "Save";
45
- readonly 'format boolean': "Boolean";
46
- readonly 'format currency': "Currency";
47
- readonly 'format date': "Date";
48
- readonly 'format date-time': "DateTime";
49
- readonly 'format did': "DID";
50
- readonly 'format duration': "Duration";
51
- readonly 'format dxn': "DXN";
52
- readonly 'format email': "Email";
53
- readonly 'format formula': "Formula";
54
- readonly 'format hostname': "Hostname";
55
- readonly 'format integer': "Integer";
56
- readonly 'format json': "JSON";
57
- readonly 'format lnglat': "Geopoint";
58
- readonly 'format markdown': "Markdown";
59
- readonly 'format percent': "Percent";
60
- readonly 'format ref': "Reference";
61
- readonly 'format regex': "RegExp";
62
- readonly 'format string': "String";
63
- readonly 'format single-select': "Select";
64
- readonly 'format multi-select': "Multi-select";
65
- readonly 'format text': "Long text";
66
- readonly 'format time': "Time";
67
- readonly 'format timestamp': "Timestamp";
68
- readonly 'format user': "User";
69
- readonly 'format number': "Number";
70
- readonly 'format uri': "URI";
71
- readonly 'format url': "URL";
72
- readonly 'format uuid': "UUID";
73
- readonly 'latitude label': "Latitude";
74
- readonly 'longitude label': "Longitude";
75
- readonly 'select option label': "Label";
76
- readonly 'select option label placeholder': "Option label";
77
- readonly 'select option color': "Color";
78
- readonly 'select option delete': "Delete";
79
- readonly 'select option add': "Add option";
80
- readonly 'system schema title': "System type";
81
- readonly 'system schema description': "System type: cannot add or remove fields.";
22
+ readonly 'fields.label': 'Fields';
23
+ readonly 'hidden-fields.label': 'Hidden Fields';
24
+ readonly 'empty-readonly-ref-field.label': '(none)';
25
+ readonly 'field-property.label': 'Property';
26
+ readonly 'field-property.placeholder': 'Property name';
27
+ readonly 'field-format.label': 'Type';
28
+ readonly 'field-path.label': 'Field path';
29
+ readonly 'add-item.button': 'Add item';
30
+ readonly 'add-property-button.label': 'Add property';
31
+ readonly 'boolean-input-true.value': 'Yes';
32
+ readonly 'boolean-input-false.value': 'No';
33
+ readonly 'show-field.label': 'Show field';
34
+ readonly 'hide-field.label': 'Hide field';
35
+ readonly 'delete-field.label': 'Delete field';
36
+ readonly 'create-option.label': 'Create';
37
+ readonly 'add-tag.label': 'Add tag';
38
+ readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
39
+ readonly 'ref-field.placeholder': 'Select\u2026';
40
+ readonly 'ref-field.placeholder_one': 'Select\u2026';
41
+ readonly 'ref-field.placeholder_other': 'Select items\u2026';
42
+ readonly 'example.placeholder': 'Example';
43
+ readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
44
+ readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
45
+ readonly 'cancel-button.label': 'Cancel';
46
+ readonly 'save-button.label': 'Save';
47
+ readonly 'create-text.label': 'Create text';
48
+ readonly 'format.boolean.label': 'Boolean';
49
+ readonly 'format.currency.label': 'Currency';
50
+ readonly 'format.date.label': 'Date';
51
+ readonly 'format.date-time.label': 'DateTime';
52
+ readonly 'format.did.label': 'DID';
53
+ readonly 'format.duration.label': 'Duration';
54
+ readonly 'format.dxn.label': 'DXN';
55
+ readonly 'format.email.label': 'Email';
56
+ readonly 'format.formula.label': 'Formula';
57
+ readonly 'format.hostname.label': 'Hostname';
58
+ readonly 'format.integer.label': 'Integer';
59
+ readonly 'format.json.label': 'JSON';
60
+ readonly 'format.lnglat.label': 'Geopoint';
61
+ readonly 'format.markdown.label': 'Markdown';
62
+ readonly 'format.percent.label': 'Percent';
63
+ readonly 'format.ref.label': 'Reference';
64
+ readonly 'format.regex.label': 'RegExp';
65
+ readonly 'format.string.label': 'String';
66
+ readonly 'format.single-select.label': 'Select';
67
+ readonly 'format.multi-select.label': 'Multi-select';
68
+ readonly 'format.text.label': 'Long text';
69
+ readonly 'format.time.label': 'Time';
70
+ readonly 'format.timestamp.label': 'Timestamp';
71
+ readonly 'format.user.label': 'User';
72
+ readonly 'format.number.label': 'Number';
73
+ readonly 'format.uri.label': 'URI';
74
+ readonly 'format.url.label': 'URL';
75
+ readonly 'format.uuid.label': 'UUID';
76
+ readonly 'latitude.label': 'Latitude';
77
+ readonly 'longitude.label': 'Longitude';
78
+ readonly 'select-option.label': 'Label';
79
+ readonly 'select-option-label.placeholder': 'Option label';
80
+ readonly 'select-option-delete.button': 'Delete';
81
+ readonly 'select-option-add.button': 'Add option';
82
+ readonly 'system-schema.title': 'System type';
83
+ readonly 'system-schema.description': 'System type: cannot add or remove fields.';
84
+ readonly 'remove.button': 'Remove';
82
85
  };
83
86
  };
84
87
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"ViewEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,KAAK,UAAU,EAAwB,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,eAAe,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAMhF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAWhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AA+H7D,QAAA,MAAM,IAAI;;oBA7HmB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJF,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC"}
1
+ {"version":3,"file":"ViewEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,KAAK,UAAU,EAAwB,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,eAAe,EAAmC,MAAM,cAAc,CAAC;AAMrF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAWhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AA+HpE,QAAA,MAAM,IAAI;;oBA7HmB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJT,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC"}
@@ -1,6 +1,8 @@
1
1
  export * from './FieldEditor';
2
2
  export * from './Form';
3
+ export * from './ObjectForm';
3
4
  export * from './ObjectPicker';
5
+ export * from './ObjectProperties';
4
6
  export * from './Settings';
5
7
  export * from './ViewEditor';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
- import { type ThemedClassName } from '@dxos/react-ui';
3
- type TestLayoutProps = ThemedClassName<PropsWithChildren<{
2
+ type TestLayoutProps = PropsWithChildren<{
4
3
  json?: any;
5
- }>>;
6
- export declare const TestLayout: ({ classNames, children, json }: TestLayoutProps) => React.JSX.Element;
4
+ }>;
5
+ export declare const TestLayout: ({ children, json }: TestLayoutProps) => React.JSX.Element;
7
6
  export declare const VIEW_EDITOR_DEBUG_SYMBOL: unique symbol;
8
7
  export declare const FIELD_EDITOR_DEBUG_SYMBOL: unique symbol;
8
+ export declare const OBJECT_PROPERTIES_DEBUG_SYMBOL: unique symbol;
9
9
  export {};
10
10
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,KAAK,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,UAAU,GAAI,gCAAgC,eAAe,sBASzE,CAAC;AASF,eAAO,MAAM,wBAAwB,eAA4B,CAAC;AAClE,eAAO,MAAM,yBAAyB,eAA6B,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/components/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAMtD,KAAK,eAAe,GAAG,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC;AAEzD,eAAO,MAAM,UAAU,uBAAwB,eAAe,sBAgB7D,CAAC;AAaF,eAAO,MAAM,wBAAwB,eAA4B,CAAC;AAClE,eAAO,MAAM,yBAAyB,eAA6B,CAAC;AACpE,eAAO,MAAM,8BAA8B,eAAkC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useFormHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFormHandler.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAInD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,KAAK,QAAQ,EAKd,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,aAAa;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAE/B;;OAEG;IACH,MAAM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,EAAE,OAAO,CAAC,CAAC;IAEnC,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEnC,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEjC,2DAA2D;IAC3D,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IAMrB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,eAAe,CAAC;IACnE,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC;IAC1D,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CACtF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,aAAa,uIAUnD,gBAAgB,CAAC,CAAC,CAAC,KAAG,WAAW,CAAC,CAAC,CA8NrC,CAAC"}
@@ -1,6 +1,7 @@
1
+ import { type RefObject } from 'react';
1
2
  import { type FormHandler } from './useFormHandler';
2
3
  /**
3
4
  * Key handler.
4
5
  */
5
- export declare const useKeyHandler: (formElement: HTMLDivElement | null, form: FormHandler<any>) => void;
6
+ export declare const useKeyHandler: (elRef: RefObject<HTMLDivElement | null>, form: FormHandler<any>) => void;
6
7
  //# sourceMappingURL=useKeyHandler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyHandler.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,cAAc,GAAG,IAAI,EAAE,MAAM,WAAW,CAAC,GAAG,CAAC,SAuBvF,CAAC"}
1
+ {"version":3,"file":"useKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKeyHandler.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,QAAQ,WAAW,CAAC,GAAG,CAAC,SAuB5F,CAAC"}
@@ -1,6 +1,4 @@
1
- import { translations } from './translations';
2
1
  export * from './components';
3
2
  export * from './hooks';
4
3
  export * from './util';
5
- export { translations };
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -2,67 +2,69 @@ export declare const translationKey = "@dxos/react-ui-form";
2
2
  export declare const translations: [{
3
3
  readonly 'en-US': {
4
4
  readonly "@dxos/react-ui-form": {
5
- readonly 'fields label': "Fields";
6
- readonly 'hidden fields label': "Hidden Fields";
7
- readonly 'empty readonly ref field label': "(none)";
8
- readonly 'add property button label': "Add property";
9
- readonly 'field property label': "Property";
10
- readonly 'field property placeholder': "Property name";
11
- readonly 'field format label': "Type";
12
- readonly 'field path label': "Field path";
13
- readonly 'add field': "Add field";
14
- readonly 'delete field': "Delete field";
15
- readonly 'field limit reached': "Maximum number of fields reached";
16
- readonly 'boolean input true value': "Yes";
17
- readonly 'boolean input false value': "No";
18
- readonly 'show field label': "Show field";
19
- readonly 'hide field label': "Hide field";
20
- readonly 'delete field label': "Delete field";
21
- readonly 'ref field combobox input placeholder': "Search…";
22
- readonly 'ref field placeholder_one': "Select…";
23
- readonly 'ref field placeholder_other': "Select items…";
24
- readonly 'example placeholder': "Example";
25
- readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
26
- readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
27
- readonly 'cancel button label': "Cancel";
28
- readonly 'save button label': "Save";
29
- readonly 'format boolean': "Boolean";
30
- readonly 'format currency': "Currency";
31
- readonly 'format date': "Date";
32
- readonly 'format date-time': "DateTime";
33
- readonly 'format did': "DID";
34
- readonly 'format duration': "Duration";
35
- readonly 'format dxn': "DXN";
36
- readonly 'format email': "Email";
37
- readonly 'format formula': "Formula";
38
- readonly 'format hostname': "Hostname";
39
- readonly 'format integer': "Integer";
40
- readonly 'format json': "JSON";
41
- readonly 'format lnglat': "Geopoint";
42
- readonly 'format markdown': "Markdown";
43
- readonly 'format percent': "Percent";
44
- readonly 'format ref': "Reference";
45
- readonly 'format regex': "RegExp";
46
- readonly 'format string': "String";
47
- readonly 'format single-select': "Select";
48
- readonly 'format multi-select': "Multi-select";
49
- readonly 'format text': "Long text";
50
- readonly 'format time': "Time";
51
- readonly 'format timestamp': "Timestamp";
52
- readonly 'format user': "User";
53
- readonly 'format number': "Number";
54
- readonly 'format uri': "URI";
55
- readonly 'format url': "URL";
56
- readonly 'format uuid': "UUID";
57
- readonly 'latitude label': "Latitude";
58
- readonly 'longitude label': "Longitude";
59
- readonly 'select option label': "Label";
60
- readonly 'select option label placeholder': "Option label";
61
- readonly 'select option color': "Color";
62
- readonly 'select option delete': "Delete";
63
- readonly 'select option add': "Add option";
64
- readonly 'system schema title': "System type";
65
- readonly 'system schema description': "System type: cannot add or remove fields.";
5
+ readonly 'fields.label': 'Fields';
6
+ readonly 'hidden-fields.label': 'Hidden Fields';
7
+ readonly 'empty-readonly-ref-field.label': '(none)';
8
+ readonly 'field-property.label': 'Property';
9
+ readonly 'field-property.placeholder': 'Property name';
10
+ readonly 'field-format.label': 'Type';
11
+ readonly 'field-path.label': 'Field path';
12
+ readonly 'add-item.button': 'Add item';
13
+ readonly 'add-property-button.label': 'Add property';
14
+ readonly 'boolean-input-true.value': 'Yes';
15
+ readonly 'boolean-input-false.value': 'No';
16
+ readonly 'show-field.label': 'Show field';
17
+ readonly 'hide-field.label': 'Hide field';
18
+ readonly 'delete-field.label': 'Delete field';
19
+ readonly 'create-option.label': 'Create';
20
+ readonly 'add-tag.label': 'Add tag';
21
+ readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
22
+ readonly 'ref-field.placeholder': 'Select\u2026';
23
+ readonly 'ref-field.placeholder_one': 'Select\u2026';
24
+ readonly 'ref-field.placeholder_other': 'Select items\u2026';
25
+ readonly 'example.placeholder': 'Example';
26
+ readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
27
+ readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
28
+ readonly 'cancel-button.label': 'Cancel';
29
+ readonly 'save-button.label': 'Save';
30
+ readonly 'create-text.label': 'Create text';
31
+ readonly 'format.boolean.label': 'Boolean';
32
+ readonly 'format.currency.label': 'Currency';
33
+ readonly 'format.date.label': 'Date';
34
+ readonly 'format.date-time.label': 'DateTime';
35
+ readonly 'format.did.label': 'DID';
36
+ readonly 'format.duration.label': 'Duration';
37
+ readonly 'format.dxn.label': 'DXN';
38
+ readonly 'format.email.label': 'Email';
39
+ readonly 'format.formula.label': 'Formula';
40
+ readonly 'format.hostname.label': 'Hostname';
41
+ readonly 'format.integer.label': 'Integer';
42
+ readonly 'format.json.label': 'JSON';
43
+ readonly 'format.lnglat.label': 'Geopoint';
44
+ readonly 'format.markdown.label': 'Markdown';
45
+ readonly 'format.percent.label': 'Percent';
46
+ readonly 'format.ref.label': 'Reference';
47
+ readonly 'format.regex.label': 'RegExp';
48
+ readonly 'format.string.label': 'String';
49
+ readonly 'format.single-select.label': 'Select';
50
+ readonly 'format.multi-select.label': 'Multi-select';
51
+ readonly 'format.text.label': 'Long text';
52
+ readonly 'format.time.label': 'Time';
53
+ readonly 'format.timestamp.label': 'Timestamp';
54
+ readonly 'format.user.label': 'User';
55
+ readonly 'format.number.label': 'Number';
56
+ readonly 'format.uri.label': 'URI';
57
+ readonly 'format.url.label': 'URL';
58
+ readonly 'format.uuid.label': 'UUID';
59
+ readonly 'latitude.label': 'Latitude';
60
+ readonly 'longitude.label': 'Longitude';
61
+ readonly 'select-option.label': 'Label';
62
+ readonly 'select-option-label.placeholder': 'Option label';
63
+ readonly 'select-option-delete.button': 'Delete';
64
+ readonly 'select-option-add.button': 'Add option';
65
+ readonly 'system-schema.title': 'System type';
66
+ readonly 'system-schema.description': 'System type: cannot add or remove fields.';
67
+ readonly 'remove.button': 'Remove';
66
68
  };
67
69
  };
68
70
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgFM,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD,eAAO,MAAM,YAAY;;;qBAIjB,cAAc,EAAE,QA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,4BAA4B,EAAE,QAAQ;qBACtC,2BAA2B,EAAE,cAAc;qBAC3C,mBAAmB,EAAE,WAAW;qBAChC,mBAAmB,EAAE,MAAM;qBAC3B,wBAAwB,EAAE,WAAW;qBACrC,mBAAmB,EAAE,MAAM;qBAC3B,qBAAqB,EAAE,QAAQ;qBAC/B,kBAAkB,EAAE,KAAK;qBACzB,kBAAkB,EAAE,KAAK;qBACzB,mBAAmB,EAAE,MAAM;qBAG3B,gBAAgB,EAAE,UAAU;qBAC5B,iBAAiB,EAAE,WAAW;qBAG9B,qBAAqB,EAAE,OAAO;qBAC9B,iCAAiC,EAAE,cAAc;qBACjD,6BAA6B,EAAE,QAAQ;qBACvC,0BAA0B,EAAE,YAAY;qBAGxC,qBAAqB,EAAE,aAAa;qBACpC,2BAA2B,EAAE,2CAA2C;qBACxE,eAAe,EAAE,QAAQ;;;EAIF,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as SchemaAST from 'effect/SchemaAST';
2
+ /**
3
+ * Detected field type for a schema property.
4
+ */
5
+ export type SettingsFieldType = 'boolean' | 'string' | 'number' | 'select' | 'struct';
6
+ export type SelectOption = {
7
+ value: string | number;
8
+ label?: string;
9
+ };
10
+ /**
11
+ * Detect the field type from an Effect Schema AST node.
12
+ */
13
+ export declare const detectFieldType: (ast: SchemaAST.AST) => SettingsFieldType | undefined;
14
+ /**
15
+ * Extract select options from a literal union AST node.
16
+ * Reads title annotations from individual literals for labels.
17
+ */
18
+ export declare const getSelectOptionsFromAst: (ast: SchemaAST.AST) => SelectOption[] | undefined;
19
+ //# sourceMappingURL=field-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-type.d.ts","sourceRoot":"","sources":["../../../../src/util/field-type.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAI9C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAS,SAAS,CAAC,GAAG,KAAG,iBAAiB,GAAG,SAkBxE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAS,SAAS,CAAC,GAAG,KAAG,YAAY,EAAE,GAAG,SAc7E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAC3B,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,yBAAyB,UAAU,QAsF7D,CAAC;AAGF,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,kBAAkB,4BAA4B,KAAG,MAAM,EAAE,GAAG,SAyBnG,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,eAGhD,CAAC"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IAC3B,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,UAAU,4BAA6B,UAAU,QAsF7D,CAAC;AAGF,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,qBAAsB,4BAA4B,KAAG,MAAM,EAAE,GAAG,SAyBnG,CAAC;AAGF,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,eAGhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../src/util/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,gBAAgB,GAAI,iCAA6C,gBAAgB,KAAG,MAqFhG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,iCAA6C,gBAAgB,KAAG,MA8DhG,CAAC"}
1
+ {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../src/util/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AAGH,eAAO,MAAM,gBAAgB,oCAAiD,gBAAgB,KAAG,MAqFhG,CAAC;AAEF,eAAO,MAAM,gBAAgB,oCAAiD,gBAAgB,KAAG,MA8DhG,CAAC"}
@@ -1,5 +1,5 @@
1
- export * from './echo';
2
1
  export * from './field';
2
+ export * from './field-type';
3
3
  export * from './formatting';
4
4
  export * from './properties';
5
5
  export * from './refs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../src/util/properties.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,cAAc,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,KAAK,SAAS,CAAC,GAAG,KAAG,cAAc,EAIpE,CAAC"}
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../src/util/properties.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,cAAc,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAS,SAAS,CAAC,GAAG,KAAG,cAAc,EAIpE,CAAC"}
@@ -2,6 +2,7 @@ import type * as SchemaAST from 'effect/SchemaAST';
2
2
  type RefProps = {
3
3
  ast: SchemaAST.AST;
4
4
  isArray: boolean;
5
+ typename?: string;
5
6
  };
6
7
  export declare const getRefProps: (ast: SchemaAST.AST) => RefProps | undefined;
7
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/util/refs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAKnD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,SAAS,CAAC,GAAG,KAAG,QAAQ,GAAG,SAiB3D,CAAC"}
1
+ {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/util/refs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAMnD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,SAAS,CAAC,GAAG,KAAG,QAAQ,GAAG,SAmB3D,CAAC"}