@dxos/react-ui-form 0.8.4-main.c1de068 → 0.8.4-main.c85a9c8dae

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 (204) hide show
  1. package/README.md +0 -1
  2. package/dist/lib/browser/index.mjs +2314 -2078
  3. package/dist/lib/browser/index.mjs.map +4 -4
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/node-esm/index.mjs +2314 -2078
  6. package/dist/lib/node-esm/index.mjs.map +4 -4
  7. package/dist/lib/node-esm/meta.json +1 -1
  8. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts +8 -7
  9. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  10. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +82 -5
  11. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/Form.d.ts +81 -25
  13. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/Form.stories.d.ts +127 -55
  15. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/FormField.d.ts +37 -0
  17. package/dist/types/src/components/Form/FormField.d.ts.map +1 -0
  18. package/dist/types/src/components/Form/FormFieldComponent.d.ts +78 -0
  19. package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -0
  20. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts +9 -0
  21. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -0
  22. package/dist/types/src/components/Form/FormFieldSet.d.ts +19 -0
  23. package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -0
  24. package/dist/types/src/components/Form/fields/ArrayField.d.ts +18 -0
  25. package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -0
  26. package/dist/types/src/components/Form/fields/BooleanField.d.ts +4 -0
  27. package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -0
  28. package/dist/types/src/components/Form/fields/GeoPointField.d.ts +5 -0
  29. package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -0
  30. package/dist/types/src/components/Form/fields/MarkdownField.d.ts +4 -0
  31. package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -0
  32. package/dist/types/src/components/Form/fields/NumberField.d.ts +4 -0
  33. package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -0
  34. package/dist/types/src/components/Form/fields/RefField.d.ts +14 -0
  35. package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -0
  36. package/dist/types/src/components/Form/fields/SelectField.d.ts +10 -0
  37. package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -0
  38. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts +5 -0
  39. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -0
  40. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +82 -0
  41. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -0
  42. package/dist/types/src/components/Form/fields/TextAreaField.d.ts +4 -0
  43. package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -0
  44. package/dist/types/src/components/Form/fields/TextField.d.ts +4 -0
  45. package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -0
  46. package/dist/types/src/components/Form/fields/TupleField.d.ts +6 -0
  47. package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -0
  48. package/dist/types/src/components/Form/fields/index.d.ts +12 -0
  49. package/dist/types/src/components/Form/fields/index.d.ts.map +1 -0
  50. package/dist/types/src/components/Form/index.d.ts +2 -4
  51. package/dist/types/src/components/Form/index.d.ts.map +1 -1
  52. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +46 -0
  53. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -0
  54. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +85 -0
  55. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -0
  56. package/dist/types/src/components/ObjectPicker/index.d.ts +2 -0
  57. package/dist/types/src/components/ObjectPicker/index.d.ts.map +1 -0
  58. package/dist/types/src/components/Settings/Settings.d.ts +56 -0
  59. package/dist/types/src/components/Settings/Settings.d.ts.map +1 -0
  60. package/dist/types/src/components/Settings/Settings.stories.d.ts +81 -0
  61. package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -0
  62. package/dist/types/src/components/Settings/index.d.ts +2 -0
  63. package/dist/types/src/components/Settings/index.d.ts.map +1 -0
  64. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +22 -10
  65. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  66. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +84 -8
  67. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  68. package/dist/types/src/components/index.d.ts +2 -2
  69. package/dist/types/src/components/index.d.ts.map +1 -1
  70. package/dist/types/src/components/testing.d.ts +4 -3
  71. package/dist/types/src/components/testing.d.ts.map +1 -1
  72. package/dist/types/src/hooks/index.d.ts +2 -3
  73. package/dist/types/src/hooks/index.d.ts.map +1 -1
  74. package/dist/types/src/hooks/useFormHandler.d.ts +82 -0
  75. package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -0
  76. package/dist/types/src/hooks/useKeyHandler.d.ts +6 -0
  77. package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -0
  78. package/dist/types/src/translations.d.ts +19 -10
  79. package/dist/types/src/translations.d.ts.map +1 -1
  80. package/dist/types/src/util/field.d.ts +3 -3
  81. package/dist/types/src/util/field.d.ts.map +1 -1
  82. package/dist/types/src/util/formatting.d.ts +2 -2
  83. package/dist/types/src/util/formatting.d.ts.map +1 -1
  84. package/dist/types/src/util/index.d.ts +1 -1
  85. package/dist/types/src/util/index.d.ts.map +1 -1
  86. package/dist/types/src/util/properties.d.ts +7 -0
  87. package/dist/types/src/util/properties.d.ts.map +1 -0
  88. package/dist/types/src/util/refs.d.ts +2 -3
  89. package/dist/types/src/util/refs.d.ts.map +1 -1
  90. package/dist/types/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +51 -42
  92. package/src/components/FieldEditor/FieldEditor.stories.tsx +51 -32
  93. package/src/components/FieldEditor/FieldEditor.test.tsx +3 -2
  94. package/src/components/FieldEditor/FieldEditor.tsx +87 -83
  95. package/src/components/Form/Form.stories.tsx +156 -219
  96. package/src/components/Form/Form.tsx +347 -96
  97. package/src/components/Form/FormField.tsx +294 -0
  98. package/src/components/Form/FormFieldComponent.stories.tsx +65 -0
  99. package/src/components/Form/FormFieldComponent.tsx +172 -0
  100. package/src/components/Form/FormFieldSet.tsx +123 -0
  101. package/src/components/Form/README.md +3 -0
  102. package/src/components/Form/fields/ArrayField.tsx +149 -0
  103. package/src/components/Form/fields/BooleanField.tsx +22 -0
  104. package/src/components/Form/fields/GeoPointField.tsx +120 -0
  105. package/src/components/Form/fields/MarkdownField.tsx +78 -0
  106. package/src/components/Form/fields/NumberField.tsx +39 -0
  107. package/src/components/Form/fields/RefField.tsx +189 -0
  108. package/src/components/Form/fields/SelectField.tsx +65 -0
  109. package/src/components/Form/fields/SelectOptionField.stories.tsx +64 -0
  110. package/src/components/Form/{custom/SelectOptionsInput.tsx → fields/SelectOptionField.tsx} +46 -41
  111. package/src/components/Form/fields/TextAreaField.tsx +38 -0
  112. package/src/components/Form/fields/TextField.tsx +38 -0
  113. package/src/components/Form/{custom/TupleInput.tsx → fields/TupleField.tsx} +16 -9
  114. package/src/components/Form/fields/index.ts +15 -0
  115. package/src/components/Form/index.ts +3 -4
  116. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +210 -0
  117. package/src/components/ObjectPicker/ObjectPicker.tsx +175 -0
  118. package/src/components/{ControlSection → ObjectPicker}/index.ts +1 -1
  119. package/src/components/Settings/Settings.stories.tsx +56 -0
  120. package/src/components/Settings/Settings.tsx +230 -0
  121. package/src/components/Settings/index.ts +5 -0
  122. package/src/components/ViewEditor/ViewEditor.stories.tsx +140 -62
  123. package/src/components/ViewEditor/ViewEditor.test.tsx +17 -18
  124. package/src/components/ViewEditor/ViewEditor.tsx +341 -202
  125. package/src/components/index.ts +2 -3
  126. package/src/components/testing.tsx +22 -11
  127. package/src/hooks/index.ts +2 -3
  128. package/src/hooks/useFormHandler.ts +380 -0
  129. package/src/hooks/useKeyHandler.tsx +37 -0
  130. package/src/translations.ts +21 -12
  131. package/src/util/field.ts +33 -43
  132. package/src/util/formatting.ts +22 -22
  133. package/src/util/index.ts +1 -1
  134. package/src/util/properties.ts +18 -0
  135. package/src/util/refs.ts +12 -18
  136. package/dist/types/src/components/ControlSection/ControlSection.d.ts +0 -23
  137. package/dist/types/src/components/ControlSection/ControlSection.d.ts.map +0 -1
  138. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +0 -8
  139. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +0 -1
  140. package/dist/types/src/components/ControlSection/index.d.ts +0 -2
  141. package/dist/types/src/components/ControlSection/index.d.ts.map +0 -1
  142. package/dist/types/src/components/Form/ArrayField.d.ts +0 -16
  143. package/dist/types/src/components/Form/ArrayField.d.ts.map +0 -1
  144. package/dist/types/src/components/Form/Defaults.d.ts +0 -14
  145. package/dist/types/src/components/Form/Defaults.d.ts.map +0 -1
  146. package/dist/types/src/components/Form/FormActions.d.ts +0 -9
  147. package/dist/types/src/components/Form/FormActions.d.ts.map +0 -1
  148. package/dist/types/src/components/Form/FormContent.d.ts +0 -57
  149. package/dist/types/src/components/Form/FormContent.d.ts.map +0 -1
  150. package/dist/types/src/components/Form/FormContext.d.ts +0 -23
  151. package/dist/types/src/components/Form/FormContext.d.ts.map +0 -1
  152. package/dist/types/src/components/Form/Input.d.ts +0 -26
  153. package/dist/types/src/components/Form/Input.d.ts.map +0 -1
  154. package/dist/types/src/components/Form/RefField.d.ts +0 -12
  155. package/dist/types/src/components/Form/RefField.d.ts.map +0 -1
  156. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts +0 -4
  157. package/dist/types/src/components/Form/custom/GeoPointInput.d.ts.map +0 -1
  158. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts +0 -4
  159. package/dist/types/src/components/Form/custom/SelectOptionsInput.d.ts.map +0 -1
  160. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +0 -7
  161. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +0 -1
  162. package/dist/types/src/components/Form/custom/TupleInput.d.ts +0 -6
  163. package/dist/types/src/components/Form/custom/TupleInput.d.ts.map +0 -1
  164. package/dist/types/src/components/Form/custom/index.d.ts +0 -4
  165. package/dist/types/src/components/Form/custom/index.d.ts.map +0 -1
  166. package/dist/types/src/components/Form/factory.d.ts +0 -8
  167. package/dist/types/src/components/Form/factory.d.ts.map +0 -1
  168. package/dist/types/src/components/deprecated/Form.d.ts +0 -15
  169. package/dist/types/src/components/deprecated/Form.d.ts.map +0 -1
  170. package/dist/types/src/components/deprecated/Form.stories.d.ts +0 -13
  171. package/dist/types/src/components/deprecated/Form.stories.d.ts.map +0 -1
  172. package/dist/types/src/components/deprecated/FormInput.d.ts +0 -16
  173. package/dist/types/src/components/deprecated/FormInput.d.ts.map +0 -1
  174. package/dist/types/src/components/deprecated/index.d.ts +0 -2
  175. package/dist/types/src/components/deprecated/index.d.ts.map +0 -1
  176. package/dist/types/src/hooks/useForm.d.ts +0 -67
  177. package/dist/types/src/hooks/useForm.d.ts.map +0 -1
  178. package/dist/types/src/hooks/useQueryRefOptions.d.ts +0 -23
  179. package/dist/types/src/hooks/useQueryRefOptions.d.ts.map +0 -1
  180. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts +0 -8
  181. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts.map +0 -1
  182. package/dist/types/src/util/schema.d.ts +0 -3
  183. package/dist/types/src/util/schema.d.ts.map +0 -1
  184. package/src/components/ControlSection/ControlSection.stories.tsx +0 -41
  185. package/src/components/ControlSection/ControlSection.tsx +0 -139
  186. package/src/components/Form/ArrayField.tsx +0 -124
  187. package/src/components/Form/Defaults.tsx +0 -203
  188. package/src/components/Form/FormActions.tsx +0 -53
  189. package/src/components/Form/FormContent.tsx +0 -240
  190. package/src/components/Form/FormContext.tsx +0 -110
  191. package/src/components/Form/Input.tsx +0 -51
  192. package/src/components/Form/RefField.tsx +0 -213
  193. package/src/components/Form/custom/GeoPointInput.tsx +0 -72
  194. package/src/components/Form/custom/SelectOptionsInput.stories.tsx +0 -61
  195. package/src/components/Form/custom/index.ts +0 -7
  196. package/src/components/Form/factory.tsx +0 -31
  197. package/src/components/deprecated/Form.stories.tsx +0 -62
  198. package/src/components/deprecated/Form.tsx +0 -119
  199. package/src/components/deprecated/FormInput.tsx +0 -71
  200. package/src/components/deprecated/index.ts +0 -5
  201. package/src/hooks/useForm.ts +0 -291
  202. package/src/hooks/useQueryRefOptions.ts +0 -53
  203. package/src/hooks/useRefQueryLookupHandler.ts +0 -39
  204. package/src/util/schema.ts +0 -14
