@oomol-lab/open-flow 0.1.0-beta.55 → 0.1.0-beta.56
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/README.md +1 -1
- package/dist/browser/{createResourceDialog-4H5_lZ6s.js → createResourceDialog-Btjes3wD.js} +2 -2
- package/dist/browser/flow-authoring-edge.d.ts +3 -3
- package/dist/browser/flow-authoring-node.d.ts +26 -46
- package/dist/browser/flow-authoring.js +9155 -21002
- package/dist/browser/flow-change-schema.d.ts +1 -1
- package/dist/browser/flow-change.d.ts +14 -104
- package/dist/browser/flow-change.js +121 -296
- package/dist/browser/{flowChanges-ZzG-f9cg.js → flowChanges-BxutPLYO.js} +1494 -1830
- package/dist/browser/{flowWorkspace-ChpRaTMX.js → flowWorkspace-Dg4mqfa6.js} +118 -293
- package/dist/browser/{icons-CdAB9wyS.js → icons-p2A9zs8t.js} +126 -317
- package/dist/browser/lib-DrKav3HG.js +11403 -0
- package/dist/browser/preview.css +1 -1
- package/dist/browser/preview.js +9308 -9565
- package/dist/browser/ui-idTooltip.d.ts +11 -0
- package/dist/browser/ui.d.ts +5 -0
- package/dist/browser/ui.js +83 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +210 -411
- package/dist/browser/{workbenchSelect-BRZN4ish.js → workbenchSelect-LRp_Xjeq.js} +1 -1
- package/dist/common/control-api-conformance.js +212 -245
- package/dist/common/control-api.d.ts +6 -6
- package/dist/common/control-api.js +216 -250
- package/dist/common/control-requests.js +468 -1476
- package/dist/common/decision.js +6325 -6369
- package/dist/common/flow-agent.d.ts +1 -1
- package/dist/common/flow-connectionUsage.d.ts +1 -2
- package/dist/common/flow-encoding.d.ts +2 -4
- package/dist/common/flow-encoding.js +119 -180
- package/dist/common/flow-graph.d.ts +10 -10
- package/dist/common/flow-semantics.d.ts +4 -9
- package/dist/common/flow-semantics.js +9024 -9230
- package/dist/common/flowInspection.d.ts +3 -21
- package/dist/common/integration-trigger.js +8642 -8686
- package/dist/common/mcp.d.ts +0 -1
- package/dist/common/mcp.js +117 -140
- package/dist/common/openapi.js +6325 -6369
- package/dist/common/poll-trigger.js +8642 -8686
- package/dist/common/run-events.js +0 -1
- package/dist/common/scheduler.d.ts +3 -9
- package/dist/common/scheduler.js +116 -207
- package/dist/common/webhook-trigger.js +6325 -6369
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export declare function IdTooltip({ copyLabel, copiedLabel, value, label, trigger, container, alignOffset, children, }: {
|
|
3
|
+
readonly copyLabel: string;
|
|
4
|
+
readonly copiedLabel: string;
|
|
5
|
+
readonly value: string;
|
|
6
|
+
readonly label: ReactNode;
|
|
7
|
+
readonly trigger: ReactElement;
|
|
8
|
+
readonly container: HTMLElement | null;
|
|
9
|
+
readonly alignOffset?: number;
|
|
10
|
+
readonly children?: ReactNode;
|
|
11
|
+
}): ReactElement;
|
package/dist/browser/ui.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export declare const InputGroupAddon: ComponentType<ComponentPropsWithoutRef<'di
|
|
|
37
37
|
}>;
|
|
38
38
|
export declare const InputGroupInput: ForwardRefExoticComponent<ComponentPropsWithoutRef<'input'> & RefAttributes<HTMLInputElement>>;
|
|
39
39
|
export { Label } from './ui-label.js';
|
|
40
|
+
export declare const NativeSelect: ComponentType<Omit<ComponentPropsWithoutRef<'select'>, 'size'> & {
|
|
41
|
+
readonly size?: 'sm' | 'default';
|
|
42
|
+
}>;
|
|
43
|
+
export declare const NativeSelectOption: ComponentType<ComponentPropsWithoutRef<'option'>>;
|
|
40
44
|
export { OpenFlowLogo, type OpenFlowLogoProps } from './ui-logo.js';
|
|
41
45
|
export { Textarea } from './ui-textarea.js';
|
|
42
46
|
/** Shared Sonner presentation for hosts and the component Lab. */
|
|
@@ -63,3 +67,4 @@ export declare function NotificationUndoLabel({ children }: {
|
|
|
63
67
|
}): ReactNode;
|
|
64
68
|
export { HostTooltip, type HostTooltipProps } from './ui-hostTooltip.js';
|
|
65
69
|
export { HostNavigationActions, type HostNavigationActionsProps, type HostThemeMode } from './ui-hostNavigationActions.js';
|
|
70
|
+
export { IdTooltip } from './ui-idTooltip.js';
|
package/dist/browser/ui.js
CHANGED
|
@@ -11065,6 +11065,18 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
11065
11065
|
return Component;
|
|
11066
11066
|
};
|
|
11067
11067
|
//#endregion
|
|
11068
|
+
//#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
11069
|
+
/**
|
|
11070
|
+
* @license lucide-react v0.468.0 - ISC
|
|
11071
|
+
*
|
|
11072
|
+
* This source code is licensed under the ISC license.
|
|
11073
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11074
|
+
*/
|
|
11075
|
+
var ChevronDown = createLucideIcon("ChevronDown", [["path", {
|
|
11076
|
+
d: "m6 9 6 6 6-6",
|
|
11077
|
+
key: "qrunsl"
|
|
11078
|
+
}]]);
|
|
11079
|
+
//#endregion
|
|
11068
11080
|
//#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/x.js
|
|
11069
11081
|
/**
|
|
11070
11082
|
* @license lucide-react v0.468.0 - ISC
|
|
@@ -12603,6 +12615,32 @@ var InputGroupInput$1 = React.forwardRef(function InputGroupInput({ className, .
|
|
|
12603
12615
|
});
|
|
12604
12616
|
});
|
|
12605
12617
|
//#endregion
|
|
12618
|
+
//#region src/ui/browser/native-select.tsx
|
|
12619
|
+
function NativeSelect$1({ className, size = "default", ...props }) {
|
|
12620
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12621
|
+
className: cn("group/native-select relative w-fit has-[select:disabled]:opacity-50", className),
|
|
12622
|
+
"data-slot": "native-select-wrapper",
|
|
12623
|
+
"data-size": size,
|
|
12624
|
+
children: [/* @__PURE__ */ jsx("select", {
|
|
12625
|
+
"data-slot": "native-select",
|
|
12626
|
+
"data-size": size,
|
|
12627
|
+
className: "h-8 w-full min-w-0 appearance-none rounded-[var(--ui-control-radius,calc(var(--ui-radius)_+_2px))] border border-input bg-[var(--ui-control-background,var(--ui-muted))] py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground data-[slot=native-select]:focus-visible:text-field-focus data-[slot=native-select]:focus-visible:aria-invalid:invalid-text-field-focus disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive data-[size=sm]:h-7 data-[size=sm]:rounded-[var(--ui-control-radius,var(--ui-radius))] data-[size=sm]:py-0.5 dark:bg-[var(--ui-control-background,var(--ui-muted))] dark:hover:bg-input/50",
|
|
12628
|
+
...props
|
|
12629
|
+
}), /* @__PURE__ */ jsx(ChevronDown, {
|
|
12630
|
+
className: "pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none",
|
|
12631
|
+
"aria-hidden": "true",
|
|
12632
|
+
"data-slot": "native-select-icon"
|
|
12633
|
+
})]
|
|
12634
|
+
});
|
|
12635
|
+
}
|
|
12636
|
+
function NativeSelectOption$1({ className, ...props }) {
|
|
12637
|
+
return /* @__PURE__ */ jsx("option", {
|
|
12638
|
+
"data-slot": "native-select-option",
|
|
12639
|
+
className: cn("bg-[Canvas] text-[CanvasText]", className),
|
|
12640
|
+
...props
|
|
12641
|
+
});
|
|
12642
|
+
}
|
|
12643
|
+
//#endregion
|
|
12606
12644
|
//#region src/ui/browser/label.tsx
|
|
12607
12645
|
function Label({ className, ...props }) {
|
|
12608
12646
|
return /* @__PURE__ */ jsx("label", {
|
|
@@ -12786,6 +12824,48 @@ function HostNavigationActions({ className, language, onLanguageChange, theme, o
|
|
|
12786
12824
|
});
|
|
12787
12825
|
}
|
|
12788
12826
|
//#endregion
|
|
12827
|
+
//#region src/ui/browser/idTooltip.tsx
|
|
12828
|
+
function IdTooltip({ copyLabel, copiedLabel, value, label, trigger, container, alignOffset = 0, children }) {
|
|
12829
|
+
const [copied, setCopied] = useState(false);
|
|
12830
|
+
return /* @__PURE__ */ jsxs(Tooltip, {
|
|
12831
|
+
onOpenChange: () => setCopied(false),
|
|
12832
|
+
children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
12833
|
+
render: trigger,
|
|
12834
|
+
children: label
|
|
12835
|
+
}), /* @__PURE__ */ jsxs(TooltipContent, {
|
|
12836
|
+
align: "start",
|
|
12837
|
+
alignOffset,
|
|
12838
|
+
className: "max-w-[min(440px,calc(100vw-32px))] flex-col items-stretch gap-2 p-1 pr-2",
|
|
12839
|
+
collisionBoundary: [],
|
|
12840
|
+
container,
|
|
12841
|
+
positionMethod: "fixed",
|
|
12842
|
+
side: "top",
|
|
12843
|
+
sideOffset: 6,
|
|
12844
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
12845
|
+
className: "flex min-w-0 items-center gap-1",
|
|
12846
|
+
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
12847
|
+
"aria-label": copied ? copiedLabel : copyLabel,
|
|
12848
|
+
className: "text-inherit hover:text-inherit hover:bg-[color-mix(in_srgb,currentColor_14%,transparent)]",
|
|
12849
|
+
onClick: () => {
|
|
12850
|
+
navigator.clipboard.writeText(value).then(() => setCopied(true));
|
|
12851
|
+
},
|
|
12852
|
+
size: "icon-xs",
|
|
12853
|
+
type: "button",
|
|
12854
|
+
variant: "ghost",
|
|
12855
|
+
children: /* @__PURE__ */ jsx("i", {
|
|
12856
|
+
"aria-hidden": "true",
|
|
12857
|
+
className: "i-lucide-light:copy"
|
|
12858
|
+
})
|
|
12859
|
+
}), /* @__PURE__ */ jsx("code", {
|
|
12860
|
+
className: "min-w-0 select-text break-all pl-0.5 text-inherit",
|
|
12861
|
+
translate: "no",
|
|
12862
|
+
children: value
|
|
12863
|
+
})]
|
|
12864
|
+
}), children]
|
|
12865
|
+
})]
|
|
12866
|
+
});
|
|
12867
|
+
}
|
|
12868
|
+
//#endregion
|
|
12789
12869
|
//#region src/ui/browser/public.ts
|
|
12790
12870
|
var Button = Button$1;
|
|
12791
12871
|
var Dialog = Dialog$1;
|
|
@@ -12799,6 +12879,8 @@ var DialogDescription = DialogDescription$1;
|
|
|
12799
12879
|
var InputGroup = InputGroup$1;
|
|
12800
12880
|
var InputGroupAddon = InputGroupAddon$1;
|
|
12801
12881
|
var InputGroupInput = InputGroupInput$1;
|
|
12882
|
+
var NativeSelect = NativeSelect$1;
|
|
12883
|
+
var NativeSelectOption = NativeSelectOption$1;
|
|
12802
12884
|
/** Shared Sonner presentation for hosts and the component Lab. */
|
|
12803
12885
|
var notificationToasterProps = {
|
|
12804
12886
|
className: "open-flow-notifications",
|
|
@@ -12834,4 +12916,4 @@ function NotificationUndoLabel({ children }) {
|
|
|
12834
12916
|
}), children);
|
|
12835
12917
|
}
|
|
12836
12918
|
//#endregion
|
|
12837
|
-
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, HostNavigationActions, HostTooltip, Input, InputGroup, InputGroupAddon, InputGroupInput, Label, NotificationUndoLabel, OpenFlowLogo, Textarea, notificationToasterProps };
|
|
12919
|
+
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, HostNavigationActions, HostTooltip, IdTooltip, Input, InputGroup, InputGroupAddon, InputGroupInput, Label, NativeSelect, NativeSelectOption, NotificationUndoLabel, OpenFlowLogo, Textarea, notificationToasterProps };
|