@dxos/react-ui-form 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (123) hide show
  1. package/dist/lib/browser/index.mjs +620 -440
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +82 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/node-esm/index.mjs +620 -440
  7. package/dist/lib/node-esm/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/meta.json +1 -1
  9. package/dist/lib/node-esm/translations.mjs +84 -0
  10. package/dist/lib/node-esm/translations.mjs.map +7 -0
  11. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  12. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +63 -62
  13. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  14. package/dist/types/src/components/Form/Form.d.ts +27 -4
  15. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  16. package/dist/types/src/components/Form/Form.stories.d.ts +73 -72
  17. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  18. package/dist/types/src/components/Form/FormField.d.ts +5 -5
  19. package/dist/types/src/components/Form/FormField.d.ts.map +1 -1
  20. package/dist/types/src/components/Form/FormFieldComponent.d.ts +8 -6
  21. package/dist/types/src/components/Form/FormFieldComponent.d.ts.map +1 -1
  22. package/dist/types/src/components/Form/FormFieldComponent.stories.d.ts.map +1 -1
  23. package/dist/types/src/components/Form/FormFieldSet.d.ts +5 -8
  24. package/dist/types/src/components/Form/FormFieldSet.d.ts.map +1 -1
  25. package/dist/types/src/components/Form/fields/ArrayField.d.ts +4 -4
  26. package/dist/types/src/components/Form/fields/ArrayField.d.ts.map +1 -1
  27. package/dist/types/src/components/Form/fields/BooleanField.d.ts.map +1 -1
  28. package/dist/types/src/components/Form/fields/GeoPointField.d.ts.map +1 -1
  29. package/dist/types/src/components/Form/fields/MarkdownField.d.ts +8 -1
  30. package/dist/types/src/components/Form/fields/MarkdownField.d.ts.map +1 -1
  31. package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts +84 -0
  32. package/dist/types/src/components/Form/fields/MarkdownField.stories.d.ts.map +1 -0
  33. package/dist/types/src/components/Form/fields/NumberField.d.ts.map +1 -1
  34. package/dist/types/src/components/Form/fields/RefField.d.ts +10 -4
  35. package/dist/types/src/components/Form/fields/RefField.d.ts.map +1 -1
  36. package/dist/types/src/components/Form/fields/SelectField.d.ts.map +1 -1
  37. package/dist/types/src/components/Form/fields/SelectOptionField.d.ts.map +1 -1
  38. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts +63 -62
  39. package/dist/types/src/components/Form/fields/SelectOptionField.stories.d.ts.map +1 -1
  40. package/dist/types/src/components/Form/fields/TextAreaField.d.ts.map +1 -1
  41. package/dist/types/src/components/Form/fields/TextField.d.ts +1 -1
  42. package/dist/types/src/components/Form/fields/TextField.d.ts.map +1 -1
  43. package/dist/types/src/components/Form/fields/TupleField.d.ts.map +1 -1
  44. package/dist/types/src/components/ObjectForm/ObjectForm.d.ts.map +1 -1
  45. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +17 -3
  46. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -1
  47. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +63 -62
  48. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -1
  49. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts +1 -1
  50. package/dist/types/src/components/ObjectProperties/ObjectProperties.d.ts.map +1 -1
  51. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts +108 -64
  52. package/dist/types/src/components/ObjectProperties/ObjectProperties.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts +2 -0
  54. package/dist/types/src/components/ObjectProperties/ObjectProperties.test.d.ts.map +1 -0
  55. package/dist/types/src/components/Settings/Settings.d.ts +24 -8
  56. package/dist/types/src/components/Settings/Settings.d.ts.map +1 -1
  57. package/dist/types/src/components/Settings/Settings.stories.d.ts +64 -62
  58. package/dist/types/src/components/Settings/Settings.stories.d.ts.map +1 -1
  59. package/dist/types/src/components/Settings/SettingsFieldSet.d.ts +43 -0
  60. package/dist/types/src/components/Settings/SettingsFieldSet.d.ts.map +1 -0
  61. package/dist/types/src/components/Settings/SettingsItem.d.ts +16 -0
  62. package/dist/types/src/components/Settings/SettingsItem.d.ts.map +1 -0
  63. package/dist/types/src/components/Settings/SettingsSelectField.d.ts +18 -0
  64. package/dist/types/src/components/Settings/SettingsSelectField.d.ts.map +1 -0
  65. package/dist/types/src/components/Settings/index.d.ts +2 -0
  66. package/dist/types/src/components/Settings/index.d.ts.map +1 -1
  67. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +2 -2
  68. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  69. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +63 -62
  70. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  71. package/dist/types/src/components/testing.d.ts +4 -4
  72. package/dist/types/src/components/testing.d.ts.map +1 -1
  73. package/dist/types/src/hooks/useFormHandler.d.ts.map +1 -1
  74. package/dist/types/src/hooks/useKeyHandler.d.ts.map +1 -1
  75. package/dist/types/src/index.d.ts +0 -2
  76. package/dist/types/src/index.d.ts.map +1 -1
  77. package/dist/types/src/translations.d.ts +63 -62
  78. package/dist/types/src/translations.d.ts.map +1 -1
  79. package/dist/types/src/util/field-type.d.ts +19 -0
  80. package/dist/types/src/util/field-type.d.ts.map +1 -0
  81. package/dist/types/src/util/field.d.ts.map +1 -1
  82. package/dist/types/src/util/formatting.d.ts.map +1 -1
  83. package/dist/types/src/util/index.d.ts +1 -0
  84. package/dist/types/src/util/index.d.ts.map +1 -1
  85. package/dist/types/src/util/properties.d.ts.map +1 -1
  86. package/dist/types/src/util/refs.d.ts.map +1 -1
  87. package/dist/types/tsconfig.tsbuildinfo +1 -1
  88. package/package.json +39 -38
  89. package/src/components/FieldEditor/FieldEditor.stories.tsx +3 -4
  90. package/src/components/FieldEditor/FieldEditor.tsx +3 -2
  91. package/src/components/Form/Form.stories.tsx +5 -16
  92. package/src/components/Form/Form.tsx +30 -7
  93. package/src/components/Form/FormField.tsx +7 -5
  94. package/src/components/Form/FormFieldComponent.tsx +3 -0
  95. package/src/components/Form/FormFieldSet.tsx +1 -3
  96. package/src/components/Form/fields/ArrayField.tsx +8 -3
  97. package/src/components/Form/fields/GeoPointField.tsx +2 -1
  98. package/src/components/Form/fields/MarkdownField.stories.tsx +206 -0
  99. package/src/components/Form/fields/MarkdownField.tsx +135 -45
  100. package/src/components/Form/fields/RefField.tsx +61 -30
  101. package/src/components/Form/fields/SelectOptionField.stories.tsx +8 -5
  102. package/src/components/Form/fields/SelectOptionField.tsx +3 -2
  103. package/src/components/Form/fields/TextField.tsx +2 -2
  104. package/src/components/ObjectForm/ObjectForm.tsx +6 -5
  105. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +5 -2
  106. package/src/components/ObjectPicker/ObjectPicker.tsx +28 -12
  107. package/src/components/ObjectProperties/ObjectProperties.stories.tsx +321 -22
  108. package/src/components/ObjectProperties/ObjectProperties.test.tsx +101 -0
  109. package/src/components/ObjectProperties/ObjectProperties.tsx +26 -14
  110. package/src/components/Settings/AUDIT.md +52 -0
  111. package/src/components/Settings/Settings.stories.tsx +50 -1
  112. package/src/components/Settings/Settings.tsx +6 -53
  113. package/src/components/Settings/SettingsFieldSet.tsx +257 -0
  114. package/src/components/Settings/SettingsItem.tsx +62 -0
  115. package/src/components/Settings/SettingsSelectField.tsx +59 -0
  116. package/src/components/Settings/index.ts +2 -0
  117. package/src/components/ViewEditor/ViewEditor.stories.tsx +17 -18
  118. package/src/components/ViewEditor/ViewEditor.tsx +4 -3
  119. package/src/components/testing.tsx +20 -21
  120. package/src/index.ts +0 -4
  121. package/src/translations.ts +7 -4
  122. package/src/util/field-type.ts +60 -0
  123. package/src/util/index.ts +1 -0
