@dxos/react-ui-table 0.8.4-main.937b3ca → 0.8.4-main.9735255

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.
@@ -1619,14 +1619,14 @@ var useAddRow = ({ db, schema }) => {
1619
1619
  import { useState } from "react";
1620
1620
  import { Type } from "@dxos/echo";
1621
1621
  import { useAsyncEffect } from "@dxos/react-ui";
1622
- import { ProjectionModel, createDirectChangeCallback as createDirectChangeCallback2, createEchoChangeCallback as createEchoChangeCallback2 } from "@dxos/schema";
1622
+ import { ProjectionModel, createEchoChangeCallback as createEchoChangeCallback2 } from "@dxos/schema";
1623
1623
  var useProjectionModel = (schema, table, registry) => {
1624
1624
  const [projection, setProjection] = useState();
1625
1625
  useAsyncEffect(async () => {
1626
1626
  if (schema && table) {
1627
1627
  const view = await table.view.load();
1628
1628
  const jsonSchema = Type.isMutable(schema) ? schema.jsonSchema : Type.toJsonSchema(schema);
1629
- const change = Type.isMutable(schema) ? createEchoChangeCallback2(view, schema) : createDirectChangeCallback2(view.projection, jsonSchema);
1629
+ const change = createEchoChangeCallback2(view, Type.isMutable(schema) ? schema : void 0);
1630
1630
  const projection2 = new ProjectionModel({
1631
1631
  registry,
1632
1632
  view,
@@ -1743,4 +1743,4 @@ export {
1743
1743
  useProjectionModel,
1744
1744
  useTableModel
1745
1745
  };
1746
- //# sourceMappingURL=chunk-MNZKOFMA.mjs.map
1746
+ //# sourceMappingURL=chunk-I5IFW7UF.mjs.map