@wallarm-org/design-system 4.10.0-rc-feat-parser.1 → 4.10.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 +1 -1
- package/dist/components/Badge/generateBadgeVariants.js +9 -28
- package/dist/components/Checkbox/CheckboxGroup.d.ts +2 -1
- package/dist/components/Checkbox/CheckboxGroup.js +16 -13
- package/dist/components/CodeSnippet/internal/FoldToggle.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +71 -84
- package/dist/components/DropdownMenu/DropdownMenuItemDescription.js +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useFilterInputAutocomplete.js +1 -1
- package/dist/components/Radio/RadioGroup.d.ts +2 -1
- package/dist/components/Radio/RadioGroup.js +16 -13
- package/dist/components/SimpleCharts/Chart/classes.js +1 -1
- package/dist/components/SimpleCharts/HorizontalBarStack/classes.js +1 -1
- package/dist/components/SimpleCharts/Metric/classes.d.ts +2 -2
- package/dist/components/SimpleCharts/Metric/classes.js +2 -2
- package/dist/components/Table/TableBody/TableBodyCell.js +4 -1
- package/dist/guidelines/patterns/complex-drawer.md +1084 -0
- package/dist/guidelines/patterns/confirmation-dialogs.md +3 -11
- package/dist/guidelines/patterns/detail-drawer.md +31 -13
- package/dist/guidelines/patterns/empty-states.md +6 -5
- package/dist/guidelines/patterns/entity-table.md +25 -29
- package/dist/guidelines/patterns/feedback-toasts.md +3 -11
- package/dist/guidelines/patterns/resource-list-page.md +14 -16
- package/dist/guidelines/rules.md +6 -5
- package/dist/guidelines/templates/ai-assistant.md +1133 -0
- package/dist/guidelines/templates/api-inventory.md +905 -0
- package/dist/guidelines/templates/attack-events.md +2722 -0
- package/dist/guidelines/templates/incident-detail.md +2085 -0
- package/dist/guidelines/templates/integrations-settings.md +836 -0
- package/dist/guidelines/templates/page-states.md +798 -0
- package/dist/guidelines/templates/rule-editor.md +886 -0
- package/dist/guidelines/templates/security-dashboard.md +681 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/metadata/components.json +20 -108
- package/dist/metadata/guidelines.json +1204 -37
- package/dist/theme/tokens.test.ts +52 -0
- package/package.json +1 -4
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.d.ts +0 -14
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.js +0 -209
- package/dist/components/Rules/PointSelector/MatchStep.d.ts +0 -15
- package/dist/components/Rules/PointSelector/MatchStep.js +0 -186
- package/dist/components/Rules/PointSelector/MenuFooterHints.d.ts +0 -16
- package/dist/components/Rules/PointSelector/MenuFooterHints.js +0 -177
- package/dist/components/Rules/PointSelector/PointPreview.d.ts +0 -10
- package/dist/components/Rules/PointSelector/PointPreview.js +0 -88
- package/dist/components/Rules/PointSelector/PointSelector.d.ts +0 -17
- package/dist/components/Rules/PointSelector/PointSelector.js +0 -937
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.d.ts +0 -12
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.js +0 -173
- package/dist/components/Rules/PointSelector/PointSelectorError.d.ts +0 -31
- package/dist/components/Rules/PointSelector/PointSelectorError.js +0 -275
- package/dist/components/Rules/PointSelector/PointSelectorInput.d.ts +0 -20
- package/dist/components/Rules/PointSelector/PointSelectorInput.js +0 -130
- package/dist/components/Rules/PointSelector/PointSelectorMenu.d.ts +0 -31
- package/dist/components/Rules/PointSelector/PointSelectorMenu.js +0 -317
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.d.ts +0 -8
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.js +0 -73
- package/dist/components/Rules/PointSelector/SampleRequest.d.ts +0 -14
- package/dist/components/Rules/PointSelector/SampleRequest.js +0 -116
- package/dist/components/Rules/PointSelector/StepMenu.d.ts +0 -40
- package/dist/components/Rules/PointSelector/StepMenu.js +0 -210
- package/dist/components/Rules/PointSelector/VersionWarning.d.ts +0 -26
- package/dist/components/Rules/PointSelector/VersionWarning.js +0 -231
- package/dist/components/Rules/PointSelector/WhereBar.d.ts +0 -48
- package/dist/components/Rules/PointSelector/WhereBar.js +0 -263
- package/dist/components/Rules/PointSelector/classes.d.ts +0 -28
- package/dist/components/Rules/PointSelector/classes.js +0 -22
- package/dist/components/Rules/PointSelector/index.d.ts +0 -20
- package/dist/components/Rules/PointSelector/index.js +0 -18
- package/dist/components/Rules/PointSelector/liftLayer.d.ts +0 -8
- package/dist/components/Rules/PointSelector/liftLayer.js +0 -4
- package/dist/components/Rules/PointSelector/sampleValue.d.ts +0 -6
- package/dist/components/Rules/PointSelector/sampleValue.js +0 -51
- package/dist/components/Rules/PointSelector/sdkBridge.d.ts +0 -508
- package/dist/components/Rules/PointSelector/sdkBridge.js +0 -339
- package/dist/components/Rules/PointSelector/types.d.ts +0 -304
- package/dist/components/Rules/PointSelector/types.js +0 -0
- package/dist/components/Rules/PointSelector/usePointSelector.d.ts +0 -161
- package/dist/components/Rules/PointSelector/usePointSelector.js +0 -1088
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.d.ts +0 -28
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.js +0 -208
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.d.ts +0 -23
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.js +0 -950
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.d.ts +0 -21
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.js +0 -110
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.d.ts +0 -20
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.js +0 -31
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.d.ts +0 -23
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.js +0 -131
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.d.ts +0 -17
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.js +0 -14
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.d.ts +0 -6
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.js +0 -6
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.d.ts +0 -24
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.js +0 -245
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.d.ts +0 -15
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.js +0 -691
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.d.ts +0 -19
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.js +0 -72
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.d.ts +0 -27
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.js +0 -407
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.js +0 -269
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.d.ts +0 -25
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.js +0 -99
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.js +0 -118
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.js +0 -446
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.js +0 -266
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.d.ts +0 -35
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.js +0 -57
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.d.ts +0 -15
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.js +0 -10
- package/dist/components/Rules/RuleBuilder/RuleBuilder.d.ts +0 -67
- package/dist/components/Rules/RuleBuilder/RuleBuilder.js +0 -366
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.d.ts +0 -32
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.js +0 -420
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.d.ts +0 -27
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.js +0 -446
- package/dist/components/Rules/RuleBuilder/Summary/index.d.ts +0 -7
- package/dist/components/Rules/RuleBuilder/Summary/index.js +0 -2
- package/dist/components/Rules/RuleBuilder/classes.d.ts +0 -19
- package/dist/components/Rules/RuleBuilder/classes.js +0 -18
- package/dist/components/Rules/RuleBuilder/index.d.ts +0 -55
- package/dist/components/Rules/RuleBuilder/index.js +0 -11
- package/dist/components/Rules/RuleBuilder/models/actionModel.d.ts +0 -31
- package/dist/components/Rules/RuleBuilder/models/actionModel.js +0 -276
- package/dist/components/Rules/RuleBuilder/models/conditionModel.d.ts +0 -95
- package/dist/components/Rules/RuleBuilder/models/conditionModel.js +0 -418
- package/dist/components/Rules/RuleBuilder/models/index.d.ts +0 -3
- package/dist/components/Rules/RuleBuilder/models/index.js +0 -3
- package/dist/components/Rules/RuleBuilder/models/validation.d.ts +0 -176
- package/dist/components/Rules/RuleBuilder/models/validation.js +0 -242
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.d.ts +0 -27
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.js +0 -92
- package/dist/components/Rules/RuleBuilder/shared/index.d.ts +0 -1
- package/dist/components/Rules/RuleBuilder/shared/index.js +0 -1
- package/dist/components/Rules/RuleBuilder/types.d.ts +0 -384
- package/dist/components/Rules/RuleBuilder/types.js +0 -0
- package/dist/components/Rules/RuleBuilder/utils/constants.d.ts +0 -65
- package/dist/components/Rules/RuleBuilder/utils/constants.js +0 -356
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.d.ts +0 -48
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.js +0 -42
- package/dist/components/Rules/RuleBuilder/utils/helpers.d.ts +0 -92
- package/dist/components/Rules/RuleBuilder/utils/helpers.js +0 -54
- package/dist/components/Rules/RuleBuilder/utils/index.d.ts +0 -2
- package/dist/components/Rules/RuleBuilder/utils/index.js +0 -2
|
@@ -1,420 +0,0 @@
|
|
|
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 };
|
|
@@ -1,27 +0,0 @@
|
|
|
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>;
|