@@ -0,0 +1,12 @@
1
+ export * from './ArrayField';
2
+ export * from './BooleanField';
3
+ export * from './GeoPointField';
4
+ export * from './MarkdownField';
5
+ export * from './NumberField';
6
+ export * from './RefField';
7
+ export * from './SelectField';
8
+ export * from './SelectOptionField';
9
+ export * from './TextField';
10
+ export * from './TextAreaField';
11
+ export * from './TupleField';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/fields/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -1,6 +1,4 @@
1
- export * from './custom';
2
- export * from './Defaults';
1
+ export * from './fields';
3
2
  export * from './Form';
4
- export * from './FormContext';
5
- export * from './Input';
3
+ export * from './FormFieldComponent';
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type * as Schema from 'effect/Schema';
2
+ import React from 'react';
3
+ import { type Palette, type ThemedClassName } from '@dxos/react-ui';
4
+ export type RefOption = {
5
+ id: string;
6
+ label: string;
7
+ hue?: Palette;
8
+ };
9
+ export type ObjectPickerContentProps = ThemedClassName<{
10
+ options: RefOption[];
11
+ selectedIds?: string[];
12
+ createOptionLabel?: [string, {
13
+ ns: string;
14
+ }];
15
+ createOptionIcon?: string;
16
+ createSchema?: Schema.Schema.AnyNoContext;
17
+ createInitialValuePath?: string;
18
+ onCreate?: (values: any) => void;
19
+ onSelect: (id: string) => void;
20
+ }>;
21
+ export declare const ObjectPicker: {
22
+ Root: ({ modal, modalId: propsModalId, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, value: propsValue, defaultValue, onValueChange: propsOnValueChange, placeholder, children, }: import("@dxos/react-ui-searchlist").ComboboxRootProps) => React.JSX.Element;
23
+ Portal: React.FC<import("@dxos/react-ui").PopoverPortalProps>;
24
+ Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
25
+ VirtualTrigger: {
26
+ (props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
27
+ __scopePopover?: import("@radix-ui/react-context").Scope;
28
+ }): React.JSX.Element;
29
+ displayName: string;
30
+ };
31
+ Content: React.ForwardRefExoticComponent<Omit<{
32
+ options: RefOption[];
33
+ selectedIds?: string[];
34
+ createOptionLabel?: [string, {
35
+ ns: string;
36
+ }];
37
+ createOptionIcon?: string;
38
+ createSchema?: Schema.Schema.AnyNoContext;
39
+ createInitialValuePath?: string;
40
+ onCreate?: (values: any) => void;
41
+ onSelect: (id: string) => void;
42
+ }, "className"> & {
43
+ classNames?: import("@dxos/ui-types").ClassNameValue;
44
+ } & React.RefAttributes<HTMLDivElement>>;
45
+ };
46
+ //# sourceMappingURL=ObjectPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EAAE,KAAK,OAAO,EAAW,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAM7F,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC,CAAC;AA4IH,eAAO,MAAM,YAAY;;;;;;0BAxEf,CAAF;;;;;iBA5EG,SAAS,EAAE;sBACN,MAAM,EAAE;4BACF,CAAC,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;2BACzB,MAAM;uBACV,MAAM,CAAC,MAAM,CAAC,YAAY;iCAChB,MAAM;mBACpB,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI;kBACtB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;;;;CAmJ/B,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ controls: {
10
+ disable: boolean;
11
+ };
12
+ translations: [{
13
+ readonly 'en-US': {
14
+ readonly "@dxos/react-ui-form": {
15
+ readonly 'fields label': "Fields";
16
+ readonly 'hidden fields label': "Hidden Fields";
17
+ readonly 'empty readonly ref field label': "(none)";
18
+ readonly 'add property button label': "Add property";
19
+ readonly 'field property label': "Property";
20
+ readonly 'field property placeholder': "Property name";
21
+ readonly 'field format label': "Type";
22
+ readonly 'field path label': "Field path";
23
+ readonly 'add field': "Add field";
24
+ readonly 'delete field': "Delete field";
25
+ readonly 'field limit reached': "Maximum number of fields reached";
26
+ readonly 'boolean input true value': "Yes";
27
+ readonly 'boolean input false value': "No";
28
+ readonly 'show field label': "Show field";
29
+ readonly 'hide field label': "Hide field";
30
+ readonly 'delete field label': "Delete field";
31
+ readonly 'ref field combobox input placeholder': "Search…";
32
+ readonly 'ref field placeholder_one': "Select…";
33
+ readonly 'ref field placeholder_other': "Select items…";
34
+ readonly 'example placeholder': "Example";
35
+ readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
36
+ readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
37
+ readonly 'cancel button label': "Cancel";
38
+ readonly 'save button label': "Save";
39
+ readonly 'format boolean': "Boolean";
40
+ readonly 'format currency': "Currency";
41
+ readonly 'format date': "Date";
42
+ readonly 'format date-time': "DateTime";
43
+ readonly 'format did': "DID";
44
+ readonly 'format duration': "Duration";
45
+ readonly 'format dxn': "DXN";
46
+ readonly 'format email': "Email";
47
+ readonly 'format formula': "Formula";
48
+ readonly 'format hostname': "Hostname";
49
+ readonly 'format integer': "Integer";
50
+ readonly 'format json': "JSON";
51
+ readonly 'format lnglat': "Geopoint";
52
+ readonly 'format markdown': "Markdown";
53
+ readonly 'format percent': "Percent";
54
+ readonly 'format ref': "Reference";
55
+ readonly 'format regex': "RegExp";
56
+ readonly 'format string': "String";
57
+ readonly 'format single-select': "Select";
58
+ readonly 'format multi-select': "Multi-select";
59
+ readonly 'format text': "Long text";
60
+ readonly 'format time': "Time";
61
+ readonly 'format timestamp': "Timestamp";
62
+ readonly 'format user': "User";
63
+ readonly 'format number': "Number";
64
+ readonly 'format uri': "URI";
65
+ readonly 'format url': "URL";
66
+ readonly 'format uuid': "UUID";
67
+ readonly 'latitude label': "Latitude";
68
+ readonly 'longitude label': "Longitude";
69
+ readonly 'select option label': "Label";
70
+ readonly 'select option label placeholder': "Option label";
71
+ readonly 'select option color': "Color";
72
+ readonly 'select option delete': "Delete";
73
+ readonly 'select option add': "Add option";
74
+ readonly 'system schema title': "System type";
75
+ readonly 'system schema description': "System type: cannot add or remove fields.";
76
+ };
77
+ };
78
+ }];
79
+ };
80
+ };
81
+ export default meta;
82
+ type Story = StoryObj<typeof meta>;
83
+ export declare const Default: Story;
84
+ export declare const WithTest: Story;
85
+ //# sourceMappingURL=ObjectPicker.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectPicker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/ObjectPicker.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA4FzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB2B,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,KAuFtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ObjectPicker';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ObjectPicker/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,56 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type ButtonProps, type Label, type ThemedClassName } from '@dxos/react-ui';
3
+ type SettingsRootProps = PropsWithChildren;
4
+ type SettingsSectionProps = PropsWithChildren<{
5
+ title: Label;
6
+ description?: Label;
7
+ }>;
8
+ type SettingsGroupProps = ThemedClassName<PropsWithChildren>;
9
+ type SettingsItemProps = PropsWithChildren<{
10
+ title: Label;
11
+ description?: Label;
12
+ }>;
13
+ export declare const Settings: {
14
+ Root: {
15
+ ({ children }: SettingsRootProps): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+ Section: {
19
+ ({ title, description, children }: SettingsSectionProps): React.JSX.Element;
20
+ displayName: string;
21
+ };
22
+ SectionHeading: {
23
+ ({ title, description }: Omit<SettingsSectionProps, "children">): React.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Group: {
27
+ ({ children, classNames }: SettingsGroupProps): React.JSX.Element;
28
+ displayName: string;
29
+ };
30
+ GroupButton: {
31
+ ({ classNames, ...props }: ButtonProps): React.JSX.Element;
32
+ displayName: string;
33
+ };
34
+ Container: {
35
+ ({ classNames, children }: ThemedClassName<PropsWithChildren>): React.JSX.Element;
36
+ displayName: string;
37
+ };
38
+ Frame: {
39
+ ({ children }: SettingsGroupProps): React.JSX.Element;
40
+ displayName: string;
41
+ };
42
+ FrameItem: {
43
+ ({ title, description, children }: SettingsItemProps): React.JSX.Element;
44
+ displayName: string;
45
+ };
46
+ Item: {
47
+ ({ title, description, children }: SettingsItemProps): React.JSX.Element;
48
+ displayName: string;
49
+ };
50
+ ItemInput: {
51
+ ({ title, description, children }: SettingsItemProps): React.JSX.Element;
52
+ displayName: string;
53
+ };
54
+ };
55
+ export {};
56
+ //# sourceMappingURL=Settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,KAAK,EAEV,KAAK,eAAe,EAGrB,MAAM,gBAAgB,CAAC;AA0BxB,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;AAgB3C,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AA2CH,KAAK,kBAAkB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAkE7D,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AA8CH,eAAO,MAAM,QAAQ;;uBA/Ke,iBAAiB;;;;2CAmBM,oBAAoB;;;;iCAevB,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC;;;;mCA4B7C,kBAAkB;;;;mCAZZ,WAAW;;;;mCAsDb,eAAe,CAAC,iBAAiB,CAAC;;;;uBA9BlD,kBAAkB;;;;2CAYM,iBAAiB;;;;2CA6CjB,iBAAiB;;;;2CAoBZ,iBAAiB;;;CAmClF,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ translations: [{
10
+ readonly 'en-US': {
11
+ readonly "@dxos/react-ui-form": {
12
+ readonly 'fields label': "Fields";
13
+ readonly 'hidden fields label': "Hidden Fields";
14
+ readonly 'empty readonly ref field label': "(none)";
15
+ readonly 'add property button label': "Add property";
16
+ readonly 'field property label': "Property";
17
+ readonly 'field property placeholder': "Property name";
18
+ readonly 'field format label': "Type";
19
+ readonly 'field path label': "Field path";
20
+ readonly 'add field': "Add field";
21
+ readonly 'delete field': "Delete field";
22
+ readonly 'field limit reached': "Maximum number of fields reached";
23
+ readonly 'boolean input true value': "Yes";
24
+ readonly 'boolean input false value': "No";
25
+ readonly 'show field label': "Show field";
26
+ readonly 'hide field label': "Hide field";
27
+ readonly 'delete field label': "Delete field";
28
+ readonly 'ref field combobox input placeholder': "Search…";
29
+ readonly 'ref field placeholder_one': "Select…";
30
+ readonly 'ref field placeholder_other': "Select items…";
31
+ readonly 'example placeholder': "Example";
32
+ readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
33
+ readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
34
+ readonly 'cancel button label': "Cancel";
35
+ readonly 'save button label': "Save";
36
+ readonly 'format boolean': "Boolean";
37
+ readonly 'format currency': "Currency";
38
+ readonly 'format date': "Date";
39
+ readonly 'format date-time': "DateTime";
40
+ readonly 'format did': "DID";
41
+ readonly 'format duration': "Duration";
42
+ readonly 'format dxn': "DXN";
43
+ readonly 'format email': "Email";
44
+ readonly 'format formula': "Formula";
45
+ readonly 'format hostname': "Hostname";
46
+ readonly 'format integer': "Integer";
47
+ readonly 'format json': "JSON";
48
+ readonly 'format lnglat': "Geopoint";
49
+ readonly 'format markdown': "Markdown";
50
+ readonly 'format percent': "Percent";
51
+ readonly 'format ref': "Reference";
52
+ readonly 'format regex': "RegExp";
53
+ readonly 'format string': "String";
54
+ readonly 'format single-select': "Select";
55
+ readonly 'format multi-select': "Multi-select";
56
+ readonly 'format text': "Long text";
57
+ readonly 'format time': "Time";
58
+ readonly 'format timestamp': "Timestamp";
59
+ readonly 'format user': "User";
60
+ readonly 'format number': "Number";
61
+ readonly 'format uri': "URI";
62
+ readonly 'format url': "URL";
63
+ readonly 'format uuid': "UUID";
64
+ readonly 'latitude label': "Latitude";
65
+ readonly 'longitude label': "Longitude";
66
+ readonly 'select option label': "Label";
67
+ readonly 'select option label placeholder': "Option label";
68
+ readonly 'select option color': "Color";
69
+ readonly 'select option delete': "Delete";
70
+ readonly 'select option add': "Add option";
71
+ readonly 'system schema title': "System type";
72
+ readonly 'system schema description': "System type: cannot add or remove fields.";
73
+ };
74
+ };
75
+ }];
76
+ };
77
+ };
78
+ export default meta;
79
+ type Story = StoryObj<typeof meta>;
80
+ export declare const Default: Story;
81
+ //# sourceMappingURL=Settings.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/Settings.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAoC1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Settings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
@@ -1,20 +1,32 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  import React from 'react';
3
- import { type SchemaRegistry } from '@dxos/echo-db';
3
+ import { QueryAST, type SchemaRegistry } from '@dxos/echo';
4
+ import { View } from '@dxos/echo';
4
5
  import { type ThemedClassName } from '@dxos/react-ui';
