@dxos/react-ui-form 0.8.4-main.dedc0f3 → 0.8.4-main.ead640a

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 (88) hide show
  1. package/dist/lib/browser/index.mjs +422 -284
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/node-esm/index.mjs +422 -284
  5. package/dist/lib/node-esm/index.mjs.map +4 -4
  6. package/dist/lib/node-esm/meta.json +1 -1
  7. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts +3 -2
  8. package/dist/types/src/components/ControlSection/ControlSection.stories.d.ts.map +1 -1
  9. package/dist/types/src/components/FieldEditor/FieldEditor.d.ts.map +1 -1
  10. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts +3 -2
  11. package/dist/types/src/components/FieldEditor/FieldEditor.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/Form/ArrayField.d.ts.map +1 -1
  13. package/dist/types/src/components/Form/Form.d.ts +2 -2
  14. package/dist/types/src/components/Form/Form.d.ts.map +1 -1
  15. package/dist/types/src/components/Form/Form.stories.d.ts +12 -11
  16. package/dist/types/src/components/Form/Form.stories.d.ts.map +1 -1
  17. package/dist/types/src/components/Form/FormContent.d.ts +5 -5
  18. package/dist/types/src/components/Form/FormContent.d.ts.map +1 -1
  19. package/dist/types/src/components/Form/FormContext.d.ts +2 -2
  20. package/dist/types/src/components/Form/FormContext.d.ts.map +1 -1
  21. package/dist/types/src/components/Form/Input.d.ts +1 -1
  22. package/dist/types/src/components/Form/Input.d.ts.map +1 -1
  23. package/dist/types/src/components/Form/RefField.d.ts +10 -6
  24. package/dist/types/src/components/Form/RefField.d.ts.map +1 -1
  25. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts +3 -2
  26. package/dist/types/src/components/Form/custom/SelectOptionsInput.stories.d.ts.map +1 -1
  27. package/dist/types/src/components/Form/factory.d.ts +1 -1
  28. package/dist/types/src/components/Form/factory.d.ts.map +1 -1
  29. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts +41 -0
  30. package/dist/types/src/components/ObjectPicker/ObjectPicker.d.ts.map +1 -0
  31. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts +82 -0
  32. package/dist/types/src/components/ObjectPicker/ObjectPicker.stories.d.ts.map +1 -0
  33. package/dist/types/src/components/ObjectPicker/index.d.ts +2 -0
  34. package/dist/types/src/components/ObjectPicker/index.d.ts.map +1 -0
  35. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts +19 -6
  36. package/dist/types/src/components/ViewEditor/ViewEditor.d.ts.map +1 -1
  37. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts +7 -6
  38. package/dist/types/src/components/ViewEditor/ViewEditor.stories.d.ts.map +1 -1
  39. package/dist/types/src/components/index.d.ts +1 -0
  40. package/dist/types/src/components/index.d.ts.map +1 -1
  41. package/dist/types/src/hooks/useForm.d.ts +2 -2
  42. package/dist/types/src/hooks/useForm.d.ts.map +1 -1
  43. package/dist/types/src/hooks/useQueryRefOptions.d.ts +9 -3
  44. package/dist/types/src/hooks/useQueryRefOptions.d.ts.map +1 -1
  45. package/dist/types/src/hooks/useRefQueryLookupHandler.d.ts.map +1 -1
  46. package/dist/types/src/translations.d.ts +2 -1
  47. package/dist/types/src/translations.d.ts.map +1 -1
  48. package/dist/types/src/util/field.d.ts +1 -1
  49. package/dist/types/src/util/field.d.ts.map +1 -1
  50. package/dist/types/src/util/formatting.d.ts +1 -1
  51. package/dist/types/src/util/formatting.d.ts.map +1 -1
  52. package/dist/types/src/util/refs.d.ts +1 -1
  53. package/dist/types/src/util/refs.d.ts.map +1 -1
  54. package/dist/types/src/util/schema.d.ts +1 -1
  55. package/dist/types/src/util/schema.d.ts.map +1 -1
  56. package/dist/types/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +39 -39
  58. package/src/components/ControlSection/ControlSection.stories.tsx +3 -4
  59. package/src/components/ControlSection/ControlSection.tsx +1 -1
  60. package/src/components/FieldEditor/FieldEditor.stories.tsx +6 -5
  61. package/src/components/FieldEditor/FieldEditor.tsx +5 -2
  62. package/src/components/Form/ArrayField.tsx +4 -3
  63. package/src/components/Form/Form.stories.tsx +32 -32
  64. package/src/components/Form/Form.tsx +13 -5
  65. package/src/components/Form/FormContent.tsx +30 -10
  66. package/src/components/Form/FormContext.tsx +3 -3
  67. package/src/components/Form/Input.tsx +1 -1
  68. package/src/components/Form/RefField.tsx +48 -64
  69. package/src/components/Form/custom/GeoPointInput.tsx +1 -1
  70. package/src/components/Form/custom/SelectOptionsInput.stories.tsx +5 -6
  71. package/src/components/Form/custom/SelectOptionsInput.tsx +1 -1
  72. package/src/components/Form/factory.tsx +1 -1
  73. package/src/components/ObjectPicker/ObjectPicker.stories.tsx +207 -0
  74. package/src/components/ObjectPicker/ObjectPicker.tsx +161 -0
  75. package/src/components/ObjectPicker/index.ts +5 -0
  76. package/src/components/ViewEditor/ViewEditor.stories.tsx +103 -56
  77. package/src/components/ViewEditor/ViewEditor.test.tsx +4 -3
  78. package/src/components/ViewEditor/ViewEditor.tsx +270 -229
  79. package/src/components/index.ts +1 -0
  80. package/src/components/testing.tsx +2 -2
  81. package/src/hooks/useForm.ts +7 -4
  82. package/src/hooks/useQueryRefOptions.ts +15 -6
  83. package/src/hooks/useRefQueryLookupHandler.ts +3 -3
  84. package/src/translations.ts +2 -1
  85. package/src/util/field.ts +1 -1
  86. package/src/util/formatting.ts +1 -1
  87. package/src/util/refs.ts +2 -2
  88. package/src/util/schema.ts +2 -4
