@dxos/react-ui-canvas-compute 0.7.5-labs.e27f9b9 → 0.7.5-labs.ea4b4c2

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.
@@ -2070,9 +2070,10 @@ var textToImageShape = {
2070
2070
 
2071
2071
  // packages/ui/react-ui-canvas-compute/src/shapes/Trigger.tsx
2072
2072
  import React26, { useEffect as useEffect7 } from "react";
2073
- import { EmailTriggerOutput, SubscriptionTriggerOutput, TimerTriggerOutput, VoidInput as VoidInput3, WebhookTriggerOutput } from "@dxos/conductor";
2074
- import { Ref, S as S25 } from "@dxos/echo-schema";
2073
+ import { EmailTriggerOutput, SubscriptionTriggerOutput, TimerTriggerOutput, VoidInput as VoidInput3, WebhookTriggerOutput, QueueTriggerOutput } from "@dxos/conductor";
2074
+ import { ObjectId as ObjectId4, Ref, S as S25 } from "@dxos/echo-schema";
2075
2075
  import { FunctionTrigger, TriggerKind } from "@dxos/functions";
2076
+ import { DXN as DXN2, SpaceId } from "@dxos/keys";
2076
2077
  import { create, makeRef } from "@dxos/react-client/echo";
2077
2078
  import { Select as Select2 } from "@dxos/react-ui";
2078
2079
  var TriggerShape = S25.extend(ComputeShape, S25.Struct({
@@ -2160,6 +2161,17 @@ var createTriggerSpec = (kind) => {
2160
2161
  return {
2161
2162
  type: TriggerKind.Email
2162
2163
  };
2164
+ case TriggerKind.Queue: {
2165
+ const dxn = new DXN2(DXN2.kind.QUEUE, [
2166
+ "data",
2167
+ SpaceId.random(),
2168
+ ObjectId4.random()
2169
+ ]).toString();
2170
+ return {
2171
+ type: TriggerKind.Queue,
2172
+ queue: dxn
2173
+ };
2174
+ }
2163
2175
  }
2164
2176
  };
2165
2177
  var getOutputSchema = (kind) => {
@@ -2167,7 +2179,8 @@ var getOutputSchema = (kind) => {
2167
2179
  [TriggerKind.Email]: EmailTriggerOutput,
2168
2180
  [TriggerKind.Subscription]: SubscriptionTriggerOutput,
2169
2181
  [TriggerKind.Timer]: TimerTriggerOutput,
2170
- [TriggerKind.Webhook]: WebhookTriggerOutput
2182
+ [TriggerKind.Webhook]: WebhookTriggerOutput,
2183
+ [TriggerKind.Queue]: QueueTriggerOutput
2171
2184
  };
2172
2185
  return kindToSchema[kind];
2173
2186
  };