@dxos/react-ui-form 0.8.2-main.5885341 → 0.8.2-main.85fa0e5

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.
@@ -1046,10 +1046,10 @@ var ArrayField = ({ property, readonly, path, inputProps, Custom, lookupComponen
1046
1046
 
1047
1047
  // packages/ui/react-ui-form/src/components/Form/RefField.tsx
1048
1048
  import React11, { useEffect as useEffect6, useState as useState4 } from "react";
1049
- import { Expando, getTypeAnnotation, Ref, ReferenceAnnotationId } from "@dxos/echo-schema";
1049
+ import { Expando, getTypeAnnotation, ReferenceAnnotationId } from "@dxos/echo-schema";
1050
1050
  import { findAnnotation } from "@dxos/effect";
1051
1051
  import { DXN } from "@dxos/keys";
1052
- import { refFromDXN } from "@dxos/live-object";
1052
+ import { refFromDXN, RefImpl } from "@dxos/live-object";
1053
1053
  import { log as log2 } from "@dxos/log";
1054
1054
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/ui/react-ui-form/src/components/Form/RefField.tsx";
1055
1055
  var RefField = ({ ast, type, label, readonly, placeholder, inline, onQueryRefOptions, inputProps }) => {
@@ -1072,7 +1072,7 @@ var RefField = ({ ast, type, label, readonly, placeholder, inline, onQueryRefOpt
1072
1072
  } catch (error) {
1073
1073
  log2.error("Failed to fetch ref options:", error, {
1074
1074
  F: __dxlog_file3,
1075
- L: 69,
1075
+ L: 68,
1076
1076
  S: void 0,
1077
1077
  C: (f, a) => f(...a)
1078
1078
  });
@@ -1105,7 +1105,7 @@ var RefField = ({ ast, type, label, readonly, placeholder, inline, onQueryRefOpt
1105
1105
  if (typeof formValue === "string") {
1106
1106
  return formValue;
1107
1107
  }
1108
- if (Ref.isRef(formValue)) {
1108
+ if (formValue instanceof RefImpl) {
1109
1109
  return formValue.dxn.toString();
1110
1110
  }
1111
1111
  return void 0;
@@ -1123,7 +1123,7 @@ var RefField = ({ ast, type, label, readonly, placeholder, inline, onQueryRefOpt
1123
1123
  }
1124
1124
  const handleGetValue = () => {
1125
1125
  const formValue = getValue3();
1126
- if (Ref.isRef(formValue)) {
1126
+ if (formValue instanceof RefImpl) {
1127
1127
  return formValue.dxn.toString();
1128
1128
  }
1129
1129
  return void 0;
@@ -1647,17 +1647,13 @@ var ViewEditor = ({ classNames, schema, view, registry, readonly, showHeading =
1647
1647
  ]);
1648
1648
  return /* @__PURE__ */ React15.createElement("div", {
1649
1649
  role: "none",
1650
- className: mx9("grid grid-rows-[1fr_1fr] min-bs-0", classNames)
1650
+ className: mx9("flex flex-col w-full divide-y divide-separator", classNames)
1651
1651
  }, /* @__PURE__ */ React15.createElement(Form, {
1652
1652
  autoSave: true,
1653
1653
  schema: ViewMetaSchema,
1654
1654
  values: viewValues,
1655
- onSave: schema.readonly ? void 0 : handleUpdate,
1656
- classNames: "min-bs-0 overflow-y-auto"
1657
- }), /* @__PURE__ */ React15.createElement("div", {
1658
- role: "none",
1659
- className: "border-bs border-separator min-bs-0 overflow-y-auto"
1660
- }, /* @__PURE__ */ React15.createElement("div", {
1655
+ onSave: schema.readonly ? void 0 : handleUpdate
1656
+ }), /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement("div", {
1661
1657
  role: "none",
1662
1658
  className: "p-2"
1663
1659
  }, /* @__PURE__ */ React15.createElement("label", {