@@ -1,4 +1,4 @@
1
- import { FormatEnum } from '@dxos/echo-schema';
1
+ import { FormatEnum } from '@dxos/echo/internal';
2
2
  import { type SimpleType } from '@dxos/effect';
3
3
  import { type InputComponent } from './Input';
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/factory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,EAAE,SAAS,UAAU,GAAG,MAAM,KAAG,cAAc,GAAG,SAgBnG,CAAC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/factory.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,EAAE,SAAS,UAAU,GAAG,MAAM,KAAG,cAAc,GAAG,SAgBnG,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type * as Schema from 'effect/Schema';
2
+ import React from 'react';
3
+ import { type ThemedClassName } from '@dxos/react-ui';
4
+ import { type QueryTag } from '../../hooks';
5
+ export type ObjectPickerContentProps = ThemedClassName<{
6
+ options: QueryTag[];
7
+ selectedIds?: string[];
8
+ createSchema?: Schema.Schema.AnyNoContext;
9
+ createOptionLabel?: [string, {
10
+ ns: string;
11
+ }];
12
+ createOptionIcon?: string;
13
+ createInitialValuePath?: string;
14
+ onSelect: (id: string) => void;
15
+ onCreate?: (values: any) => void;
16
+ }>;
17
+ export declare const ObjectPicker: {
18
+ 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;
19
+ Trigger: React.ForwardRefExoticComponent<Omit<import("@dxos/react-ui").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
+ VirtualTrigger: {
21
+ (props: import("@dxos/react-ui").PopoverVirtualTriggerProps & {
22
+ __scopePopover?: import("@radix-ui/react-context").Scope;
23
+ }): React.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Content: React.ForwardRefExoticComponent<Omit<{
27
+ options: QueryTag[];
28
+ selectedIds?: string[];
29
+ createSchema?: Schema.Schema.AnyNoContext;
30
+ createOptionLabel?: [string, {
31
+ ns: string;
32
+ }];
33
+ createOptionIcon?: string;
34
+ createInitialValuePath?: string;
35
+ onSelect: (id: string) => void;
36
+ onCreate?: (values: any) => void;
37
+ }, "className"> & {
38
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
39
+ } & React.RefAttributes<HTMLDivElement>>;
40
+ };
41
+ //# 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,KAA0F,MAAM,OAAO,CAAC;AAE/G,OAAO,EAAiB,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAGrF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACrD,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC,CAAC,CAAC;AAoIH,eAAO,MAAM,YAAY;;;;;0BA/F+E,CAAC;;;;;iBA7C9F,QAAQ,EAAE;sBACL,MAAM,EAAE;uBACP,MAAM,CAAC,MAAM,CAAC,YAAY;4BACrB,CAAC,MAAM,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;2BACzB,MAAM;iCACA,MAAM;kBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;mBACnB,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI;;;;CA0IjC,CAAC"}
@@ -0,0 +1,82 @@
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 "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 'button add property': "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 'button cancel': "Cancel";
35
+ readonly 'button save': "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 record type";
72
+ readonly 'system schema description': "This is a system record type and cannot be modified, though the view can still be configured.";
73
+ };
74
+ };
75
+ }];
76
+ };
77
+ };
78
+ export default meta;
79
+ type Story = StoryObj<typeof meta>;
80
+ export declare const Default: Story;
81
+ export declare const WithTest: Story;
82
+ //# 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;AA2FzE,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,KAqFtB,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"}
@@ -1,21 +1,34 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  import React from 'react';
3
+ import { QueryAST } from '@dxos/echo';
3
4
  import { type SchemaRegistry } from '@dxos/echo-db';