@@ -1,15 +1,18 @@
1
1
  import React, { type PropsWithChildren } from 'react';
2
2
  import { type Label, type ThemedClassName } from '@dxos/react-ui';
3
3
  type SettingsRootProps = ThemedClassName<PropsWithChildren>;
4
+ declare function SettingsRoot({ children, classNames }: SettingsRootProps): React.JSX.Element;
5
+ declare namespace SettingsRoot {
6
+ var displayName: string;
7
+ }
4
8
  type SettingsSectionProps = PropsWithChildren<{
5
9
  title: Label;
6
10
  description?: Label;
7
11
  }>;
8
- type SettingsPanelProps = ThemedClassName<PropsWithChildren>;
9
- type SettingsItemProps = PropsWithChildren<{
10
- title: Label;
11
- description?: Label;
12
- }>;
12
+ declare function SettingsSection({ title, description, children }: SettingsSectionProps): React.JSX.Element;
13
+ declare namespace SettingsSection {
14
+ var displayName: string;
15
+ }
13
16
  export declare const Settings: {
14
17
  Root: {
15
18
  ({ children, classNames }: SettingsRootProps): React.JSX.Element;
@@ -17,17 +20,30 @@ export declare const Settings: {
17
20
  };
18
21
  Viewport: React.ForwardRefExoticComponent<Omit<{}, "className"> & {
19
22
  classNames?: import("@dxos/ui-types").ClassNameValue;
20
- } & Pick<React.HTMLAttributes<Element>, "style" | "children" | "className" | "role"> & React.RefAttributes<HTMLDivElement>>;
23
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
21
24
  Section: {
22
25
  ({ title, description, children }: SettingsSectionProps): React.JSX.Element;
23
26
  displayName: string;
24
27
  };
25
28
  Panel: {
26
- ({ classNames, children }: SettingsPanelProps): React.JSX.Element;
29
+ ({ classNames, children }: Omit<{
30
+ children?: React.ReactNode | undefined;
31
+ }, "className"> & {
32
+ classNames?: import("@dxos/ui-types").ClassNameValue;
33
+ }): React.JSX.Element;
27
34
  displayName: string;
28
35
  };
29
36
  Item: {
30
- ({ title, description, children }: SettingsItemProps): React.JSX.Element;
37
+ ({ title, description, children }: {
38
+ title: Label;
39
+ description?: Label;
40
+ } & {
41
+ children?: React.ReactNode | undefined;
42
+ }): React.JSX.Element;
43
+ displayName: string;
44
+ };
45
+ FieldSet: {
46
+ <T extends Record<string, any>>({ schema, values, onValuesChanged, readonly, fieldMap, visible, sort, pathPrefix, }: import("./SettingsFieldSet").SettingsFieldSetProps<T>): React.JSX.Element;
31
47
  displayName: string;
32
48
  };
33
49
  };
@@ -1 +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,EAAS,KAAK,KAAK,EAAc,KAAK,eAAe,EAAqC,MAAM,gBAAgB,CAAC;AAexH,KAAK,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AA8B5D,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AAmBH,KAAK,kBAAkB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAgB7D,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;AA8BH,eAAO,MAAM,QAAQ;;mCAnG2B,iBAAiB;;;;;;;2CAiCN,oBAAoB;;;;mCAmB9B,kBAAkB;;;;2CAmBN,iBAAiB;;;CAkC7E,CAAC"}
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,EAAE,KAAK,KAAK,EAAc,KAAK,eAAe,EAAqC,MAAM,gBAAgB,CAAC;AAgBjH,KAAK,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;8BAEtC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,iBAAiB;;;;AA4BjE,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;iCAEsB,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,oBAAoB;;;;AAiB/E,eAAO,MAAM,QAAQ;IACnB,IAAI;mCAnD0C,iBAAiB;;;IAoD/D,QAAQ;;;IACR,OAAO;2CApBkD,oBAAoB;;;IAqB7E,KAAK;;;;;;;;IACL,IAAI;;;;;;;;;IACJ,QAAQ;;;;CACT,CAAC"}
@@ -9,68 +9,69 @@ declare const meta: {
9
9
  translations: [{
10
10
  readonly 'en-US': {
11
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.button': "Add field";
21
- readonly 'boolean-input-true.value': "Yes";
22
- readonly 'boolean-input-false.value': "No";
23
- readonly 'show-field.label': "Show field";
24
- readonly 'hide-field.label': "Hide field";
25
- readonly 'delete-field.label': "Delete field";
26
- readonly 'ref-field-combobox-input.placeholder': "Search…";
27
- readonly 'ref-field.placeholder': "Select…";
28
- readonly 'ref-field.placeholder_one': "Select…";
29
- readonly 'ref-field.placeholder_other': "Select items…";
30
- readonly 'create-option.label': "Create";
31
- readonly 'add-tag.label': "Add tag";
32
- readonly 'example.placeholder': "Example";
33
- readonly 'latitude.placeholder': "Latitude (e.g., 40.7128)";
34
- readonly 'longitude.placeholder': "Longitude (e.g., -74.0060)";
35
- readonly 'cancel-button.label': "Cancel";
36
- readonly 'save-button.label': "Save";
37
- readonly 'format.boolean.label': "Boolean";
38
- readonly 'format.currency.label': "Currency";
39
- readonly 'format.date.label': "Date";
40
- readonly 'format.date-time.label': "DateTime";
41
- readonly 'format.did.label': "DID";
42
- readonly 'format.duration.label': "Duration";
43
- readonly 'format.dxn.label': "DXN";
44
- readonly 'format.email.label': "Email";
45
- readonly 'format.formula.label': "Formula";
46
- readonly 'format.hostname.label': "Hostname";
47
- readonly 'format.integer.label': "Integer";
48
- readonly 'format.json.label': "JSON";
49
- readonly 'format.lnglat.label': "Geopoint";
50
- readonly 'format.markdown.label': "Markdown";
51
- readonly 'format.percent.label': "Percent";
52
- readonly 'format.ref.label': "Reference";
53
- readonly 'format.regex.label': "RegExp";
54
- readonly 'format.string.label': "String";
55
- readonly 'format.single-select.label': "Select";
56
- readonly 'format.multi-select.label': "Multi-select";
57
- readonly 'format.text.label': "Long text";
58
- readonly 'format.time.label': "Time";
59
- readonly 'format.timestamp.label': "Timestamp";
60
- readonly 'format.user.label': "User";
61
- readonly 'format.number.label': "Number";
62
- readonly 'format.uri.label': "URI";
63
- readonly 'format.url.label': "URL";
64
- readonly 'format.uuid.label': "UUID";
65
- readonly 'latitude.label': "Latitude";
66
- readonly 'longitude.label': "Longitude";
67
- readonly 'select-option.label': "Label";
68
- readonly 'select-option-label.placeholder': "Option label";
69
- readonly 'select-option-delete.button': "Delete";
70
- readonly 'select-option-add.button': "Add option";
71
- readonly 'system-schema.title': "System type";
72
- readonly 'system-schema.description': "System type: cannot add or remove fields.";
73
- readonly 'remove.button': "Remove";
12
+ readonly 'fields.label': 'Fields';
13
+ readonly 'hidden-fields.label': 'Hidden Fields';
14
+ readonly 'empty-readonly-ref-field.label': '(none)';
15
+ readonly 'field-property.label': 'Property';
16
+ readonly 'field-property.placeholder': 'Property name';
17
+ readonly 'field-format.label': 'Type';
18
+ readonly 'field-path.label': 'Field path';
19
+ readonly 'add-item.button': 'Add item';
20
+ readonly 'add-property-button.label': 'Add property';
21
+ readonly 'boolean-input-true.value': 'Yes';
22
+ readonly 'boolean-input-false.value': 'No';
23
+ readonly 'show-field.label': 'Show field';
24
+ readonly 'hide-field.label': 'Hide field';
25
+ readonly 'delete-field.label': 'Delete field';
26
+ readonly 'create-option.label': 'Create';
27
+ readonly 'add-tag.label': 'Add tag';
28
+ readonly 'ref-field-combobox-input.placeholder': 'Search\u2026';
29
+ readonly 'ref-field.placeholder': 'Select\u2026';
30
+ readonly 'ref-field.placeholder_one': 'Select\u2026';
31
+ readonly 'ref-field.placeholder_other': 'Select items\u2026';
32
+ readonly 'example.placeholder': 'Example';
33
+ readonly 'latitude.placeholder': 'Latitude (e.g., 40.7128)';
34
+ readonly 'longitude.placeholder': 'Longitude (e.g., -74.0060)';
35
+ readonly 'cancel-button.label': 'Cancel';
36
+ readonly 'save-button.label': 'Save';
37
+ readonly 'create-text.label': 'Create text';
38
+ readonly 'format.boolean.label': 'Boolean';
39
+ readonly 'format.currency.label': 'Currency';
40
+ readonly 'format.date.label': 'Date';
41
+ readonly 'format.date-time.label': 'DateTime';
42
+ readonly 'format.did.label': 'DID';
43
+ readonly 'format.duration.label': 'Duration';
44
+ readonly 'format.dxn.label': 'DXN';
45
+ readonly 'format.email.label': 'Email';
46
+ readonly 'format.formula.label': 'Formula';
47
+ readonly 'format.hostname.label': 'Hostname';
48
+ readonly 'format.integer.label': 'Integer';
49
+ readonly 'format.json.label': 'JSON';
50
+ readonly 'format.lnglat.label': 'Geopoint';
51
+ readonly 'format.markdown.label': 'Markdown';
52
+ readonly 'format.percent.label': 'Percent';
53
+ readonly 'format.ref.label': 'Reference';
54
+ readonly 'format.regex.label': 'RegExp';
55
+ readonly 'format.string.label': 'String';
56
+ readonly 'format.single-select.label': 'Select';
57
+ readonly 'format.multi-select.label': 'Multi-select';
58
+ readonly 'format.text.label': 'Long text';
59
+ readonly 'format.time.label': 'Time';
60
+ readonly 'format.timestamp.label': 'Timestamp';
61
+ readonly 'format.user.label': 'User';
62
+ readonly 'format.number.label': 'Number';
63
+ readonly 'format.uri.label': 'URI';
64
+ readonly 'format.url.label': 'URL';
65
+ readonly 'format.uuid.label': 'UUID';
66
+ readonly 'latitude.label': 'Latitude';
67
+ readonly 'longitude.label': 'Longitude';
68
+ readonly 'select-option.label': 'Label';
69
+ readonly 'select-option-label.placeholder': 'Option label';
70
+ readonly 'select-option-delete.button': 'Delete';
71
+ readonly 'select-option-add.button': 'Add option';
72
+ readonly 'system-schema.title': 'System type';
73
+ readonly 'system-schema.description': 'System type: cannot add or remove fields.';
74
+ readonly 'remove.button': 'Remove';
74
75
  };
75
76
  };
76
77
  }];
@@ -79,4 +80,5 @@ declare const meta: {
79
80
  export default meta;
80
81
  type Story = StoryObj<typeof meta>;
81
82
  export declare const Default: Story;
83
+ export declare const FieldSet: Story;
82
84
  //# sourceMappingURL=Settings.stories.d.ts.map
@@ -1 +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;AAmC1B,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"}
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;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAoC1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQM,CAAC;eAEF,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AA6CjC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import * as SchemaAST from 'effect/SchemaAST';
2
+ import React from 'react';
3
+ /**
4
+ * Props for a custom field renderer.
5
+ * The renderer provides the control only; SettingsItem wrapper is handled by FieldSet.
6
+ */
7
+ export type SettingsFieldProps<T = any> = {
8
+ value: T;
9
+ onChange: (value: T) => void;
10
+ readonly?: boolean;
11
+ };
12
+ /**
13
+ * Map of property names to either a custom field renderer or a nested field map for struct fields.
14
+ * When a value type `T` is provided, the map shape is checked against the schema's value type.
15
+ */
16
+ export type SettingsFieldMap<T extends Record<string, any> = Record<string, any>> = {
17
+ [K in keyof T]?: NonNullable<T[K]> extends Record<string, any> ? SettingsFieldMap<NonNullable<T[K]>> : React.FC<SettingsFieldProps<T[K]>>;
18
+ };
19
+ export type SettingsFieldSetProps<T extends Record<string, any> = Record<string, any>> = {
20
+ /** Effect Schema for the settings object. */
21
+ schema: {
22
+ ast: SchemaAST.AST;
23
+ };
24
+ /** Current settings values. */
25
+ values: T;
26
+ /** Callback when any value changes. Receives a new complete object. */
27
+ onValuesChanged?: (values: T) => void;
28
+ /** When true, all controls are disabled. */
29
+ readonly?: boolean;
30
+ /** Map of property names to custom field renderers. Nested objects map to struct sub-fields. */
31
+ fieldMap?: SettingsFieldMap<T>;
32
+ /** Control field visibility. Receives the dotted path (e.g. `'modelDefaults.edge'`) at every level. */
33
+ visible?: (path: string, values: T) => boolean;
34
+ /** Override the order of fields. Fields not listed are appended in schema order. Applied per scope. */
35
+ sort?: string[];
36
+ /** Internal: dot-path prefix used by recursive struct rendering. */
37
+ pathPrefix?: string;
38
+ };
39
+ export declare function SettingsFieldSet<T extends Record<string, any>>({ schema, values, onValuesChanged, readonly, fieldMap, visible, sort, pathPrefix }: SettingsFieldSetProps<T>): React.JSX.Element;
40
+ export declare namespace SettingsFieldSet {
41
+ var displayName: string;
42
+ }
43
+ //# sourceMappingURL=SettingsFieldSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/SettingsFieldSet.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAA+B,MAAM,OAAO,CAAC;AAYpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,GAAG,IAAI;IACxC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;KACjF,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1D,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACnC,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;IACvF,6CAA6C;IAC7C,MAAM,EAAE;QAAE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAA;KAAE,CAAC;IAE/B,+BAA+B;IAC/B,MAAM,EAAE,CAAC,CAAC;IAEV,uEAAuE;IACvE,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAEtC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAE/B,uGAAuG;IACvG,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAE/C,uGAAuG;IACvG,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;yCAM+B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAC9D,MAAM,EACN,MAAM,EACN,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,UAAe,EAChB,EAAE,qBAAqB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import { type Label, type ThemedClassName } from '@dxos/react-ui';
3
+ type SettingsPanelProps = ThemedClassName<PropsWithChildren>;
4
+ export declare function SettingsPanel({ classNames, children }: SettingsPanelProps): React.JSX.Element;
5
+ export declare namespace SettingsPanel {
6
+ var displayName: string;
7
+ }
8
+ type SettingsItemProps = PropsWithChildren<{
9
+ title: Label;
10
+ description?: Label;
11
+ }>;
12
+ export declare function SettingsItem({ title, description, children }: SettingsItemProps): React.JSX.Element;
13
+ export declare namespace SettingsItem {
14
+ var displayName: string;
15
+ }
16
+ //# sourceMappingURL=SettingsItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/SettingsItem.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAS,KAAK,KAAK,EAAE,KAAK,eAAe,EAAqC,MAAM,gBAAgB,CAAC;AAY5G,KAAK,kBAAkB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;sCAE/B,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,kBAAkB;;;;AAc1E,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC,CAAC;qCAE0B,EAAE,KAAK,EAAE,WAAgB,EAAE,QAAQ,EAAE,EAAE,iBAAiB"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { type SettingsFieldProps } from './SettingsFieldSet';
3
+ export type SelectFieldOption = {
4
+ value: string;
5
+ label?: string;
6
+ };
7
+ export type CreateSelectFieldOptions = {
8
+ /** Options to display. Strings are used as both value and label. */
9
+ options: ReadonlyArray<string | SelectFieldOption>;
10
+ /** Label for the sentinel option that maps to `undefined`. Defaults to `'Default'`. Pass `null` to omit. */
11
+ defaultLabel?: string | null;
12
+ };
13
+ /**
14
+ * Factory for a `SettingsFieldSet` `fieldMap` entry that renders a Select control
15
+ * over a fixed list of options, with an optional sentinel for `undefined`.
16
+ */
17
+ export declare const createSelectField: ({ options, defaultLabel, }: CreateSelectFieldOptions) => React.FC<SettingsFieldProps<string | undefined>>;
18
+ //# sourceMappingURL=SettingsSelectField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsSelectField.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/SettingsSelectField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,oEAAoE;IACpE,OAAO,EAAE,aAAa,CAAC,MAAM,GAAG,iBAAiB,CAAC,CAAC;IACnD,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,+BAG3B,wBAAwB,KAAG,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,MAAM,GAAG,SAAS,CAAC,CA6B5E,CAAC"}
@@ -1,2 +1,4 @@
1
1
  export * from './Settings';
2
+ export { type SettingsFieldMap, type SettingsFieldProps, type SettingsFieldSetProps } from './SettingsFieldSet';
3
+ export { createSelectField, type CreateSelectFieldOptions, type SelectFieldOption } from './SettingsSelectField';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Settings/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChH,OAAO,EAAE,iBAAiB,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -21,12 +21,12 @@ export type ViewEditorProps = ThemedClassName<{
21
21
  export declare const ViewEditor: React.ForwardRefExoticComponent<Omit<{
22
22
  schema: Schema.Schema.AnyNoContext;
23
23
  view: View.View;
24
- mode?: "schema" | "tag";
24
+ mode?: 'schema' | 'tag';
25
25
  registry?: SchemaRegistry.SchemaRegistry;
26
26
  showHeading?: boolean;
27
27
  onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
28
28
  onDelete?: (fieldId: string) => void;
29
- } & Pick<QueryFormProps, "tags" | "types"> & Pick<FormRootProps<any>, "readonly" | "db">, "className"> & {
29
+ } & Pick<QueryFormProps, "tags" | "types"> & Pick<FormRootProps<any>, "db" | "readonly">, "className"> & {
30
30
  classNames?: import("@dxos/ui-types").ClassNameValue;
31
31
  } & React.RefAttributes<ProjectionModel>>;
32
32
  //# sourceMappingURL=ViewEditor.d.ts.map
@@ -1 +1 @@
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,EAEL,eAAe,EAIhB,MAAM,cAAc,CAAC;AAKtB,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,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AAI,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;;;yCAyKvC,CAAC"}
@@ -19,68 +19,69 @@ declare const meta: {
19
19
  translations: [{
20
20
  readonly 'en-US': {
21
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.button': "Add field";
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 'ref-field-combobox-input.placeholder': "Search…";
37
- readonly 'ref-field.placeholder': "Select…";
38
- readonly 'ref-field.placeholder_one': "Select…";
39
- readonly 'ref-field.placeholder_other': "Select items…";
40
- readonly 'create-option.label': "Create";
41
- readonly 'add-tag.label': "Add tag";
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 'format.boolean.label': "Boolean";
48
- readonly 'format.currency.label': "Currency";
49
- readonly 'format.date.label': "Date";
50
- readonly 'format.date-time.label': "DateTime";
51
- readonly 'format.did.label': "DID";
52
- readonly 'format.duration.label': "Duration";
53
- readonly 'format.dxn.label': "DXN";
54
- readonly 'format.email.label': "Email";
55
- readonly 'format.formula.label': "Formula";
56
- readonly 'format.hostname.label': "Hostname";
57
- readonly 'format.integer.label': "Integer";
58
- readonly 'format.json.label': "JSON";
59
- readonly 'format.lnglat.label': "Geopoint";
60
- readonly 'format.markdown.label': "Markdown";
61
- readonly 'format.percent.label': "Percent";
62
- readonly 'format.ref.label': "Reference";
63
- readonly 'format.regex.label': "RegExp";
64
- readonly 'format.string.label': "String";
65
- readonly 'format.single-select.label': "Select";
66
- readonly 'format.multi-select.label': "Multi-select";
67
- readonly 'format.text.label': "Long text";
68
- readonly 'format.time.label': "Time";
69
- readonly 'format.timestamp.label': "Timestamp";
70
- readonly 'format.user.label': "User";
71
- readonly 'format.number.label': "Number";
72
- readonly 'format.uri.label': "URI";
73
- readonly 'format.url.label': "URL";
74
- readonly 'format.uuid.label': "UUID";
75
- readonly 'latitude.label': "Latitude";
76
- readonly 'longitude.label': "Longitude";
77
- readonly 'select-option.label': "Label";
78
- readonly 'select-option-label.placeholder': "Option label";
79
- readonly 'select-option-delete.button': "Delete";
80
- readonly 'select-option-add.button': "Add option";
81
- readonly 'system-schema.title': "System type";
82
- readonly 'system-schema.description': "System type: cannot add or remove fields.";
83
- readonly 'remove.button': "Remove";
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';
84
85
  };
85
86
  };
86
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,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,KAAK,UAAU,EAAwB,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,eAAe,EAAmC,MAAM,cAAc,CAAC;AAKrF,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAWhE,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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,EAAU,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAI9D,KAAK,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,UAAU,GAAI,gCAAgC,eAAe,sBAkBzE,CAAC;AAaF,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;AAGnD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAmE,MAAM,cAAc,CAAC;AAG9G,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/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,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC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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"}