5
- import { type DataType } from '@dxos/schema';
6
- import { type FormProps } from '../Form';
6
+ import { type QueryFormProps } from '@dxos/react-ui-components';
7
+ import { ProjectionModel } from '@dxos/schema';
8
+ import { type FormRootProps } from '../Form';
7
9
  export type ViewEditorProps = ThemedClassName<{
8
10
  schema: Schema.Schema.AnyNoContext;
9
- view: DataType.View;
10
- registry?: SchemaRegistry;
11
- readonly?: boolean;
11
+ view: View.View;
12
+ mode?: 'schema' | 'tag';
13
+ registry?: SchemaRegistry.SchemaRegistry;
12
14
  showHeading?: boolean;
13
- onTypenameChanged?: (typename: string) => void;
15
+ onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
14
16
  onDelete?: (fieldId: string) => void;
15
- } & Pick<FormProps<any>, 'outerSpacing'>>;
17
+ } & Pick<QueryFormProps, 'types' | 'tags'> & Pick<FormRootProps<any>, 'readonly' | 'db'>>;
16
18
  /**
17
19
  * Schema-based object form.
18
20
  */
19
- export declare const ViewEditor: ({ classNames, schema, view, registry, readonly: _readonly, showHeading, onTypenameChanged, onDelete, outerSpacing, }: ViewEditorProps) => React.JSX.Element;
21
+ export declare const ViewEditor: React.ForwardRefExoticComponent<Omit<{
22
+ schema: Schema.Schema.AnyNoContext;
23
+ view: View.View;
24
+ mode?: "schema" | "tag";
25
+ registry?: SchemaRegistry.SchemaRegistry;
26
+ showHeading?: boolean;
27
+ onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
28
+ onDelete?: (fieldId: string) => void;
29
+ } & Pick<QueryFormProps, "types" | "tags"> & Pick<FormRootProps<any>, "readonly" | "db">, "className"> & {
30
+ classNames?: import("@dxos/ui-types").ClassNameValue;
31
+ } & React.RefAttributes<ProjectionModel>>;
20
32
  //# sourceMappingURL=ViewEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAuB,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAI3F,OAAO,EAAiD,KAAK,QAAQ,EAAmB,MAAM,cAAc,CAAC;AAI7G,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAY/C,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,sHAUxB,eAAe,sBAsNjB,CAAC"}