4
5
  import { type ThemedClassName } from '@dxos/react-ui';
5
- import { type DataType } from '@dxos/schema';
6
+ import { type QueryFormProps } from '@dxos/react-ui-components';
7
+ import { type DataType, ProjectionModel } from '@dxos/schema';
6
8
  import { type FormProps } from '../Form';
7
9
  export type ViewEditorProps = ThemedClassName<{
8
10
  schema: Schema.Schema.AnyNoContext;
9
11
  view: DataType.View;
10
- kind?: 'basic' | 'advanced';
12
+ mode?: 'schema' | 'query';
11
13
  registry?: SchemaRegistry;
12
14
  readonly?: boolean;
13
15
  showHeading?: boolean;
14
- onQueryChanged?: (query: string) => void;
16
+ onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
15
17
  onDelete?: (fieldId: string) => void;
16
- } & Pick<FormProps<any>, 'outerSpacing'>>;
18
+ } & Pick<FormProps<any>, 'outerSpacing'> & Pick<QueryFormProps, 'types' | 'tags'>>;
17
19
  /**
18
20
  * Schema-based object form.
19
21
  */
20
- export declare const ViewEditor: ({ classNames, schema, view, kind, registry, readonly, showHeading, onQueryChanged, onDelete, outerSpacing, }: ViewEditorProps) => React.JSX.Element;
22
+ export declare const ViewEditor: React.ForwardRefExoticComponent<Omit<{
23
+ schema: Schema.Schema.AnyNoContext;
24
+ view: DataType.View;
25
+ mode?: "schema" | "query";
26
+ registry?: SchemaRegistry;
27
+ readonly?: boolean;
28
+ showHeading?: boolean;
29
+ onQueryChanged?: (query: QueryAST.Query, target?: string) => void;
30
+ onDelete?: (fieldId: string) => void;
31
+ } & Pick<FormProps<any>, "outerSpacing"> & Pick<QueryFormProps, "types" | "tags">, "className"> & {
32
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
33
+ } & React.RefAttributes<ProjectionModel>>;
21
34
  //# 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,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAIpD,OAAO,EAAuB,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAK3F,OAAO,EACL,KAAK,QAAQ,EAMd,MAAM,cAAc,CAAC;AAItB,OAAO,EAAQ,KAAK,SAAS,EAAwC,MAAM,SAAS,CAAC;AAKrF,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;IACnC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAA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AC;IAClE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC,GACtC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,CAAC,CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;YAfX,MAAM,CAAC,MAAM,CAAC,YAAY;UAC5B,QAAQ,CAAC,IAAI;WACZ,QAAQ,GAAG,OAAO;eACd,cAAc;eACd,OAAO;kBACJ,OAAO;qBACJ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI;eACtD,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI;;;yCA6QvC,CAAC"}
@@ -1,20 +1,20 @@
1
- import '@dxos-theme';
2
1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type EchoSchema } from '@dxos/echo-schema';
5
- import { type DataType, ProjectionModel } from '@dxos/schema';
3
+ import { type EchoSchema } from '@dxos/echo/internal';
4
+ import { DataType, type ProjectionModel } from '@dxos/schema';
6
5
  import { type ViewEditorProps } from './ViewEditor';
7
6
  export type ViewEditorDebugObjects = {
8
7
  schema: EchoSchema;
9
8
  view: DataType.View;
10
9
  projection: ProjectionModel;
11
10
  };
