@wallarm-org/design-system 4.8.0-rc-fix-claude-code.1 → 4.8.0-rc-feat-parser.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/README.md +2 -4
- package/dist/components/BulkBar/index.d.ts +0 -5
- package/dist/components/Drawer/classes.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +84 -71
- package/dist/components/DropdownMenu/DropdownMenuItemDescription.js +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useFilterInputAutocomplete.js +1 -1
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.d.ts +14 -0
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.js +209 -0
- package/dist/components/Rules/PointSelector/MatchStep.d.ts +15 -0
- package/dist/components/Rules/PointSelector/MatchStep.js +186 -0
- package/dist/components/Rules/PointSelector/MenuFooterHints.d.ts +16 -0
- package/dist/components/Rules/PointSelector/MenuFooterHints.js +177 -0
- package/dist/components/Rules/PointSelector/PointPreview.d.ts +10 -0
- package/dist/components/Rules/PointSelector/PointPreview.js +88 -0
- package/dist/components/Rules/PointSelector/PointSelector.d.ts +17 -0
- package/dist/components/Rules/PointSelector/PointSelector.js +937 -0
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.d.ts +12 -0
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.js +173 -0
- package/dist/components/Rules/PointSelector/PointSelectorError.d.ts +31 -0
- package/dist/components/Rules/PointSelector/PointSelectorError.js +275 -0
- package/dist/components/Rules/PointSelector/PointSelectorInput.d.ts +20 -0
- package/dist/components/Rules/PointSelector/PointSelectorInput.js +130 -0
- package/dist/components/Rules/PointSelector/PointSelectorMenu.d.ts +31 -0
- package/dist/components/Rules/PointSelector/PointSelectorMenu.js +317 -0
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.d.ts +8 -0
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.js +73 -0
- package/dist/components/Rules/PointSelector/SampleRequest.d.ts +14 -0
- package/dist/components/Rules/PointSelector/SampleRequest.js +116 -0
- package/dist/components/Rules/PointSelector/StepMenu.d.ts +40 -0
- package/dist/components/Rules/PointSelector/StepMenu.js +210 -0
- package/dist/components/Rules/PointSelector/VersionWarning.d.ts +26 -0
- package/dist/components/Rules/PointSelector/VersionWarning.js +231 -0
- package/dist/components/Rules/PointSelector/WhereBar.d.ts +48 -0
- package/dist/components/Rules/PointSelector/WhereBar.js +263 -0
- package/dist/components/Rules/PointSelector/classes.d.ts +28 -0
- package/dist/components/Rules/PointSelector/classes.js +22 -0
- package/dist/components/Rules/PointSelector/index.d.ts +20 -0
- package/dist/components/Rules/PointSelector/index.js +18 -0
- package/dist/components/Rules/PointSelector/liftLayer.d.ts +8 -0
- package/dist/components/Rules/PointSelector/liftLayer.js +4 -0
- package/dist/components/Rules/PointSelector/sampleValue.d.ts +6 -0
- package/dist/components/Rules/PointSelector/sampleValue.js +51 -0
- package/dist/components/Rules/PointSelector/sdkBridge.d.ts +508 -0
- package/dist/components/Rules/PointSelector/sdkBridge.js +339 -0
- package/dist/components/Rules/PointSelector/types.d.ts +304 -0
- package/dist/components/Rules/PointSelector/types.js +0 -0
- package/dist/components/Rules/PointSelector/usePointSelector.d.ts +161 -0
- package/dist/components/Rules/PointSelector/usePointSelector.js +1088 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.d.ts +28 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.js +208 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.d.ts +23 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.js +950 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.d.ts +21 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.js +110 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.d.ts +20 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.js +31 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.d.ts +23 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.js +131 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.d.ts +17 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.js +14 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.d.ts +6 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.js +6 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.d.ts +24 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.js +245 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.d.ts +15 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.js +691 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.d.ts +19 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.js +72 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.d.ts +27 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.js +407 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.js +269 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.d.ts +25 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.js +99 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.js +118 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.js +446 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.js +266 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.d.ts +35 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.js +57 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.d.ts +15 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.js +10 -0
- package/dist/components/Rules/RuleBuilder/RuleBuilder.d.ts +67 -0
- package/dist/components/Rules/RuleBuilder/RuleBuilder.js +366 -0
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.d.ts +32 -0
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.js +420 -0
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.d.ts +27 -0
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.js +446 -0
- package/dist/components/Rules/RuleBuilder/Summary/index.d.ts +7 -0
- package/dist/components/Rules/RuleBuilder/Summary/index.js +2 -0
- package/dist/components/Rules/RuleBuilder/classes.d.ts +19 -0
- package/dist/components/Rules/RuleBuilder/classes.js +18 -0
- package/dist/components/Rules/RuleBuilder/index.d.ts +55 -0
- package/dist/components/Rules/RuleBuilder/index.js +11 -0
- package/dist/components/Rules/RuleBuilder/models/actionModel.d.ts +31 -0
- package/dist/components/Rules/RuleBuilder/models/actionModel.js +276 -0
- package/dist/components/Rules/RuleBuilder/models/conditionModel.d.ts +95 -0
- package/dist/components/Rules/RuleBuilder/models/conditionModel.js +418 -0
- package/dist/components/Rules/RuleBuilder/models/index.d.ts +3 -0
- package/dist/components/Rules/RuleBuilder/models/index.js +3 -0
- package/dist/components/Rules/RuleBuilder/models/validation.d.ts +176 -0
- package/dist/components/Rules/RuleBuilder/models/validation.js +242 -0
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.d.ts +27 -0
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.js +92 -0
- package/dist/components/Rules/RuleBuilder/shared/index.d.ts +1 -0
- package/dist/components/Rules/RuleBuilder/shared/index.js +1 -0
- package/dist/components/Rules/RuleBuilder/types.d.ts +384 -0
- package/dist/components/Rules/RuleBuilder/types.js +0 -0
- package/dist/components/Rules/RuleBuilder/utils/constants.d.ts +65 -0
- package/dist/components/Rules/RuleBuilder/utils/constants.js +356 -0
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.d.ts +48 -0
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.js +42 -0
- package/dist/components/Rules/RuleBuilder/utils/helpers.d.ts +92 -0
- package/dist/components/Rules/RuleBuilder/utils/helpers.js +54 -0
- package/dist/components/Rules/RuleBuilder/utils/index.d.ts +2 -0
- package/dist/components/Rules/RuleBuilder/utils/index.js +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +5 -7
- package/dist/components/SearchInput/SearchInput.js +101 -119
- package/dist/components/Select/SelectSearchInput.d.ts +1 -1
- package/dist/components/Table/types.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/Tabs.js +28 -30
- package/dist/components/Tabs/TabsList/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tour/TourPositioner.d.ts +0 -3
- package/dist/components/Tour/TourPositioner.js +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/metadata/components.json +9077 -12300
- package/dist/theme/typography.css +0 -5
- package/dist/utils/formatDateTime.d.ts +0 -6
- package/dist/utils/formatDateTime.js +1 -13
- package/package.json +4 -6
- package/dist/components/NotificationCenter/NotificationCenter.d.ts +0 -20
- package/dist/components/NotificationCenter/NotificationCenter.js +0 -65
- package/dist/components/NotificationCenter/NotificationCenterBody.d.ts +0 -18
- package/dist/components/NotificationCenter/NotificationCenterBody.js +0 -202
- package/dist/components/NotificationCenter/NotificationCenterContent.d.ts +0 -5
- package/dist/components/NotificationCenter/NotificationCenterContent.js +0 -42
- package/dist/components/NotificationCenter/NotificationCenterHeader.d.ts +0 -20
- package/dist/components/NotificationCenter/NotificationCenterHeader.js +0 -202
- package/dist/components/NotificationCenter/NotificationCenterItem.d.ts +0 -26
- package/dist/components/NotificationCenter/NotificationCenterItem.js +0 -211
- package/dist/components/NotificationCenter/NotificationCenterItemTime.d.ts +0 -9
- package/dist/components/NotificationCenter/NotificationCenterItemTime.js +0 -148
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.d.ts +0 -14
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.js +0 -115
- package/dist/components/NotificationCenter/NotificationCenterTabs.d.ts +0 -10
- package/dist/components/NotificationCenter/NotificationCenterTabs.js +0 -77
- package/dist/components/NotificationCenter/NotificationCenterTrigger.d.ts +0 -13
- package/dist/components/NotificationCenter/NotificationCenterTrigger.js +0 -138
- package/dist/components/NotificationCenter/index.d.ts +0 -9
- package/dist/components/NotificationCenter/index.js +0 -9
- package/dist/guidelines/foundations/color.md +0 -157
- package/dist/guidelines/foundations/focus.md +0 -122
- package/dist/guidelines/foundations/layering.md +0 -131
- package/dist/guidelines/foundations/radius-elevation.md +0 -111
- package/dist/guidelines/foundations/spacing.md +0 -117
- package/dist/guidelines/foundations/typography.md +0 -114
- package/dist/guidelines/patterns/app-layout.md +0 -1567
- package/dist/guidelines/patterns/auth-page.md +0 -668
- package/dist/guidelines/patterns/confirmation-dialogs.md +0 -605
- package/dist/guidelines/patterns/create-edit-forms.md +0 -768
- package/dist/guidelines/patterns/detail-drawer.md +0 -868
- package/dist/guidelines/patterns/empty-states.md +0 -461
- package/dist/guidelines/patterns/entity-table.md +0 -533
- package/dist/guidelines/patterns/feedback-toasts.md +0 -493
- package/dist/guidelines/patterns/filtering.md +0 -630
- package/dist/guidelines/patterns/resource-list-page.md +0 -558
- package/dist/guidelines/patterns/settings-page.md +0 -752
- package/dist/guidelines/rules.md +0 -25
- package/dist/metadata/guidelines.json +0 -1705
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c as compiler_runtime_c } from "react/compiler-runtime";
|
|
3
|
+
import { cn } from "../../../../utils/cn.js";
|
|
4
|
+
import { useTestId } from "../../../../utils/testId.js";
|
|
5
|
+
import { Code } from "../../../Code/index.js";
|
|
6
|
+
import { Tag } from "../../../Tag/index.js";
|
|
7
|
+
import { Text } from "../../../Text/index.js";
|
|
8
|
+
import { summaryCardVariants, summaryVariants } from "../classes.js";
|
|
9
|
+
import { ACTION_KIND_CHOICES } from "../utils/constants.js";
|
|
10
|
+
function getActionLabel(kind) {
|
|
11
|
+
return ACTION_KIND_CHOICES.find((c)=>c.value === kind)?.label ?? kind;
|
|
12
|
+
}
|
|
13
|
+
function getAttackTypeLabel(value, choices) {
|
|
14
|
+
return choices.find((c)=>c.value === value)?.label ?? value;
|
|
15
|
+
}
|
|
16
|
+
function formatTarget(action) {
|
|
17
|
+
if (action.target.whole) return "Entire request";
|
|
18
|
+
if (0 === action.target.segments.length) return "No target specified";
|
|
19
|
+
return action.target.segments.map((seg)=>seg.label || seg.text).join(" → ");
|
|
20
|
+
}
|
|
21
|
+
const ActionSummary = (t0)=>{
|
|
22
|
+
const $ = compiler_runtime_c(82);
|
|
23
|
+
const { ref, "data-testid": testIdProp, action, attackTypes, className } = t0;
|
|
24
|
+
const testId = useTestId("action-summary");
|
|
25
|
+
const finalTestId = testIdProp ?? testId;
|
|
26
|
+
if ("raw" === action.kind) {
|
|
27
|
+
let t1;
|
|
28
|
+
if ($[0] !== className) {
|
|
29
|
+
t1 = cn(summaryVariants(), className);
|
|
30
|
+
$[0] = className;
|
|
31
|
+
$[1] = t1;
|
|
32
|
+
} else t1 = $[1];
|
|
33
|
+
let t2;
|
|
34
|
+
let t3;
|
|
35
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
|
+
t2 = cn(summaryCardVariants());
|
|
37
|
+
t3 = /*#__PURE__*/ jsx(Text, {
|
|
38
|
+
size: "sm",
|
|
39
|
+
color: "secondary",
|
|
40
|
+
children: "Raw action (cannot be edited):"
|
|
41
|
+
});
|
|
42
|
+
$[2] = t2;
|
|
43
|
+
$[3] = t3;
|
|
44
|
+
} else {
|
|
45
|
+
t2 = $[2];
|
|
46
|
+
t3 = $[3];
|
|
47
|
+
}
|
|
48
|
+
let t4;
|
|
49
|
+
if ($[4] !== action.raw) {
|
|
50
|
+
t4 = JSON.stringify(action.raw, null, 2);
|
|
51
|
+
$[4] = action.raw;
|
|
52
|
+
$[5] = t4;
|
|
53
|
+
} else t4 = $[5];
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[6] !== t4) {
|
|
56
|
+
t5 = /*#__PURE__*/ jsx(Code, {
|
|
57
|
+
size: "s",
|
|
58
|
+
className: "break-all",
|
|
59
|
+
children: t4
|
|
60
|
+
});
|
|
61
|
+
$[6] = t4;
|
|
62
|
+
$[7] = t5;
|
|
63
|
+
} else t5 = $[7];
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[8] !== t2 || $[9] !== t5) {
|
|
66
|
+
t6 = /*#__PURE__*/ jsxs("div", {
|
|
67
|
+
className: t2,
|
|
68
|
+
children: [
|
|
69
|
+
t3,
|
|
70
|
+
t5
|
|
71
|
+
]
|
|
72
|
+
});
|
|
73
|
+
$[8] = t2;
|
|
74
|
+
$[9] = t5;
|
|
75
|
+
$[10] = t6;
|
|
76
|
+
} else t6 = $[10];
|
|
77
|
+
let t7;
|
|
78
|
+
if ($[11] !== finalTestId || $[12] !== ref || $[13] !== t1 || $[14] !== t6) {
|
|
79
|
+
t7 = /*#__PURE__*/ jsx("div", {
|
|
80
|
+
ref: ref,
|
|
81
|
+
"data-slot": "action-summary",
|
|
82
|
+
"data-testid": finalTestId,
|
|
83
|
+
className: t1,
|
|
84
|
+
children: t6
|
|
85
|
+
});
|
|
86
|
+
$[11] = finalTestId;
|
|
87
|
+
$[12] = ref;
|
|
88
|
+
$[13] = t1;
|
|
89
|
+
$[14] = t6;
|
|
90
|
+
$[15] = t7;
|
|
91
|
+
} else t7 = $[15];
|
|
92
|
+
return t7;
|
|
93
|
+
}
|
|
94
|
+
let t1;
|
|
95
|
+
if ($[16] !== action) {
|
|
96
|
+
t1 = formatTarget(action);
|
|
97
|
+
$[16] = action;
|
|
98
|
+
$[17] = t1;
|
|
99
|
+
} else t1 = $[17];
|
|
100
|
+
const targetDisplay = t1;
|
|
101
|
+
let t2;
|
|
102
|
+
if ($[18] !== className) {
|
|
103
|
+
t2 = cn(summaryVariants(), className);
|
|
104
|
+
$[18] = className;
|
|
105
|
+
$[19] = t2;
|
|
106
|
+
} else t2 = $[19];
|
|
107
|
+
let t3;
|
|
108
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
109
|
+
t3 = cn(summaryCardVariants());
|
|
110
|
+
$[20] = t3;
|
|
111
|
+
} else t3 = $[20];
|
|
112
|
+
let t4;
|
|
113
|
+
if ($[21] !== action.kind) {
|
|
114
|
+
t4 = getActionLabel(action.kind);
|
|
115
|
+
$[21] = action.kind;
|
|
116
|
+
$[22] = t4;
|
|
117
|
+
} else t4 = $[22];
|
|
118
|
+
let t5;
|
|
119
|
+
if ($[23] !== t4) {
|
|
120
|
+
t5 = /*#__PURE__*/ jsxs(Text, {
|
|
121
|
+
size: "sm",
|
|
122
|
+
weight: "medium",
|
|
123
|
+
children: [
|
|
124
|
+
"Then: ",
|
|
125
|
+
t4
|
|
126
|
+
]
|
|
127
|
+
});
|
|
128
|
+
$[23] = t4;
|
|
129
|
+
$[24] = t5;
|
|
130
|
+
} else t5 = $[24];
|
|
131
|
+
let t6;
|
|
132
|
+
if ($[25] !== action.attackType || $[26] !== action.comment || $[27] !== action.kind || $[28] !== attackTypes) {
|
|
133
|
+
t6 = "add_attack" === action.kind && /*#__PURE__*/ jsxs(Fragment, {
|
|
134
|
+
children: [
|
|
135
|
+
action.attackType && /*#__PURE__*/ jsxs("div", {
|
|
136
|
+
className: "flex flex-col gap-4",
|
|
137
|
+
children: [
|
|
138
|
+
/*#__PURE__*/ jsx(Text, {
|
|
139
|
+
size: "sm",
|
|
140
|
+
color: "secondary",
|
|
141
|
+
children: "Attack type:"
|
|
142
|
+
}),
|
|
143
|
+
/*#__PURE__*/ jsx(Tag, {
|
|
144
|
+
size: "medium",
|
|
145
|
+
children: getAttackTypeLabel(action.attackType, attackTypes)
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
}),
|
|
149
|
+
action.comment && /*#__PURE__*/ jsxs(Text, {
|
|
150
|
+
size: "sm",
|
|
151
|
+
color: "secondary",
|
|
152
|
+
children: [
|
|
153
|
+
"Comment: ",
|
|
154
|
+
action.comment
|
|
155
|
+
]
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
});
|
|
159
|
+
$[25] = action.attackType;
|
|
160
|
+
$[26] = action.comment;
|
|
161
|
+
$[27] = action.kind;
|
|
162
|
+
$[28] = attackTypes;
|
|
163
|
+
$[29] = t6;
|
|
164
|
+
} else t6 = $[29];
|
|
165
|
+
let t7;
|
|
166
|
+
if ($[30] !== action.kind || $[31] !== action.tagKey || $[32] !== action.tagValue) {
|
|
167
|
+
t7 = "add_tag" === action.kind && /*#__PURE__*/ jsxs("div", {
|
|
168
|
+
className: "flex flex-col gap-4",
|
|
169
|
+
children: [
|
|
170
|
+
/*#__PURE__*/ jsx(Text, {
|
|
171
|
+
size: "sm",
|
|
172
|
+
color: "secondary",
|
|
173
|
+
children: "Tag:"
|
|
174
|
+
}),
|
|
175
|
+
/*#__PURE__*/ jsxs("div", {
|
|
176
|
+
className: "flex items-center gap-4",
|
|
177
|
+
children: [
|
|
178
|
+
/*#__PURE__*/ jsx(Tag, {
|
|
179
|
+
size: "medium",
|
|
180
|
+
children: action.tagKey || "(no key)"
|
|
181
|
+
}),
|
|
182
|
+
/*#__PURE__*/ jsx(Text, {
|
|
183
|
+
size: "sm",
|
|
184
|
+
children: "="
|
|
185
|
+
}),
|
|
186
|
+
/*#__PURE__*/ jsx(Tag, {
|
|
187
|
+
size: "medium",
|
|
188
|
+
children: action.tagValue || "(no value)"
|
|
189
|
+
})
|
|
190
|
+
]
|
|
191
|
+
})
|
|
192
|
+
]
|
|
193
|
+
});
|
|
194
|
+
$[30] = action.kind;
|
|
195
|
+
$[31] = action.tagKey;
|
|
196
|
+
$[32] = action.tagValue;
|
|
197
|
+
$[33] = t7;
|
|
198
|
+
} else t7 = $[33];
|
|
199
|
+
let t8;
|
|
200
|
+
if ($[34] !== action.attackType || $[35] !== action.kind || $[36] !== attackTypes) {
|
|
201
|
+
t8 = "suppress_attack" === action.kind && action.attackType && /*#__PURE__*/ jsxs("div", {
|
|
202
|
+
className: "flex flex-col gap-4",
|
|
203
|
+
children: [
|
|
204
|
+
/*#__PURE__*/ jsx(Text, {
|
|
205
|
+
size: "sm",
|
|
206
|
+
color: "secondary",
|
|
207
|
+
children: "Attack type to suppress:"
|
|
208
|
+
}),
|
|
209
|
+
/*#__PURE__*/ jsx(Tag, {
|
|
210
|
+
size: "medium",
|
|
211
|
+
children: getAttackTypeLabel(action.attackType, attackTypes)
|
|
212
|
+
})
|
|
213
|
+
]
|
|
214
|
+
});
|
|
215
|
+
$[34] = action.attackType;
|
|
216
|
+
$[35] = action.kind;
|
|
217
|
+
$[36] = attackTypes;
|
|
218
|
+
$[37] = t8;
|
|
219
|
+
} else t8 = $[37];
|
|
220
|
+
let t9;
|
|
221
|
+
if ($[38] !== action.attackType || $[39] !== action.kind || $[40] !== attackTypes) {
|
|
222
|
+
t9 = "mark_attack" === action.kind && action.attackType && /*#__PURE__*/ jsxs("div", {
|
|
223
|
+
className: "flex flex-col gap-4",
|
|
224
|
+
children: [
|
|
225
|
+
/*#__PURE__*/ jsx(Text, {
|
|
226
|
+
size: "sm",
|
|
227
|
+
color: "secondary",
|
|
228
|
+
children: "Attack type to mark:"
|
|
229
|
+
}),
|
|
230
|
+
/*#__PURE__*/ jsx(Tag, {
|
|
231
|
+
size: "medium",
|
|
232
|
+
children: getAttackTypeLabel(action.attackType, attackTypes)
|
|
233
|
+
})
|
|
234
|
+
]
|
|
235
|
+
});
|
|
236
|
+
$[38] = action.attackType;
|
|
237
|
+
$[39] = action.kind;
|
|
238
|
+
$[40] = attackTypes;
|
|
239
|
+
$[41] = t9;
|
|
240
|
+
} else t9 = $[41];
|
|
241
|
+
let t10;
|
|
242
|
+
if ($[42] !== action.kind || $[43] !== action.separator) {
|
|
243
|
+
t10 = "combine" === action.kind && /*#__PURE__*/ jsx(Fragment, {
|
|
244
|
+
children: /*#__PURE__*/ jsxs(Text, {
|
|
245
|
+
size: "sm",
|
|
246
|
+
color: "secondary",
|
|
247
|
+
children: [
|
|
248
|
+
'Separator: "',
|
|
249
|
+
action.separator || ", ",
|
|
250
|
+
'"'
|
|
251
|
+
]
|
|
252
|
+
})
|
|
253
|
+
});
|
|
254
|
+
$[42] = action.kind;
|
|
255
|
+
$[43] = action.separator;
|
|
256
|
+
$[44] = t10;
|
|
257
|
+
} else t10 = $[44];
|
|
258
|
+
let t11;
|
|
259
|
+
if ($[45] !== action.kind || $[46] !== action.limit) {
|
|
260
|
+
t11 = "processing_time_limit" === action.kind && action.limit && /*#__PURE__*/ jsxs(Text, {
|
|
261
|
+
size: "sm",
|
|
262
|
+
color: "secondary",
|
|
263
|
+
children: [
|
|
264
|
+
"Time limit: ",
|
|
265
|
+
action.limit
|
|
266
|
+
]
|
|
267
|
+
});
|
|
268
|
+
$[45] = action.kind;
|
|
269
|
+
$[46] = action.limit;
|
|
270
|
+
$[47] = t11;
|
|
271
|
+
} else t11 = $[47];
|
|
272
|
+
let t12;
|
|
273
|
+
if ($[48] !== action.kind || $[49] !== action.limit) {
|
|
274
|
+
t12 = "processing_space_limit" === action.kind && action.limit && /*#__PURE__*/ jsxs(Text, {
|
|
275
|
+
size: "sm",
|
|
276
|
+
color: "secondary",
|
|
277
|
+
children: [
|
|
278
|
+
"Memory limit: ",
|
|
279
|
+
action.limit
|
|
280
|
+
]
|
|
281
|
+
});
|
|
282
|
+
$[48] = action.kind;
|
|
283
|
+
$[49] = action.limit;
|
|
284
|
+
$[50] = t12;
|
|
285
|
+
} else t12 = $[50];
|
|
286
|
+
let t13;
|
|
287
|
+
if ($[51] !== action.hardLimit || $[52] !== action.kind || $[53] !== action.softLimit) {
|
|
288
|
+
t13 = "entry_limits" === action.kind && /*#__PURE__*/ jsxs(Fragment, {
|
|
289
|
+
children: [
|
|
290
|
+
action.softLimit && /*#__PURE__*/ jsxs(Text, {
|
|
291
|
+
size: "sm",
|
|
292
|
+
color: "secondary",
|
|
293
|
+
children: [
|
|
294
|
+
"Soft limit: ",
|
|
295
|
+
action.softLimit
|
|
296
|
+
]
|
|
297
|
+
}),
|
|
298
|
+
action.hardLimit && /*#__PURE__*/ jsxs(Text, {
|
|
299
|
+
size: "sm",
|
|
300
|
+
color: "secondary",
|
|
301
|
+
children: [
|
|
302
|
+
"Hard limit: ",
|
|
303
|
+
action.hardLimit
|
|
304
|
+
]
|
|
305
|
+
})
|
|
306
|
+
]
|
|
307
|
+
});
|
|
308
|
+
$[51] = action.hardLimit;
|
|
309
|
+
$[52] = action.kind;
|
|
310
|
+
$[53] = action.softLimit;
|
|
311
|
+
$[54] = t13;
|
|
312
|
+
} else t13 = $[54];
|
|
313
|
+
let t14;
|
|
314
|
+
if ($[55] !== action.kind || $[56] !== action.target || $[57] !== targetDisplay) {
|
|
315
|
+
t14 = "processing_time_limit" !== action.kind && "processing_space_limit" !== action.kind && /*#__PURE__*/ jsxs("div", {
|
|
316
|
+
className: "flex flex-col gap-4",
|
|
317
|
+
children: [
|
|
318
|
+
/*#__PURE__*/ jsx(Text, {
|
|
319
|
+
size: "sm",
|
|
320
|
+
color: "secondary",
|
|
321
|
+
children: "combine" === action.kind ? "Join repeated keys in:" : "Applies to:"
|
|
322
|
+
}),
|
|
323
|
+
/*#__PURE__*/ jsx("div", {
|
|
324
|
+
className: "flex flex-wrap items-center gap-4",
|
|
325
|
+
children: action.target.whole ? /*#__PURE__*/ jsx(Tag, {
|
|
326
|
+
size: "medium",
|
|
327
|
+
children: targetDisplay
|
|
328
|
+
}) : action.target.segments.map(_temp)
|
|
329
|
+
})
|
|
330
|
+
]
|
|
331
|
+
});
|
|
332
|
+
$[55] = action.kind;
|
|
333
|
+
$[56] = action.target;
|
|
334
|
+
$[57] = targetDisplay;
|
|
335
|
+
$[58] = t14;
|
|
336
|
+
} else t14 = $[58];
|
|
337
|
+
let t15;
|
|
338
|
+
if ($[59] !== action.experimental) {
|
|
339
|
+
t15 = action.experimental && /*#__PURE__*/ jsx("div", {
|
|
340
|
+
className: "flex items-center gap-4",
|
|
341
|
+
children: /*#__PURE__*/ jsx(Tag, {
|
|
342
|
+
size: "medium",
|
|
343
|
+
children: "Experimental"
|
|
344
|
+
})
|
|
345
|
+
});
|
|
346
|
+
$[59] = action.experimental;
|
|
347
|
+
$[60] = t15;
|
|
348
|
+
} else t15 = $[60];
|
|
349
|
+
let t16;
|
|
350
|
+
if ($[61] !== action.priority) {
|
|
351
|
+
t16 = action.priority && /*#__PURE__*/ jsxs(Text, {
|
|
352
|
+
size: "sm",
|
|
353
|
+
color: "secondary",
|
|
354
|
+
children: [
|
|
355
|
+
"Priority: ",
|
|
356
|
+
action.priority
|
|
357
|
+
]
|
|
358
|
+
});
|
|
359
|
+
$[61] = action.priority;
|
|
360
|
+
$[62] = t16;
|
|
361
|
+
} else t16 = $[62];
|
|
362
|
+
let t17;
|
|
363
|
+
if ($[63] !== t10 || $[64] !== t11 || $[65] !== t12 || $[66] !== t13 || $[67] !== t14 || $[68] !== t15 || $[69] !== t16 || $[70] !== t3 || $[71] !== t5 || $[72] !== t6 || $[73] !== t7 || $[74] !== t8 || $[75] !== t9) {
|
|
364
|
+
t17 = /*#__PURE__*/ jsxs("div", {
|
|
365
|
+
className: t3,
|
|
366
|
+
children: [
|
|
367
|
+
t5,
|
|
368
|
+
t6,
|
|
369
|
+
t7,
|
|
370
|
+
t8,
|
|
371
|
+
t9,
|
|
372
|
+
t10,
|
|
373
|
+
t11,
|
|
374
|
+
t12,
|
|
375
|
+
t13,
|
|
376
|
+
t14,
|
|
377
|
+
t15,
|
|
378
|
+
t16
|
|
379
|
+
]
|
|
380
|
+
});
|
|
381
|
+
$[63] = t10;
|
|
382
|
+
$[64] = t11;
|
|
383
|
+
$[65] = t12;
|
|
384
|
+
$[66] = t13;
|
|
385
|
+
$[67] = t14;
|
|
386
|
+
$[68] = t15;
|
|
387
|
+
$[69] = t16;
|
|
388
|
+
$[70] = t3;
|
|
389
|
+
$[71] = t5;
|
|
390
|
+
$[72] = t6;
|
|
391
|
+
$[73] = t7;
|
|
392
|
+
$[74] = t8;
|
|
393
|
+
$[75] = t9;
|
|
394
|
+
$[76] = t17;
|
|
395
|
+
} else t17 = $[76];
|
|
396
|
+
let t18;
|
|
397
|
+
if ($[77] !== finalTestId || $[78] !== ref || $[79] !== t17 || $[80] !== t2) {
|
|
398
|
+
t18 = /*#__PURE__*/ jsx("div", {
|
|
399
|
+
ref: ref,
|
|
400
|
+
"data-slot": "action-summary",
|
|
401
|
+
"data-testid": finalTestId,
|
|
402
|
+
className: t2,
|
|
403
|
+
children: t17
|
|
404
|
+
});
|
|
405
|
+
$[77] = finalTestId;
|
|
406
|
+
$[78] = ref;
|
|
407
|
+
$[79] = t17;
|
|
408
|
+
$[80] = t2;
|
|
409
|
+
$[81] = t18;
|
|
410
|
+
} else t18 = $[81];
|
|
411
|
+
return t18;
|
|
412
|
+
};
|
|
413
|
+
ActionSummary.displayName = "ActionSummary";
|
|
414
|
+
function _temp(seg, i) {
|
|
415
|
+
return /*#__PURE__*/ jsx(Tag, {
|
|
416
|
+
size: "medium",
|
|
417
|
+
children: seg.label || seg.text
|
|
418
|
+
}, i);
|
|
419
|
+
}
|
|
420
|
+
export { ActionSummary };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ConditionSummary - Read-only condition tree display
|
|
3
|
+
*
|
|
4
|
+
* Displays a condition tree in a read-only format for review/confirmation.
|
|
5
|
+
* Shows operator labels, nested groups with indentation, and condition details.
|
|
6
|
+
*/
|
|
7
|
+
import type { FC, Ref } from 'react';
|
|
8
|
+
import { type TestableProps } from '../../../../utils/testId.js';
|
|
9
|
+
import type { GroupCondition } from '../types.js';
|
|
10
|
+
export interface ConditionSummaryProps extends TestableProps {
|
|
11
|
+
ref?: Ref<HTMLDivElement>;
|
|
12
|
+
/** Condition tree to display */
|
|
13
|
+
condition: GroupCondition;
|
|
14
|
+
/** Additional CSS class */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* ConditionSummary component.
|
|
19
|
+
*
|
|
20
|
+
* Displays a condition tree in read-only format for review/confirmation.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <ConditionSummary condition={condition} />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const ConditionSummary: FC<ConditionSummaryProps>;
|