1
+ {"version":3,"file":"ViewEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAsF,MAAM,OAAO,CAAC;AAE3G,OAAO,EAA4C,QAAQ,EAAO,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,OAAO,EAA8B,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAoE,MAAM,cAAc,CAAC;AAKjH,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACnC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,GACxC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;YAdX,MAAM,CAAC,MAAM,CAAC,YAAY;UAC5B,IAAI,CAAC,IAAI;WACR,QAAQ,GAAG,KAAK;eACZ,cAAc,CAAC,cAAc;kBAC1B,OAAO;qBACJ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI;eACtD,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;;;yCAoKvC,CAAC"}
@@ -1,17 +1,93 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react-vite';
3
- import { type EchoSchema } from '@dxos/echo-schema';
4
- import { DataType, ProjectionModel } from '@dxos/schema';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { type View } from '@dxos/echo';
4
+ import { type EchoSchema } from '@dxos/echo/internal';
5
+ import { type ProjectionModel } from '@dxos/schema';
5
6
  import { type ViewEditorProps } from './ViewEditor';
6
7
  export type ViewEditorDebugObjects = {
7
8
  schema: EchoSchema;
8
- view: DataType.View;
9
+ view: View.View;
9
10
  projection: ProjectionModel;
10
11
  };
11
- type StoryProps = Pick<ViewEditorProps, 'readonly'>;
12
- declare const meta: Meta<StoryProps>;
12
+ type StoryProps = Pick<ViewEditorProps, 'readonly' | 'mode'>;
13
+ declare const meta: {
14
+ title: string;
15
+ render: (props: StoryProps) => React.JSX.Element;
16
+ decorators: import("@storybook/react").Decorator[];
17
+ parameters: {
18
+ layout: string;
19
+ translations: [{
20
+ readonly 'en-US': {
21
+ readonly "@dxos/react-ui-form": {
22
+ readonly 'fields label': "Fields";
23
+ readonly 'hidden fields label': "Hidden Fields";
24
+ readonly 'empty readonly ref field label': "(none)";
25
+ readonly 'add property button label': "Add property";
26
+ readonly 'field property label': "Property";
27
+ readonly 'field property placeholder': "Property name";
28
+ readonly 'field format label': "Type";
29
+ readonly 'field path label': "Field path";
30
+ readonly 'add field': "Add field";
31
+ readonly 'delete field': "Delete field";
32
+ readonly 'field limit reached': "Maximum number of fields reached";
33
+ readonly 'boolean input true value': "Yes";
34
+ readonly 'boolean input false value': "No";
35
+ readonly 'show field label': "Show field";
36
+ readonly 'hide field label': "Hide field";
37
+ readonly 'delete field label': "Delete field";
38
+ readonly 'ref field combobox input placeholder': "Search…";
39
+ readonly 'ref field placeholder_one': "Select…";
40
+ readonly 'ref field placeholder_other': "Select items…";
41
+ readonly 'example placeholder': "Example";
42
+ readonly 'latitude placeholder': "Latitude (e.g., 40.7128)";
43
+ readonly 'longitude placeholder': "Longitude (e.g., -74.0060)";
44
+ readonly 'cancel button label': "Cancel";
45
+ readonly 'save button label': "Save";
46
+ readonly 'format boolean': "Boolean";
47
+ readonly 'format currency': "Currency";
48
+ readonly 'format date': "Date";
49
+ readonly 'format date-time': "DateTime";
50
+ readonly 'format did': "DID";
51
+ readonly 'format duration': "Duration";
52
+ readonly 'format dxn': "DXN";
53
+ readonly 'format email': "Email";
54
+ readonly 'format formula': "Formula";
55
+ readonly 'format hostname': "Hostname";
56
+ readonly 'format integer': "Integer";
57
+ readonly 'format json': "JSON";
58
+ readonly 'format lnglat': "Geopoint";
59
+ readonly 'format markdown': "Markdown";
60
+ readonly 'format percent': "Percent";
61
+ readonly 'format ref': "Reference";
62
+ readonly 'format regex': "RegExp";
63
+ readonly 'format string': "String";
64
+ readonly 'format single-select': "Select";
65
+ readonly 'format multi-select': "Multi-select";
66
+ readonly 'format text': "Long text";
67
+ readonly 'format time': "Time";
68
+ readonly 'format timestamp': "Timestamp";
69
+ readonly 'format user': "User";
70
+ readonly 'format number': "Number";
71
+ readonly 'format uri': "URI";
72
+ readonly 'format url': "URL";
73
+ readonly 'format uuid': "UUID";
74
+ readonly 'latitude label': "Latitude";
75
+ readonly 'longitude label': "Longitude";
76
+ readonly 'select option label': "Label";
77
+ readonly 'select option label placeholder': "Option label";
78
+ readonly 'select option color': "Color";
79
+ readonly 'select option delete': "Delete";
80
+ readonly 'select option add': "Add option";
81
+ readonly 'system schema title': "System type";
82
+ readonly 'system schema description': "System type: cannot add or remove fields.";
83
+ };
84
+ };
85
+ }];
86
+ };
87
+ };
13
88
  export default meta;
