@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.
- package/dist/lib/browser/{chunk-MNZKOFMA.mjs → chunk-I5IFW7UF.mjs} +3 -3
- package/dist/lib/browser/{chunk-MNZKOFMA.mjs.map → chunk-I5IFW7UF.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-2ATAIIAO.mjs → chunk-DDJKYJFY.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-2ATAIIAO.mjs.map → chunk-DDJKYJFY.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -35
- package/src/hooks/useProjectionModel.ts +4 -5
|
@@ -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,
|
|
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) ?
|
|
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-
|
|
1746
|
+
//# sourceMappingURL=chunk-I5IFW7UF.mjs.map
|