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

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-form",
3
- "version": "0.8.4-main.dedc0f3",
3
+ "version": "0.8.4-main.e098934",
4
4
  "description": "Data components.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -31,28 +31,28 @@
31
31
  "@radix-ui/react-context": "1.1.1",
32
32
  "date-fns": "^3.3.1",
33
33
  "jsonpath": "^1.1.1",
34
- "@dxos/async": "0.8.4-main.dedc0f3",
35
- "@dxos/echo": "0.8.4-main.dedc0f3",
36
- "@dxos/debug": "0.8.4-main.dedc0f3",
37
- "@dxos/echo-db": "0.8.4-main.dedc0f3",
38
- "@dxos/echo-schema": "0.8.4-main.dedc0f3",
39
- "@dxos/effect": "0.8.4-main.dedc0f3",
40
- "@dxos/keys": "0.8.4-main.dedc0f3",
41
- "@dxos/lit-ui": "0.8.4-main.dedc0f3",
42
- "@dxos/live-object": "0.8.4-main.dedc0f3",
43
- "@dxos/log": "0.8.4-main.dedc0f3",
44
- "@dxos/react-client": "0.8.4-main.dedc0f3",
45
- "@dxos/invariant": "0.8.4-main.dedc0f3",
46
- "@dxos/react-ui-editor": "0.8.4-main.dedc0f3",
47
- "@dxos/react-ui-components": "0.8.4-main.dedc0f3",
48
- "@dxos/react-ui-searchlist": "0.8.4-main.dedc0f3",
49
- "@dxos/react-ui-stack": "0.8.4-main.dedc0f3",
50
- "@dxos/react-ui-tag-picker": "0.8.4-main.dedc0f3",
51
- "@dxos/react-ui-types": "0.8.4-main.dedc0f3",
52
- "@dxos/schema": "0.8.4-main.dedc0f3",
53
- "@dxos/react-ui-pickers": "0.8.4-main.dedc0f3",
54
- "@dxos/react-ui-list": "0.8.4-main.dedc0f3",
55
- "@dxos/util": "0.8.4-main.dedc0f3"
34
+ "@dxos/async": "0.8.4-main.e098934",
35
+ "@dxos/debug": "0.8.4-main.e098934",
36
+ "@dxos/echo": "0.8.4-main.e098934",
37
+ "@dxos/echo-schema": "0.8.4-main.e098934",
38
+ "@dxos/echo-db": "0.8.4-main.e098934",
39
+ "@dxos/effect": "0.8.4-main.e098934",
40
+ "@dxos/invariant": "0.8.4-main.e098934",
41
+ "@dxos/lit-ui": "0.8.4-main.e098934",
42
+ "@dxos/keys": "0.8.4-main.e098934",
43
+ "@dxos/live-object": "0.8.4-main.e098934",
44
+ "@dxos/log": "0.8.4-main.e098934",
45
+ "@dxos/react-client": "0.8.4-main.e098934",
46
+ "@dxos/react-ui-components": "0.8.4-main.e098934",
47
+ "@dxos/react-ui-editor": "0.8.4-main.e098934",
48
+ "@dxos/react-ui-pickers": "0.8.4-main.e098934",
49
+ "@dxos/react-ui-list": "0.8.4-main.e098934",
50
+ "@dxos/react-ui-searchlist": "0.8.4-main.e098934",
51
+ "@dxos/react-ui-stack": "0.8.4-main.e098934",
52
+ "@dxos/schema": "0.8.4-main.e098934",
53
+ "@dxos/react-ui-types": "0.8.4-main.e098934",
54
+ "@dxos/util": "0.8.4-main.e098934",
55
+ "@dxos/react-ui-tag-picker": "0.8.4-main.e098934"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/jsonpath": "^0.2.4",
@@ -63,19 +63,19 @@
63
63
  "react": "~18.2.0",
64
64
  "react-dom": "~18.2.0",
65
65
  "vite": "7.1.1",
66
- "@dxos/echo-signals": "0.8.4-main.dedc0f3",
67
- "@dxos/random": "0.8.4-main.dedc0f3",
68
- "@dxos/react-ui": "0.8.4-main.dedc0f3",
69
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.dedc0f3",
70
- "@dxos/react-ui-theme": "0.8.4-main.dedc0f3",
71
- "@dxos/storybook-utils": "0.8.4-main.dedc0f3"
66
+ "@dxos/echo-signals": "0.8.4-main.e098934",
67
+ "@dxos/random": "0.8.4-main.e098934",
68
+ "@dxos/react-ui": "0.8.4-main.e098934",
69
+ "@dxos/react-ui-theme": "0.8.4-main.e098934",
70
+ "@dxos/storybook-utils": "0.8.4-main.e098934",
71
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.e098934"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "effect": "^3.13.3",
75
75
  "react": "~18.2.0",
76
76
  "react-dom": "~18.2.0",
77
- "@dxos/react-ui": "0.8.4-main.dedc0f3",
78
- "@dxos/react-ui-theme": "0.8.4-main.dedc0f3"
77
+ "@dxos/react-ui": "0.8.4-main.e098934",
78
+ "@dxos/react-ui-theme": "0.8.4-main.e098934"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public"
@@ -9,7 +9,7 @@ import { Schema } from 'effect';
9
9
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
10
10
 
11
11
  import { Filter, Obj, Query, Type } from '@dxos/echo';
12
- import { type EchoSchema, Format, TypedObject, toJsonSchema } from '@dxos/echo-schema';
12
+ import { type EchoSchema, Format, toJsonSchema } from '@dxos/echo-schema';
13
13
  import { useSpace } from '@dxos/react-client/echo';
14
14
  import { withClientProvider } from '@dxos/react-client/testing';
15
15
  import { useAsyncEffect } from '@dxos/react-ui';
@@ -38,16 +38,21 @@ const DefaultStory = (props: StoryProps) => {
38
38
  const [projection, setProjection] = useState<ProjectionModel>();
39
39
  useAsyncEffect(async () => {
40
40
  if (space) {
41
- class TestSchema extends TypedObject({ typename: 'example.com/type/Test', version: '0.1.0' })({
41
+ const TestSchema = Schema.Struct({
42
42
  name: Schema.String,
43
43
  email: Format.Email,
44
44
  salary: Format.Currency(),
45
- }) {}
45
+ }).pipe(
46
+ Type.Obj({
47
+ typename: 'example.com/type/Test',
48
+ version: '0.1.0',
49
+ }),
50
+ );
46
51
 
47
52
  const [schema] = await space.db.schemaRegistry.register([TestSchema]);
48
53
  const view = createView({
49
54
  name: 'Test',
50
- typename: schema.typename,
55
+ query: Query.select(Filter.type(TestSchema)),
51
56
  jsonSchema: toJsonSchema(TestSchema),
52
57
  presentation: Obj.make(Type.Expando, {}),
53
58
  });