@ixo/editor 7.1.0 → 7.2.1
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/{EvalEngineFlowDetail-YL3FFONH.js → EvalEngineFlowDetail-UFIMDVZY.js} +10 -10
- package/dist/EvalEngineFlowDetail-UFIMDVZY.js.map +1 -0
- package/dist/{EvaluateClaimFlowDetail-TOX53BGP.js → EvaluateClaimFlowDetail-4VNIWTYW.js} +4 -4
- package/dist/EvaluateClaimFlowDetail-4VNIWTYW.js.map +1 -0
- package/dist/{chunk-3WLWIA7D.js → chunk-IUC6B2NF.js} +4 -1
- package/dist/chunk-IUC6B2NF.js.map +1 -0
- package/dist/{chunk-VDEWPLOB.js → chunk-T3LAZL3P.js} +16 -16
- package/dist/chunk-T3LAZL3P.js.map +1 -0
- package/dist/{chunk-IMN2PXVU.js → chunk-VWJNCOHW.js} +128 -10
- package/dist/chunk-VWJNCOHW.js.map +1 -0
- package/dist/core/index.cjs +127 -14
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.ts +47 -11
- package/dist/core/index.js +6 -2
- package/dist/core/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/mantine/index.js +2 -2
- package/package.json +1 -1
- package/dist/EvalEngineFlowDetail-YL3FFONH.js.map +0 -1
- package/dist/EvaluateClaimFlowDetail-TOX53BGP.js.map +0 -1
- package/dist/chunk-3WLWIA7D.js.map +0 -1
- package/dist/chunk-IMN2PXVU.js.map +0 -1
- package/dist/chunk-VDEWPLOB.js.map +0 -1
|
@@ -1371,7 +1371,7 @@ var ApprovalPolicy = ({ body, index, checkCount, onChange, disabled }) => {
|
|
|
1371
1371
|
// src/mantine/blocks/action/actionTypes/evalRubric/LinkedRuleEditor.tsx
|
|
1372
1372
|
import React5, { useMemo as useMemo2, useState as useState2 } from "react";
|
|
1373
1373
|
import { ActionIcon, Alert, Button as Button3, Group as Group4, Modal, Paper as Paper2, ScrollArea as ScrollArea2, Stack as Stack4, Text as Text3 } from "@mantine/core";
|
|
1374
|
-
import { IconAlertTriangle, IconPlus,
|
|
1374
|
+
import { IconAlertTriangle, IconPlus, IconInnerShadowBottomRight, IconTrash } from "@tabler/icons-react";
|
|
1375
1375
|
|
|
1376
1376
|
// src/mantine/blocks/action/actionTypes/evalRubric/ValueInput.tsx
|
|
1377
1377
|
import React4, { useMemo } from "react";
|
|
@@ -2323,7 +2323,7 @@ var LinkedRuleEditor = ({ opened, onClose, body, catalog, index, initialChecked,
|
|
|
2323
2323
|
value: draft.aiMode ? AI_MODE : draft.op,
|
|
2324
2324
|
onChange: pickOp,
|
|
2325
2325
|
searchable: opOptions.length > 8,
|
|
2326
|
-
renderOption: ({ option }) => /* @__PURE__ */ React5.createElement(Group4, { gap: 8, wrap: "nowrap" }, option.value === AI_MODE && icon(
|
|
2326
|
+
renderOption: ({ option }) => /* @__PURE__ */ React5.createElement(Group4, { gap: 8, wrap: "nowrap" }, option.value === AI_MODE && icon(IconInnerShadowBottomRight, 16), /* @__PURE__ */ React5.createElement(Text3, { size: "sm" }, option.label))
|
|
2327
2327
|
}
|
|
2328
2328
|
), /* @__PURE__ */ React5.createElement(Text3, { style: leadWordStyle }, "\u2026 depending on"), /* @__PURE__ */ React5.createElement(
|
|
2329
2329
|
BaseSelect,
|
|
@@ -2364,7 +2364,7 @@ var LinkedRuleEditor = ({ opened, onClose, body, catalog, index, initialChecked,
|
|
|
2364
2364
|
tolerance: draft.elseCase.tolerance,
|
|
2365
2365
|
onChange: (patch) => setDraft((current) => ({ ...current, elseCase: { ...current.elseCase, ...patch } }))
|
|
2366
2366
|
}
|
|
2367
|
-
), opSuffix && /* @__PURE__ */ React5.createElement(Text3, { mt: 6, size: "sm", c: "dimmed" }, opSuffix))), /* @__PURE__ */ React5.createElement(Button3, { variant: "subtle", size: "compact-sm", styles: quietButton, style: { alignSelf: "flex-start" }, leftSection: /* @__PURE__ */ React5.createElement(IconPlus, { size: 14 }), onClick: addCase }, "Add another case"))), draft.aiMode && /* @__PURE__ */ React5.createElement(Paper2, { p: "md", style: panelStyle }, /* @__PURE__ */ React5.createElement(Stack4, { gap: "xs" }, /* @__PURE__ */ React5.createElement(Group4, { gap: 6, wrap: "nowrap" }, icon(
|
|
2367
|
+
), opSuffix && /* @__PURE__ */ React5.createElement(Text3, { mt: 6, size: "sm", c: "dimmed" }, opSuffix))), /* @__PURE__ */ React5.createElement(Button3, { variant: "subtle", size: "compact-sm", styles: quietButton, style: { alignSelf: "flex-start" }, leftSection: /* @__PURE__ */ React5.createElement(IconPlus, { size: 14 }), onClick: addCase }, "Add another case"))), draft.aiMode && /* @__PURE__ */ React5.createElement(Paper2, { p: "md", style: panelStyle }, /* @__PURE__ */ React5.createElement(Stack4, { gap: "xs" }, /* @__PURE__ */ React5.createElement(Group4, { gap: 6, wrap: "nowrap" }, icon(IconInnerShadowBottomRight, 16), /* @__PURE__ */ React5.createElement(Text3, { size: "sm", fw: 600 }, AI_SEES_LABEL)), /* @__PURE__ */ React5.createElement(Text3, { size: "xs", c: "dimmed" }, aiSeesHint(fieldTitle(draft.checkedField, ctx))), /* @__PURE__ */ React5.createElement(Text3, { size: "xs", c: "dimmed" }, AI_SETTING_HINT), /* @__PURE__ */ React5.createElement(
|
|
2368
2368
|
BaseMultiSelect,
|
|
2369
2369
|
{
|
|
2370
2370
|
styles: chipInput,
|
|
@@ -2437,17 +2437,17 @@ function unique(problems) {
|
|
|
2437
2437
|
// src/mantine/blocks/action/actionTypes/evalRubric/RuleEditor.tsx
|
|
2438
2438
|
import React11, { useMemo as useMemo4, useState as useState5 } from "react";
|
|
2439
2439
|
import { ActionIcon as ActionIcon5, Alert as Alert4, Box as Box4, Button as Button7, Divider as Divider2, Group as Group10, Modal as Modal2, Paper as Paper7, ScrollArea as ScrollArea3, Stack as Stack9, Text as Text9 } from "@mantine/core";
|
|
2440
|
-
import { IconAlertTriangle as IconAlertTriangle4, IconPlus as IconPlus4,
|
|
2440
|
+
import { IconAlertTriangle as IconAlertTriangle4, IconPlus as IconPlus4, IconInnerShadowBottomRight as IconInnerShadowBottomRight3, IconTrash as IconTrash3, IconWand, IconWorld as IconWorld2, IconX as IconX3 } from "@tabler/icons-react";
|
|
2441
2441
|
|
|
2442
2442
|
// src/mantine/blocks/action/actionTypes/evalRubric/AiCheckInline.tsx
|
|
2443
2443
|
import React7 from "react";
|
|
2444
2444
|
import { ActionIcon as ActionIcon3, Button as Button5, Group as Group6, Paper as Paper4, Stack as Stack6, Text as Text5 } from "@mantine/core";
|
|
2445
|
-
import { IconPlus as IconPlus3,
|
|
2445
|
+
import { IconPlus as IconPlus3, IconInnerShadowBottomRight as IconInnerShadowBottomRight2, IconX } from "@tabler/icons-react";
|
|
2446
2446
|
var AiCheckInline = ({ ai, questionTitle, onChange, disabled, index }) => {
|
|
2447
2447
|
const setRule = (at, text) => onChange({ ...ai, instructions: ai.instructions.map((rule, i) => i === at ? text : rule) });
|
|
2448
2448
|
const removeRule2 = (at) => onChange({ ...ai, instructions: ai.instructions.filter((_, i) => i !== at) });
|
|
2449
2449
|
const addRule = () => onChange({ ...ai, instructions: [...ai.instructions, ""] });
|
|
2450
|
-
return /* @__PURE__ */ React7.createElement(Paper4, { p: "md", style: panelStyle }, /* @__PURE__ */ React7.createElement(Stack6, { gap: "xs" }, /* @__PURE__ */ React7.createElement(Group6, { gap: 6, wrap: "nowrap" }, icon(
|
|
2450
|
+
return /* @__PURE__ */ React7.createElement(Paper4, { p: "md", style: panelStyle }, /* @__PURE__ */ React7.createElement(Stack6, { gap: "xs" }, /* @__PURE__ */ React7.createElement(Group6, { gap: 6, wrap: "nowrap" }, icon(IconInnerShadowBottomRight2, 16), /* @__PURE__ */ React7.createElement(Text5, { size: "sm", fw: 600 }, "What should the AI check?")), /* @__PURE__ */ React7.createElement(Text5, { size: "xs", c: "dimmed" }, "While a claim is judged, the AI reads \u201C", questionTitle, "\u201D and passes it only when every rule below holds."), /* @__PURE__ */ React7.createElement(Text5, { size: "xs", c: "dimmed" }, AI_SETTING_HINT), /* @__PURE__ */ React7.createElement(Stack6, { gap: 6 }, ai.instructions.map((rule, at) => (
|
|
2451
2451
|
// Index keys are safe here: rows are edited in place and only ever
|
|
2452
2452
|
// removed by index — there is no identity to preserve across reorders.
|
|
2453
2453
|
/* @__PURE__ */ React7.createElement(Group6, { key: at, gap: "xs", wrap: "nowrap" }, /* @__PURE__ */ React7.createElement(
|
|
@@ -3230,7 +3230,7 @@ var RuleEditor = ({ opened, onClose, body, catalog, index, field, editing, onSav
|
|
|
3230
3230
|
rule: member.rule,
|
|
3231
3231
|
onChange: (next) => setMemberRule(at, next),
|
|
3232
3232
|
lead: "",
|
|
3233
|
-
extraOperators: [{ value: AI_CHECK, label: AI_CHECK_LANE_LABEL, Icon:
|
|
3233
|
+
extraOperators: [{ value: AI_CHECK, label: AI_CHECK_LANE_LABEL, Icon: IconInnerShadowBottomRight3 }],
|
|
3234
3234
|
onPickExtra: () => toAiMember(at)
|
|
3235
3235
|
}
|
|
3236
3236
|
) : (
|
|
@@ -3266,7 +3266,7 @@ var RuleEditor = ({ opened, onClose, body, catalog, index, field, editing, onSav
|
|
|
3266
3266
|
rule: draft.reject.when,
|
|
3267
3267
|
onChange: setRejectRule,
|
|
3268
3268
|
lead: "If",
|
|
3269
|
-
extraOperators: [{ value: AI_CHECK, label: AI_CHECK_LANE_LABEL, Icon:
|
|
3269
|
+
extraOperators: [{ value: AI_CHECK, label: AI_CHECK_LANE_LABEL, Icon: IconInnerShadowBottomRight3 }],
|
|
3270
3270
|
onPickExtra: enterAiCheck
|
|
3271
3271
|
}
|
|
3272
3272
|
) : /* @__PURE__ */ React11.createElement(
|
|
@@ -3280,7 +3280,7 @@ var RuleEditor = ({ opened, onClose, body, catalog, index, field, editing, onSav
|
|
|
3280
3280
|
onChange: pickSubject,
|
|
3281
3281
|
searchable: subjectOptions.length > 6,
|
|
3282
3282
|
renderOption: ({ option }) => {
|
|
3283
|
-
const OptionIcon = option.value === AI_CHECK ?
|
|
3283
|
+
const OptionIcon = option.value === AI_CHECK ? IconInnerShadowBottomRight3 : option.value === EXT_SUBJECT ? IconWorld2 : void 0;
|
|
3284
3284
|
return /* @__PURE__ */ React11.createElement(Group10, { gap: 8, wrap: "nowrap" }, OptionIcon && icon(OptionIcon, 16), /* @__PURE__ */ React11.createElement(Text9, { size: "sm" }, option.label));
|
|
3285
3285
|
}
|
|
3286
3286
|
}
|
|
@@ -4289,4 +4289,4 @@ export {
|
|
|
4289
4289
|
EvalEngineFlowDetail,
|
|
4290
4290
|
EvalEngineFlowDetail_default as default
|
|
4291
4291
|
};
|
|
4292
|
-
//# sourceMappingURL=EvalEngineFlowDetail-
|
|
4292
|
+
//# sourceMappingURL=EvalEngineFlowDetail-UFIMDVZY.js.map
|