@dxos/react-ui-canvas-compute 0.8.1-main.303c73a → 0.8.1-main.81238a8

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.
@@ -1366,8 +1366,8 @@ 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";
1370
- import { FunctionType, ScriptType } from "@dxos/functions";
1369
+ import { getSnapshot, isInstanceOf, S as S11 } from "@dxos/echo-schema";
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";
1373
1373
  import { TextBox as TextBox3 } from "@dxos/react-ui-canvas-editor";
@@ -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 instanceof ScriptType)) {
1397
+ if (!space || !isInstanceOf(ScriptType, object)) {
1398
1398
  return;
1399
1399
  }
1400
1400
  const { objects: [fn] } = await space.db.query(Filter.schema(FunctionType, {
@@ -2178,7 +2178,7 @@ var textToImageShape = {
2178
2178
  import React26, { useEffect as useEffect8 } from "react";
2179
2179
  import { EmailTriggerOutput, QueueTriggerOutput, SubscriptionTriggerOutput, TimerTriggerOutput, VoidInput as VoidInput3, WebhookTriggerOutput } from "@dxos/conductor";
2180
2180
  import { ObjectId as ObjectId4, Ref, S as S25 } from "@dxos/echo-schema";
2181
- import { FunctionTrigger, TriggerKind } from "@dxos/functions";
2181
+ import { FunctionTrigger, TriggerKind } from "@dxos/functions/types";
2182
2182
  import { DXN as DXN2, SpaceId } from "@dxos/keys";
2183
2183
  import { create, makeRef as makeRef2, useSpace } from "@dxos/react-client/echo";
2184
2184
  import { Select as Select2 } from "@dxos/react-ui";