@uipath/apollo-react 6.78.1 → 6.80.0
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/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.d.ts +2 -0
- package/dist/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/__fixtures__/host-copy-baselines.d.ts +1 -0
- package/dist/canvas/components/Guardrails/__fixtures__/host-copy-baselines.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/components/enum-list-chips-field.cjs +2 -1
- package/dist/canvas/components/Guardrails/components/enum-list-chips-field.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/components/enum-list-chips-field.js +2 -1
- package/dist/canvas/components/Guardrails/components/map-enum-field.cjs +49 -22
- package/dist/canvas/components/Guardrails/components/map-enum-field.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/components/map-enum-field.js +50 -23
- package/dist/canvas/components/Guardrails/definitions-copy.cjs +536 -0
- package/dist/canvas/components/Guardrails/definitions-copy.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/definitions-copy.js +536 -0
- package/dist/canvas/components/Guardrails/definitions-enrich.cjs +3 -0
- package/dist/canvas/components/Guardrails/definitions-enrich.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/definitions-enrich.js +3 -0
- package/dist/canvas/components/Guardrails/definitions-parse.cjs +2 -1
- package/dist/canvas/components/Guardrails/definitions-parse.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/definitions-parse.js +2 -1
- package/dist/canvas/components/Guardrails/definitions-wire.d.ts +1 -0
- package/dist/canvas/components/Guardrails/definitions-wire.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/form-schema-builder.cjs +10 -1
- package/dist/canvas/components/Guardrails/form-schema-builder.d.ts +2 -1
- package/dist/canvas/components/Guardrails/form-schema-builder.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/form-schema-builder.js +8 -2
- package/dist/canvas/components/Guardrails/i18n.cjs +11 -0
- package/dist/canvas/components/Guardrails/i18n.d.ts +5 -3
- package/dist/canvas/components/Guardrails/i18n.d.ts.map +1 -1
- package/dist/canvas/components/Guardrails/i18n.js +11 -0
- package/dist/canvas/components/Guardrails/types.d.ts +1 -0
- package/dist/canvas/components/Guardrails/types.d.ts.map +1 -1
- package/dist/canvas/components/JsonTree/index.cjs +4 -0
- package/dist/canvas/components/JsonTree/index.d.ts +1 -1
- package/dist/canvas/components/JsonTree/index.d.ts.map +1 -1
- package/dist/canvas/components/JsonTree/index.js +2 -2
- package/dist/canvas/components/NodeIOView/NodeIOView.cjs +10 -12
- package/dist/canvas/components/NodeIOView/NodeIOView.d.ts +1 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.d.ts.map +1 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.js +12 -14
- package/dist/canvas/components/NodeIOView/NodeIOView.types.d.ts +2 -0
- package/dist/canvas/components/NodeIOView/NodeIOView.types.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.cjs +6 -6
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.js +6 -6
- package/dist/canvas/components/NodeVariablesPanel/NodeVariableEditDialog.cjs +405 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariableEditDialog.d.ts +10 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariableEditDialog.d.ts.map +1 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariableEditDialog.js +371 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.cjs +726 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.d.ts +3 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.d.ts.map +1 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.js +692 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.cjs +18 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.d.ts +65 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.d.ts.map +1 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.js +0 -0
- package/dist/canvas/components/NodeVariablesPanel/index.cjs +36 -0
- package/dist/canvas/components/NodeVariablesPanel/index.d.ts +3 -0
- package/dist/canvas/components/NodeVariablesPanel/index.d.ts.map +1 -0
- package/dist/canvas/components/NodeVariablesPanel/index.js +2 -0
- package/dist/canvas/components/index.cjs +23 -16
- package/dist/canvas/components/index.d.ts +1 -0
- package/dist/canvas/components/index.d.ts.map +1 -1
- package/dist/canvas/components/index.js +1 -0
- package/dist/canvas/locales/en.cjs +1 -1
- package/dist/canvas/locales/en.d.ts.map +1 -1
- package/dist/canvas/locales/en.js +1 -1
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { GuardrailDefinitionWire } from '../definitions-wire';
|
|
2
2
|
export declare const PII_ENTITY_OPTIONS: string[];
|
|
3
|
+
export declare const PREVIEW_PII_ENTITY_OPTIONS: string[];
|
|
3
4
|
export declare const PII_DETECTION_WIRE: GuardrailDefinitionWire;
|
|
5
|
+
export declare const PII_DETECTION_PREVIEW_WIRE: GuardrailDefinitionWire;
|
|
4
6
|
export declare const HARMFUL_CONTENT_WIRE: GuardrailDefinitionWire;
|
|
5
7
|
export declare const PROMPT_INJECTION_WIRE: GuardrailDefinitionWire;
|
|
6
8
|
export declare const USER_PROMPT_ATTACKS_WIRE: GuardrailDefinitionWire;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions-wire.fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAUnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,EA0BtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,uBAuBlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,uBAenC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,uBAKtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,uBAaxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBA6C/B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,MAAM,EAAiD,CAAC;AAGxF,eAAO,MAAM,0BAA0B,EAAE,MAAM,EA6B9C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBA4B5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,uBAuBtB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,uBAc5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAQtD,CAAC;AAMF,eAAO,MAAM,sBAAsB,EAAE,OAgBpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"definitions-wire.fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAUnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,EA0BtC,CAAC;AAGF,eAAO,MAAM,0BAA0B,EAAE,MAAM,EAuI9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAsBhC,CAAC;AAGF,eAAO,MAAM,0BAA0B,EAAE,uBAWxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,uBAuBlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,uBAenC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,uBAKtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,uBAaxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBA6C/B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,MAAM,EAAiD,CAAC;AAGxF,eAAO,MAAM,0BAA0B,EAAE,MAAM,EA6B9C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBA4B5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,uBAuBtB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,uBAc5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAQtD,CAAC;AAMF,eAAO,MAAM,sBAAsB,EAAE,OAgBpC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GuardrailCopyTable } from '../definitions-copy';
|
|
2
|
+
export declare const AGENTS_PREVIEW_PII_ENTITY_LABELS: Record<string, string>;
|
|
2
3
|
export declare const AGENTS_COPY_EN: GuardrailCopyTable;
|
|
3
4
|
export declare const FLOW_COPY_EN: GuardrailCopyTable;
|
|
4
5
|
//# sourceMappingURL=host-copy-baselines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-copy-baselines.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/host-copy-baselines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"host-copy-baselines.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/host-copy-baselines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA0D9D,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyInE,CAAC;AAaF,eAAO,MAAM,cAAc,EAAE,kBAyI5B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBA+D1B,CAAC"}
|
|
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
+
const external_form_schema_builder_cjs_namespaceObject = require("../form-schema-builder.cjs");
|
|
32
33
|
const external_field_shell_cjs_namespaceObject = require("./field-shell.cjs");
|
|
33
34
|
const external_guardrail_chip_cjs_namespaceObject = require("./guardrail-chip.cjs");
|
|
34
35
|
const external_parameter_label_cjs_namespaceObject = require("./parameter-label.cjs");
|
|
@@ -38,7 +39,7 @@ function EnumListChipsField(props) {
|
|
|
38
39
|
const labels = props.labels;
|
|
39
40
|
const uid = (0, external_react_namespaceObject.useId)();
|
|
40
41
|
const selected = Array.isArray(value) ? value : [];
|
|
41
|
-
const labelFor = (option)=>paramDef
|
|
42
|
+
const labelFor = (option)=>(0, external_form_schema_builder_cjs_namespaceObject.guardrailOptionLabel)(paramDef, option, labels);
|
|
42
43
|
const handleToggle = (option, pressed)=>{
|
|
43
44
|
onChange(pressed ? [
|
|
44
45
|
...selected,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum-list-chips-field.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/enum-list-chips-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"enum-list-chips-field.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/enum-list-chips-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAgBrE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,yBAAyB,2CAkDlE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { FormField, FormFieldError } from "@uipath/apollo-wind";
|
|
3
3
|
import { useId } from "react";
|
|
4
|
+
import { guardrailOptionLabel } from "../form-schema-builder.js";
|
|
4
5
|
import { FieldShell } from "./field-shell.js";
|
|
5
6
|
import { GuardrailChip } from "./guardrail-chip.js";
|
|
6
7
|
import { ParameterLabel } from "./parameter-label.js";
|
|
@@ -10,7 +11,7 @@ function EnumListChipsField(props) {
|
|
|
10
11
|
const labels = props.labels;
|
|
11
12
|
const uid = useId();
|
|
12
13
|
const selected = Array.isArray(value) ? value : [];
|
|
13
|
-
const labelFor = (option)=>paramDef
|
|
14
|
+
const labelFor = (option)=>guardrailOptionLabel(paramDef, option, labels);
|
|
14
15
|
const handleToggle = (option, pressed)=>{
|
|
15
16
|
onChange(pressed ? [
|
|
16
17
|
...selected,
|
|
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
+
const external_guardrail_status_chip_cjs_namespaceObject = require("./guardrail-status-chip.cjs");
|
|
32
33
|
const external_parameter_label_cjs_namespaceObject = require("./parameter-label.cjs");
|
|
33
34
|
function MapEnumField(props) {
|
|
34
35
|
const { value, onChange, error } = props;
|
|
@@ -78,28 +79,54 @@ function MapEnumField(props) {
|
|
|
78
79
|
paramDef: paramDef,
|
|
79
80
|
labels: labels
|
|
80
81
|
}),
|
|
81
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
82
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.TooltipProvider, {
|
|
83
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
84
|
+
className: "grid gap-1.5",
|
|
85
|
+
children: keys.map((key)=>{
|
|
86
|
+
const keyLabel = sourceDef?.optionLabels?.[key] ?? key;
|
|
87
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
88
|
+
className: "flex items-center gap-3",
|
|
89
|
+
children: [
|
|
90
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
91
|
+
className: "flex w-1/2 min-w-0 items-center gap-1.5",
|
|
92
|
+
children: [
|
|
93
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Tooltip, {
|
|
94
|
+
children: [
|
|
95
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.TooltipTrigger, {
|
|
96
|
+
asChild: true,
|
|
97
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Label, {
|
|
98
|
+
variant: "muted",
|
|
99
|
+
className: "min-w-0 truncate",
|
|
100
|
+
children: keyLabel
|
|
101
|
+
})
|
|
102
|
+
}),
|
|
103
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.TooltipContent, {
|
|
104
|
+
className: "max-w-[300px]",
|
|
105
|
+
children: keyLabel
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
sourceDef?.previewOptions?.includes(key) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_guardrail_status_chip_cjs_namespaceObject.GuardrailStatusChip, {
|
|
110
|
+
tone: "info",
|
|
111
|
+
className: "shrink-0",
|
|
112
|
+
children: labels.previewOption
|
|
113
|
+
})
|
|
114
|
+
]
|
|
115
|
+
}),
|
|
116
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Input, {
|
|
117
|
+
"aria-label": `${paramDef.label}: ${keyLabel}`,
|
|
118
|
+
type: "number",
|
|
119
|
+
value: currentMap[key] ?? defaults[key] ?? paramDef.min ?? 0,
|
|
120
|
+
onChange: (e)=>handleThresholdChange(key, Number.parseFloat(e.target.value) || 0),
|
|
121
|
+
min: paramDef.min ?? 0,
|
|
122
|
+
max: paramDef.max ?? 1,
|
|
123
|
+
step: paramDef.step ?? 0.1,
|
|
124
|
+
className: "flex-1"
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
}, key);
|
|
128
|
+
})
|
|
129
|
+
})
|
|
103
130
|
}),
|
|
104
131
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.FormFieldError, {
|
|
105
132
|
children: error
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-enum-field.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/map-enum-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"map-enum-field.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/map-enum-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AA2BrE,wBAAgB,YAAY,CAAC,KAAK,EAAE,yBAAyB,kDAyG5D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FormField, FormFieldError, Input, Label, useWatch } from "@uipath/apollo-wind";
|
|
2
|
+
import { FormField, FormFieldError, Input, Label, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, useWatch } from "@uipath/apollo-wind";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
|
+
import { GuardrailStatusChip } from "./guardrail-status-chip.js";
|
|
4
5
|
import { ParameterLabel } from "./parameter-label.js";
|
|
5
6
|
function MapEnumField(props) {
|
|
6
7
|
const { value, onChange, error } = props;
|
|
@@ -50,28 +51,54 @@ function MapEnumField(props) {
|
|
|
50
51
|
paramDef: paramDef,
|
|
51
52
|
labels: labels
|
|
52
53
|
}),
|
|
53
|
-
/*#__PURE__*/ jsx(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
54
|
+
/*#__PURE__*/ jsx(TooltipProvider, {
|
|
55
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
56
|
+
className: "grid gap-1.5",
|
|
57
|
+
children: keys.map((key)=>{
|
|
58
|
+
const keyLabel = sourceDef?.optionLabels?.[key] ?? key;
|
|
59
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
60
|
+
className: "flex items-center gap-3",
|
|
61
|
+
children: [
|
|
62
|
+
/*#__PURE__*/ jsxs("div", {
|
|
63
|
+
className: "flex w-1/2 min-w-0 items-center gap-1.5",
|
|
64
|
+
children: [
|
|
65
|
+
/*#__PURE__*/ jsxs(Tooltip, {
|
|
66
|
+
children: [
|
|
67
|
+
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
68
|
+
asChild: true,
|
|
69
|
+
children: /*#__PURE__*/ jsx(Label, {
|
|
70
|
+
variant: "muted",
|
|
71
|
+
className: "min-w-0 truncate",
|
|
72
|
+
children: keyLabel
|
|
73
|
+
})
|
|
74
|
+
}),
|
|
75
|
+
/*#__PURE__*/ jsx(TooltipContent, {
|
|
76
|
+
className: "max-w-[300px]",
|
|
77
|
+
children: keyLabel
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
}),
|
|
81
|
+
sourceDef?.previewOptions?.includes(key) && /*#__PURE__*/ jsx(GuardrailStatusChip, {
|
|
82
|
+
tone: "info",
|
|
83
|
+
className: "shrink-0",
|
|
84
|
+
children: labels.previewOption
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
}),
|
|
88
|
+
/*#__PURE__*/ jsx(Input, {
|
|
89
|
+
"aria-label": `${paramDef.label}: ${keyLabel}`,
|
|
90
|
+
type: "number",
|
|
91
|
+
value: currentMap[key] ?? defaults[key] ?? paramDef.min ?? 0,
|
|
92
|
+
onChange: (e)=>handleThresholdChange(key, Number.parseFloat(e.target.value) || 0),
|
|
93
|
+
min: paramDef.min ?? 0,
|
|
94
|
+
max: paramDef.max ?? 1,
|
|
95
|
+
step: paramDef.step ?? 0.1,
|
|
96
|
+
className: "flex-1"
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
}, key);
|
|
100
|
+
})
|
|
101
|
+
})
|
|
75
102
|
}),
|
|
76
103
|
/*#__PURE__*/ jsx(FormFieldError, {
|
|
77
104
|
children: error
|