14
- type Story = StoryObj<StoryProps>;
89
+ type Story = StoryObj<typeof meta>;
15
90
  export declare const Default: Story;
16
91
  export declare const Readonly: Story;
92
+ export declare const TagQueryMode: Story;
17
93
  //# sourceMappingURL=ViewEditor.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ViewEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ViewEditor/ViewEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKjE,OAAO,EAAU,KAAK,UAAU,EAA6B,MAAM,mBAAmB,CAAC;AAIvF,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAc,MAAM,cAAc,CAAC;AAGrE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAKhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AAiFpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAAU,CAK1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAEtB,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,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC;AA+H7D,QAAA,MAAM,IAAI;;oBA7HmB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJF,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,6 +1,6 @@
1
- export * from './deprecated';
2
- export * from './ControlSection';
3
1
  export * from './FieldEditor';
4
2
  export * from './Form';
3
+ export * from './ObjectPicker';
4
+ export * from './Settings';
5
5
  export * from './ViewEditor';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAE7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,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,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
2
  import { type ThemedClassName } from '@dxos/react-ui';
3
- export declare const TestLayout: ({ classNames, json, children }: ThemedClassName<PropsWithChildren<{
3
+ type TestLayoutProps = ThemedClassName<PropsWithChildren<{
4
4
  json?: any;
5
- }>>) => React.JSX.Element;
6
- export declare const TestPanel: ({ classNames, children }: ThemedClassName<PropsWithChildren>) => React.JSX.Element;
5
+ }>>;
6
+ export declare const TestLayout: ({ classNames, children, json }: TestLayoutProps) => React.JSX.Element;
7
7
  export declare const VIEW_EDITOR_DEBUG_SYMBOL: unique symbol;
8
8
  export declare const FIELD_EDITOR_DEBUG_SYMBOL: unique symbol;
9
+ export {};
9
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,eAAO,MAAM,UAAU,GAAI,gCAAgC,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,sBAK5G,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,0BAA0B,eAAe,CAAC,iBAAiB,CAAC,sBAErF,CAAC;AAGF,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;AAEtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,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;AAaF,eAAO,MAAM,wBAAwB,eAA4B,CAAC;AAClE,eAAO,MAAM,yBAAyB,eAA6B,CAAC"}
@@ -1,4 +1,3 @@
1
- export * from './useForm';
2
- export * from './useRefQueryLookupHandler';
3
- export * from './useQueryRefOptions';
1
+ export * from './useFormHandler';
2
+ export * from './useKeyHandler';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}