12
- type StoryProps = Pick<ViewEditorProps, 'readonly' | 'kind'>;
11
+ type StoryProps = Pick<ViewEditorProps, 'readonly' | 'mode'>;
13
12
  declare const meta: {
14
13
  title: string;
15
14
  render: (props: StoryProps) => React.JSX.Element;
16
15
  decorators: import("@storybook/react").Decorator[];
17
16
  parameters: {
17
+ layout: string;
18
18
  translations: [{
19
19
  readonly 'en-US': {
20
20
  readonly "react-ui-form": {
@@ -34,6 +34,7 @@ declare const meta: {
34
34
  readonly 'show field label': "Show field";
35
35
  readonly 'hide field label': "Hide field";
36
36
  readonly 'delete field label': "Delete field";
37
+ readonly 'ref field combobox input placeholder': "Search…";
37
38
  readonly 'ref field placeholder_one': "Select…";
38
39
  readonly 'ref field placeholder_other': "Select items…";
39
40
  readonly 'button cancel': "Cancel";
@@ -50,7 +51,7 @@ declare const meta: {
50
51
  readonly 'format hostname': "Hostname";
51
52
  readonly 'format integer': "Integer";
52
53
  readonly 'format json': "JSON";
53
- readonly 'format latlng': "Geopoint";
54
+ readonly 'format lnglat': "Geopoint";
54
55
  readonly 'format markdown': "Markdown";
55
56
  readonly 'format percent': "Percent";
56
57
  readonly 'format ref': "Reference";
@@ -84,5 +85,5 @@ export default meta;
84
85
  type Story = StoryObj<typeof meta>;
85
86
  export declare const Default: Story;
86
87
  export declare const Readonly: Story;
87
- export declare const Advanced: Story;
88
+ export declare const QueryMode: Story;
88
89
  //# 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,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,KAAK,UAAU,EAAqC,MAAM,mBAAmB,CAAC;AAKvF,OAAO,EAAE,KAAK,QAAQ,EAAE,eAAe,EAAiC,MAAM,cAAc,CAAC;AAM7F,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGhE,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,GAAG,MAAM,CAAC,CAAC;AA8F7D,QAAA,MAAM,IAAI;;oBA5FmB,UAAU;;;;;;;;;;;;;;;;;;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AAM,SAAS,EAAE,KAIvB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './ControlSection';
2
2
  export * from './FieldEditor';
3
3
  export * from './Form';
4
+ export * from './ObjectPicker';
4
5
  export * from './ViewEditor';
5
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,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,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type Schema } from 'effect';
2
- import { type BaseObject } from '@dxos/echo-schema';
1
+ import type * as Schema from 'effect/Schema';
2
+ import { type BaseObject } from '@dxos/echo/internal';
3
3
  import { type JsonPath, type SimpleType } from '@dxos/effect';
4
4
  import { type ValidationError } from '@dxos/schema';
5
5
  import { type MaybePromise } from '@dxos/util';
@@ -1 +1 @@
1
- {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAa,MAAM,QAAQ,CAAC;AAGhD,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAA4C,MAAM,cAAc,CAAC;AAGxG,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,C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,CAAC;IAE5E;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;KAAE,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAC1F;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,UAAU,EAAE,0EAO3C,WAAW,CAAC,CAAC,CAAC,KAAG,WAAW,CAAC,CAAC,CAsLhC,CAAC"}
@@ -1,12 +1,17 @@
1
- import { type TypeAnnotation } from '@dxos/echo-schema';
1
+ import { type TypeAnnotation } from '@dxos/echo/internal';
2
2
  import { type DXN } from '@dxos/keys';
3
- import { type TagPickerItemData } from '@dxos/react-ui-tag-picker';
3
+ import { type Palette } from '@dxos/react-ui-types';
4
4
  import { type MaybePromise } from '@dxos/util';
5
5
  export type RefOption = {
6
6
  dxn: DXN;
7
7
  label?: string;
8
8
  };
9
9
  export type QueryRefOptions = (type: TypeAnnotation) => MaybePromise<RefOption[]>;
10
+ export type QueryTag = {
11
+ id: string;
12
+ label: string;
13
+ hue?: Palette;
14
+ };
10
15
  type UseQueryRefOptionsProps = {
11
16
  refTypeInfo: TypeAnnotation | undefined;
12
17
  onQueryRefOptions?: QueryRefOptions;
@@ -16,7 +21,8 @@ type UseQueryRefOptionsProps = {
16
21
  * Used internally within forms to fetch and format reference options for reference fields.
17
22
  */
18
23
  export declare const useQueryRefOptions: ({ refTypeInfo, onQueryRefOptions }: UseQueryRefOptionsProps) => {
19
- options: TagPickerItemData[];
24
+ options: QueryTag[];
25
+ update: () => void;
20
26
  loading: boolean;
21
27
  };
22
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryRefOptions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueryRefOptions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAA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AAK,uBAAuB,GAAG;IAAE,WAAW,EAAE,cAAc,GAAG,SAAS,CAAC;IAAC,iBAAiB,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC;AAEhH;;;GAGG;AAEH,eAAO,MAAM,kBAAkB,GAAI,oCAAoC,uBAAuB;;;;CAiC7F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRefQueryLookupHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useRefQueryLookupHandler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,KAAK,sBAAsB,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEhD,eAAO,MAAM,wBAAwB,GAAI,WAAW,sBAAsB,KAAG,eAwB5E,CAAC"}
1
+ {"version":3,"file":"useRefQueryLookupHandler.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useRefQueryLookupHandler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,KAAK,sBAAsB,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEhD,eAAO,MAAM,wBAAwB,GAAI,WAAW,sBAAsB,KAAG,eAuB5E,CAAC"}
@@ -18,6 +18,7 @@ export declare const translations: [{
18
18
  readonly 'show field label': "Show field";
19
19
  readonly 'hide field label': "Hide field";
20
20
  readonly 'delete field label': "Delete field";
21
+ readonly 'ref field combobox input placeholder': "Search…";
21
22
  readonly 'ref field placeholder_one': "Select…";
22
23
  readonly 'ref field placeholder_other': "Select items…";
23
24
  readonly 'button cancel': "Cancel";
@@ -34,7 +35,7 @@ export declare const translations: [{
34
35
  readonly 'format hostname': "Hostname";
35
36
  readonly 'format integer': "Integer";
36
37
  readonly 'format json': "JSON";
37
- readonly 'format latlng': "Geopoint";
38
+ readonly 'format lnglat': "Geopoint";
38
39
  readonly 'format markdown': "Markdown";
39
40
  readonly 'format percent': "Percent";
40
41
  readonly 'format ref': "Reference";
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EM,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8EM,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormatEnum, TypeEnum } from '@dxos/echo-schema';
1
+ import { FormatEnum, TypeEnum } from '@dxos/echo/internal';
2
2
  import { type ValidationError } from '@dxos/schema';
3
3
  /**
4
4
  * Parse value by field value type.
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/util/field.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtE,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,UAAU,CAAC;IACpB,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,UAAU,CAAC;CACrB,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,UAAU,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACxE,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,UAAU,CAAC;IACpB,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,UAAU,CAAC;CACrB,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,4 +1,4 @@
1
- import { FormatEnum, TypeEnum } from '@dxos/echo-schema';
1
+ import { FormatEnum, TypeEnum } from '@dxos/echo/internal';
2
2
  type ValueFormatProps = {
3
3
  type: TypeEnum;
4
4
  format?: FormatEnum | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../src/util/formatting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAe,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEtE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,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,UAAU,EAAe,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAExE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,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,4 +1,4 @@
1
- import { type SchemaAST } from 'effect';
1
+ import type * as SchemaAST from 'effect/SchemaAST';
2
2
  import { type SchemaProperty } from '@dxos/schema';
3
3
  type RefProps = {
4
4
  ast: SchemaAST.AST;
@@ -1 +1 @@
1
- {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/util/refs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAIxC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,UAAU,cAAc,CAAC,GAAG,CAAC,KAAG,QAAQ,GAAG,SAoBtE,CAAC"}
1
+ {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/util/refs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAInD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,UAAU,cAAc,CAAC,GAAG,CAAC,KAAG,QAAQ,GAAG,SAoBtE,CAAC"}
@@ -1,3 +1,3 @@
1
- import { SchemaAST } from 'effect';
1
+ import * as SchemaAST from 'effect/SchemaAST';
2
2
  export declare const findArrayElementType: (ast: SchemaAST.AST) => SchemaAST.AST | undefined;
3
3
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/util/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAInC,eAAO,MAAM,oBAAoB,GAAI,KAAK,SAAS,CAAC,GAAG,8BAKtD,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/util/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAI9C,eAAO,MAAM,oBAAoB,GAAI,KAAK,SAAS,CAAC,GAAG,8BAGtD,CAAC"}