@dxos/react-ui-canvas-compute 0.8.1-staging.391c573 → 0.8.1-staging.5be625a
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/index.mjs +2 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +1 -1
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +2 -2
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/graph/controller.d.ts +7 -6
- package/dist/types/src/graph/controller.d.ts.map +1 -1
- package/dist/types/src/shapes/Function.d.ts.map +1 -1
- package/package.json +38 -38
- package/src/compute.stories.tsx +2 -2
- package/src/shapes/Function.tsx +2 -2
|
@@ -1366,7 +1366,7 @@ var databaseShape = {
|
|
|
1366
1366
|
// packages/ui/react-ui-canvas-compute/src/shapes/Function.tsx
|
|
1367
1367
|
import React12, { useCallback as useCallback3, useRef as useRef4 } from "react";
|
|
1368
1368
|
import { AnyOutput, FunctionInput } from "@dxos/conductor";
|
|
1369
|
-
import { getSnapshot, S as S11 } from "@dxos/echo-schema";
|
|
1369
|
+
import { getSnapshot, isInstanceOf, S as S11 } from "@dxos/echo-schema";
|
|
1370
1370
|
import { FunctionType, ScriptType } from "@dxos/functions/types";
|
|
1371
1371
|
import { useClient } from "@dxos/react-client";
|
|
1372
1372
|
import { Filter, makeRef, parseId } from "@dxos/react-client/echo";
|
|
@@ -1394,7 +1394,7 @@ var TextInputComponent2 = ({ shape, title, ...props }) => {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
const space = client.spaces.get(spaceId);
|
|
1396
1396
|
const object = space?.db.getObjectById(objectId);
|
|
1397
|
-
if (!space || !(object
|
|
1397
|
+
if (!space || !isInstanceOf(ScriptType, object)) {
|
|
1398
1398
|
return;
|
|
1399
1399
|
}
|
|
1400
1400
|
const { objects: [fn] } = await space.db.query(Filter.schema(FunctionType, {
|