@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,446 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { createListCollection } from "@ark-ui/react/collection";
|
|
4
|
-
import { Checkbox, CheckboxIndicator, CheckboxLabel } from "../../../Checkbox/index.js";
|
|
5
|
-
import { Field, FieldDescription, FieldLabel } from "../../../Field/index.js";
|
|
6
|
-
import { Input } from "../../../Input/index.js";
|
|
7
|
-
import { Select, SelectButton, SelectContent, SelectOption, SelectOptionIndicator, SelectOptionText, SelectPositioner } from "../../../Select/index.js";
|
|
8
|
-
import { Text } from "../../../Text/index.js";
|
|
9
|
-
import { DUPLICATE_CONTAINERS, RESOURCE_LIMITS, SIGNAL_TYPE_CHOICES } from "../utils/constants.js";
|
|
10
|
-
import { ConditionCard } from "./ConditionCard.js";
|
|
11
|
-
const SignalCondition = (t0)=>{
|
|
12
|
-
const $ = c(63);
|
|
13
|
-
const { condition, onChange, onRemove } = t0;
|
|
14
|
-
let t1;
|
|
15
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
16
|
-
t1 = createListCollection({
|
|
17
|
-
items: SIGNAL_TYPE_CHOICES
|
|
18
|
-
});
|
|
19
|
-
$[0] = t1;
|
|
20
|
-
} else t1 = $[0];
|
|
21
|
-
const signalCollection = t1;
|
|
22
|
-
let t2;
|
|
23
|
-
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
24
|
-
t2 = createListCollection({
|
|
25
|
-
items: DUPLICATE_CONTAINERS
|
|
26
|
-
});
|
|
27
|
-
$[1] = t2;
|
|
28
|
-
} else t2 = $[1];
|
|
29
|
-
const containerCollection = t2;
|
|
30
|
-
let t3;
|
|
31
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
32
|
-
t3 = createListCollection({
|
|
33
|
-
items: RESOURCE_LIMITS
|
|
34
|
-
});
|
|
35
|
-
$[2] = t3;
|
|
36
|
-
} else t3 = $[2];
|
|
37
|
-
const limitCollection = t3;
|
|
38
|
-
let t4;
|
|
39
|
-
if ($[3] !== condition || $[4] !== onChange) {
|
|
40
|
-
t4 = (details)=>{
|
|
41
|
-
const signalType = details.value[0] || "";
|
|
42
|
-
const newPoint = "key_duplicate" === signalType ? "[http:header]" : "flow";
|
|
43
|
-
onChange({
|
|
44
|
-
...condition,
|
|
45
|
-
signalType: signalType,
|
|
46
|
-
point: newPoint,
|
|
47
|
-
limit: ""
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
$[3] = condition;
|
|
51
|
-
$[4] = onChange;
|
|
52
|
-
$[5] = t4;
|
|
53
|
-
} else t4 = $[5];
|
|
54
|
-
const handleSignalTypeChange = t4;
|
|
55
|
-
let t5;
|
|
56
|
-
if ($[6] !== condition || $[7] !== onChange) {
|
|
57
|
-
t5 = (details_0)=>{
|
|
58
|
-
const point = details_0.value[0] || "[http:header]";
|
|
59
|
-
onChange({
|
|
60
|
-
...condition,
|
|
61
|
-
point
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
$[6] = condition;
|
|
65
|
-
$[7] = onChange;
|
|
66
|
-
$[8] = t5;
|
|
67
|
-
} else t5 = $[8];
|
|
68
|
-
const handlePointChange = t5;
|
|
69
|
-
let t6;
|
|
70
|
-
if ($[9] !== condition || $[10] !== onChange) {
|
|
71
|
-
t6 = (details_1)=>{
|
|
72
|
-
const limit = details_1.value[0] || "";
|
|
73
|
-
onChange({
|
|
74
|
-
...condition,
|
|
75
|
-
limit
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
$[9] = condition;
|
|
79
|
-
$[10] = onChange;
|
|
80
|
-
$[11] = t6;
|
|
81
|
-
} else t6 = $[11];
|
|
82
|
-
const handleLimitChange = t6;
|
|
83
|
-
let t7;
|
|
84
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
85
|
-
t7 = /*#__PURE__*/ jsx(Text, {
|
|
86
|
-
size: "sm",
|
|
87
|
-
children: "The request"
|
|
88
|
-
});
|
|
89
|
-
$[12] = t7;
|
|
90
|
-
} else t7 = $[12];
|
|
91
|
-
let t8;
|
|
92
|
-
if ($[13] !== condition.signalType) {
|
|
93
|
-
t8 = condition.signalType ? [
|
|
94
|
-
condition.signalType
|
|
95
|
-
] : [];
|
|
96
|
-
$[13] = condition.signalType;
|
|
97
|
-
$[14] = t8;
|
|
98
|
-
} else t8 = $[14];
|
|
99
|
-
let t9;
|
|
100
|
-
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
101
|
-
t9 = /*#__PURE__*/ jsx(SelectButton, {
|
|
102
|
-
"aria-label": "Request anomaly",
|
|
103
|
-
placeholder: "Choose an anomaly"
|
|
104
|
-
});
|
|
105
|
-
$[15] = t9;
|
|
106
|
-
} else t9 = $[15];
|
|
107
|
-
let t10;
|
|
108
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
109
|
-
t10 = /*#__PURE__*/ jsx(SelectPositioner, {
|
|
110
|
-
children: /*#__PURE__*/ jsx(SelectContent, {
|
|
111
|
-
children: signalCollection.items.map(_temp)
|
|
112
|
-
})
|
|
113
|
-
});
|
|
114
|
-
$[16] = t10;
|
|
115
|
-
} else t10 = $[16];
|
|
116
|
-
let t11;
|
|
117
|
-
if ($[17] !== handleSignalTypeChange || $[18] !== t8) {
|
|
118
|
-
t11 = /*#__PURE__*/ jsx("div", {
|
|
119
|
-
className: "w-300",
|
|
120
|
-
children: /*#__PURE__*/ jsxs(Select, {
|
|
121
|
-
collection: signalCollection,
|
|
122
|
-
value: t8,
|
|
123
|
-
onValueChange: handleSignalTypeChange,
|
|
124
|
-
children: [
|
|
125
|
-
t9,
|
|
126
|
-
t10
|
|
127
|
-
]
|
|
128
|
-
})
|
|
129
|
-
});
|
|
130
|
-
$[17] = handleSignalTypeChange;
|
|
131
|
-
$[18] = t8;
|
|
132
|
-
$[19] = t11;
|
|
133
|
-
} else t11 = $[19];
|
|
134
|
-
let t12;
|
|
135
|
-
if ($[20] !== condition.point || $[21] !== condition.signalType || $[22] !== handlePointChange) {
|
|
136
|
-
t12 = "key_duplicate" === condition.signalType && /*#__PURE__*/ jsxs(Fragment, {
|
|
137
|
-
children: [
|
|
138
|
-
/*#__PURE__*/ jsx(Text, {
|
|
139
|
-
size: "sm",
|
|
140
|
-
children: "in"
|
|
141
|
-
}),
|
|
142
|
-
/*#__PURE__*/ jsx("div", {
|
|
143
|
-
className: "w-240",
|
|
144
|
-
children: /*#__PURE__*/ jsxs(Select, {
|
|
145
|
-
collection: containerCollection,
|
|
146
|
-
value: [
|
|
147
|
-
condition.point
|
|
148
|
-
],
|
|
149
|
-
onValueChange: handlePointChange,
|
|
150
|
-
children: [
|
|
151
|
-
/*#__PURE__*/ jsx(SelectButton, {
|
|
152
|
-
"aria-label": "Where keys repeat"
|
|
153
|
-
}),
|
|
154
|
-
/*#__PURE__*/ jsx(SelectPositioner, {
|
|
155
|
-
children: /*#__PURE__*/ jsx(SelectContent, {
|
|
156
|
-
children: containerCollection.items.map(_temp2)
|
|
157
|
-
})
|
|
158
|
-
})
|
|
159
|
-
]
|
|
160
|
-
})
|
|
161
|
-
})
|
|
162
|
-
]
|
|
163
|
-
});
|
|
164
|
-
$[20] = condition.point;
|
|
165
|
-
$[21] = condition.signalType;
|
|
166
|
-
$[22] = handlePointChange;
|
|
167
|
-
$[23] = t12;
|
|
168
|
-
} else t12 = $[23];
|
|
169
|
-
let t13;
|
|
170
|
-
if ($[24] !== condition.limit || $[25] !== condition.signalType || $[26] !== handleLimitChange) {
|
|
171
|
-
t13 = "resource_overlimit" === condition.signalType && /*#__PURE__*/ jsx("div", {
|
|
172
|
-
className: "w-260",
|
|
173
|
-
children: /*#__PURE__*/ jsxs(Select, {
|
|
174
|
-
collection: limitCollection,
|
|
175
|
-
value: condition.limit ? [
|
|
176
|
-
condition.limit
|
|
177
|
-
] : [],
|
|
178
|
-
onValueChange: handleLimitChange,
|
|
179
|
-
children: [
|
|
180
|
-
/*#__PURE__*/ jsx(SelectButton, {
|
|
181
|
-
"aria-label": "Which limit",
|
|
182
|
-
placeholder: "Any limit"
|
|
183
|
-
}),
|
|
184
|
-
/*#__PURE__*/ jsx(SelectPositioner, {
|
|
185
|
-
children: /*#__PURE__*/ jsx(SelectContent, {
|
|
186
|
-
children: limitCollection.items.map(_temp3)
|
|
187
|
-
})
|
|
188
|
-
})
|
|
189
|
-
]
|
|
190
|
-
})
|
|
191
|
-
});
|
|
192
|
-
$[24] = condition.limit;
|
|
193
|
-
$[25] = condition.signalType;
|
|
194
|
-
$[26] = handleLimitChange;
|
|
195
|
-
$[27] = t13;
|
|
196
|
-
} else t13 = $[27];
|
|
197
|
-
let t14;
|
|
198
|
-
if ($[28] !== t11 || $[29] !== t12 || $[30] !== t13) {
|
|
199
|
-
t14 = /*#__PURE__*/ jsxs("div", {
|
|
200
|
-
className: "flex flex-wrap items-center gap-8",
|
|
201
|
-
children: [
|
|
202
|
-
t7,
|
|
203
|
-
t11,
|
|
204
|
-
t12,
|
|
205
|
-
t13
|
|
206
|
-
]
|
|
207
|
-
});
|
|
208
|
-
$[28] = t11;
|
|
209
|
-
$[29] = t12;
|
|
210
|
-
$[30] = t13;
|
|
211
|
-
$[31] = t14;
|
|
212
|
-
} else t14 = $[31];
|
|
213
|
-
const t15 = true === condition.absent;
|
|
214
|
-
let t16;
|
|
215
|
-
if ($[32] !== condition || $[33] !== onChange) {
|
|
216
|
-
t16 = (d)=>onChange({
|
|
217
|
-
...condition,
|
|
218
|
-
absent: true === d.checked
|
|
219
|
-
});
|
|
220
|
-
$[32] = condition;
|
|
221
|
-
$[33] = onChange;
|
|
222
|
-
$[34] = t16;
|
|
223
|
-
} else t16 = $[34];
|
|
224
|
-
let t17;
|
|
225
|
-
let t18;
|
|
226
|
-
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
227
|
-
t17 = /*#__PURE__*/ jsx(CheckboxIndicator, {});
|
|
228
|
-
t18 = /*#__PURE__*/ jsx(CheckboxLabel, {
|
|
229
|
-
children: "Signal is NOT present (negated check)"
|
|
230
|
-
});
|
|
231
|
-
$[35] = t17;
|
|
232
|
-
$[36] = t18;
|
|
233
|
-
} else {
|
|
234
|
-
t17 = $[35];
|
|
235
|
-
t18 = $[36];
|
|
236
|
-
}
|
|
237
|
-
let t19;
|
|
238
|
-
if ($[37] !== t15 || $[38] !== t16) {
|
|
239
|
-
t19 = /*#__PURE__*/ jsxs(Checkbox, {
|
|
240
|
-
checked: t15,
|
|
241
|
-
onCheckedChange: t16,
|
|
242
|
-
children: [
|
|
243
|
-
t17,
|
|
244
|
-
t18
|
|
245
|
-
]
|
|
246
|
-
});
|
|
247
|
-
$[37] = t15;
|
|
248
|
-
$[38] = t16;
|
|
249
|
-
$[39] = t19;
|
|
250
|
-
} else t19 = $[39];
|
|
251
|
-
let t20;
|
|
252
|
-
if ($[40] !== condition || $[41] !== onChange) {
|
|
253
|
-
t20 = "key_duplicate" === condition.signalType && /*#__PURE__*/ jsxs(Fragment, {
|
|
254
|
-
children: [
|
|
255
|
-
/*#__PURE__*/ jsxs(Field, {
|
|
256
|
-
children: [
|
|
257
|
-
/*#__PURE__*/ jsx(FieldLabel, {
|
|
258
|
-
children: "Container point (canonical string)"
|
|
259
|
-
}),
|
|
260
|
-
/*#__PURE__*/ jsx(Input, {
|
|
261
|
-
value: condition.point,
|
|
262
|
-
onChange: (e)=>{
|
|
263
|
-
onChange({
|
|
264
|
-
...condition,
|
|
265
|
-
point: e.target.value
|
|
266
|
-
});
|
|
267
|
-
},
|
|
268
|
-
placeholder: "[http:header]",
|
|
269
|
-
className: "font-mono text-sm"
|
|
270
|
-
}),
|
|
271
|
-
/*#__PURE__*/ jsx(FieldDescription, {
|
|
272
|
-
children: "The container whose keys repeat (e.g., [http:header], [http:query])"
|
|
273
|
-
})
|
|
274
|
-
]
|
|
275
|
-
}),
|
|
276
|
-
/*#__PURE__*/ jsxs(Field, {
|
|
277
|
-
children: [
|
|
278
|
-
/*#__PURE__*/ jsx(FieldLabel, {
|
|
279
|
-
children: "Duplicated key (optional)"
|
|
280
|
-
}),
|
|
281
|
-
/*#__PURE__*/ jsx(Input, {
|
|
282
|
-
value: condition.key ?? "",
|
|
283
|
-
onChange: (e_0)=>{
|
|
284
|
-
onChange({
|
|
285
|
-
...condition,
|
|
286
|
-
key: e_0.target.value || void 0
|
|
287
|
-
});
|
|
288
|
-
},
|
|
289
|
-
placeholder: "['cookie']",
|
|
290
|
-
className: "font-mono text-sm"
|
|
291
|
-
}),
|
|
292
|
-
/*#__PURE__*/ jsx(FieldDescription, {
|
|
293
|
-
children: "The specific key that repeats. Leave empty to check for any duplicate."
|
|
294
|
-
})
|
|
295
|
-
]
|
|
296
|
-
})
|
|
297
|
-
]
|
|
298
|
-
});
|
|
299
|
-
$[40] = condition;
|
|
300
|
-
$[41] = onChange;
|
|
301
|
-
$[42] = t20;
|
|
302
|
-
} else t20 = $[42];
|
|
303
|
-
let t21;
|
|
304
|
-
if ($[43] !== condition || $[44] !== onChange) {
|
|
305
|
-
t21 = "resource_overlimit" === condition.signalType && ("entry_size_soft_limit" === condition.limit || "entry_size_hard_limit" === condition.limit) && /*#__PURE__*/ jsxs(Field, {
|
|
306
|
-
children: [
|
|
307
|
-
/*#__PURE__*/ jsx(FieldLabel, {
|
|
308
|
-
children: "Entry point (canonical string)"
|
|
309
|
-
}),
|
|
310
|
-
/*#__PURE__*/ jsx(Input, {
|
|
311
|
-
value: condition.point,
|
|
312
|
-
onChange: (e_1)=>{
|
|
313
|
-
onChange({
|
|
314
|
-
...condition,
|
|
315
|
-
point: e_1.target.value
|
|
316
|
-
});
|
|
317
|
-
},
|
|
318
|
-
placeholder: "[**]",
|
|
319
|
-
className: "font-mono text-sm"
|
|
320
|
-
}),
|
|
321
|
-
/*#__PURE__*/ jsx(FieldDescription, {
|
|
322
|
-
children: "The entry where the size limit applies (e.g., [http:body][**] for any body entry)"
|
|
323
|
-
})
|
|
324
|
-
]
|
|
325
|
-
});
|
|
326
|
-
$[43] = condition;
|
|
327
|
-
$[44] = onChange;
|
|
328
|
-
$[45] = t21;
|
|
329
|
-
} else t21 = $[45];
|
|
330
|
-
let t22;
|
|
331
|
-
if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
|
|
332
|
-
t22 = /*#__PURE__*/ jsx(FieldLabel, {
|
|
333
|
-
children: "Bind point (optional)"
|
|
334
|
-
});
|
|
335
|
-
$[46] = t22;
|
|
336
|
-
} else t22 = $[46];
|
|
337
|
-
const t23 = condition.bindPoint ?? "";
|
|
338
|
-
let t24;
|
|
339
|
-
if ($[47] !== condition || $[48] !== onChange) {
|
|
340
|
-
t24 = (e_2)=>onChange({
|
|
341
|
-
...condition,
|
|
342
|
-
bindPoint: e_2.target.value || void 0
|
|
343
|
-
});
|
|
344
|
-
$[47] = condition;
|
|
345
|
-
$[48] = onChange;
|
|
346
|
-
$[49] = t24;
|
|
347
|
-
} else t24 = $[49];
|
|
348
|
-
let t25;
|
|
349
|
-
if ($[50] !== t23 || $[51] !== t24) {
|
|
350
|
-
t25 = /*#__PURE__*/ jsx(Input, {
|
|
351
|
-
value: t23,
|
|
352
|
-
onChange: t24,
|
|
353
|
-
placeholder: 'e.g., "s"',
|
|
354
|
-
className: "font-mono text-sm w-160"
|
|
355
|
-
});
|
|
356
|
-
$[50] = t23;
|
|
357
|
-
$[51] = t24;
|
|
358
|
-
$[52] = t25;
|
|
359
|
-
} else t25 = $[52];
|
|
360
|
-
let t26;
|
|
361
|
-
if ($[53] === Symbol.for("react.memo_cache_sentinel")) {
|
|
362
|
-
t26 = /*#__PURE__*/ jsx(FieldDescription, {
|
|
363
|
-
children: "Bind matched nodes for use in actions (bind_point). Format 0.10.1+"
|
|
364
|
-
});
|
|
365
|
-
$[53] = t26;
|
|
366
|
-
} else t26 = $[53];
|
|
367
|
-
let t27;
|
|
368
|
-
if ($[54] !== t25) {
|
|
369
|
-
t27 = /*#__PURE__*/ jsxs(Field, {
|
|
370
|
-
children: [
|
|
371
|
-
t22,
|
|
372
|
-
t25,
|
|
373
|
-
t26
|
|
374
|
-
]
|
|
375
|
-
});
|
|
376
|
-
$[54] = t25;
|
|
377
|
-
$[55] = t27;
|
|
378
|
-
} else t27 = $[55];
|
|
379
|
-
let t28;
|
|
380
|
-
if ($[56] !== onRemove || $[57] !== t14 || $[58] !== t19 || $[59] !== t20 || $[60] !== t21 || $[61] !== t27) {
|
|
381
|
-
t28 = /*#__PURE__*/ jsxs(ConditionCard, {
|
|
382
|
-
onRemove: onRemove,
|
|
383
|
-
removeLabel: "Remove anomaly condition",
|
|
384
|
-
children: [
|
|
385
|
-
t14,
|
|
386
|
-
t19,
|
|
387
|
-
t20,
|
|
388
|
-
t21,
|
|
389
|
-
t27
|
|
390
|
-
]
|
|
391
|
-
});
|
|
392
|
-
$[56] = onRemove;
|
|
393
|
-
$[57] = t14;
|
|
394
|
-
$[58] = t19;
|
|
395
|
-
$[59] = t20;
|
|
396
|
-
$[60] = t21;
|
|
397
|
-
$[61] = t27;
|
|
398
|
-
$[62] = t28;
|
|
399
|
-
} else t28 = $[62];
|
|
400
|
-
return t28;
|
|
401
|
-
};
|
|
402
|
-
SignalCondition.displayName = "SignalCondition";
|
|
403
|
-
function _temp(choice) {
|
|
404
|
-
return /*#__PURE__*/ jsxs(SelectOption, {
|
|
405
|
-
item: choice,
|
|
406
|
-
children: [
|
|
407
|
-
/*#__PURE__*/ jsxs("div", {
|
|
408
|
-
className: "flex flex-col",
|
|
409
|
-
children: [
|
|
410
|
-
/*#__PURE__*/ jsx(SelectOptionText, {
|
|
411
|
-
children: choice.label
|
|
412
|
-
}),
|
|
413
|
-
choice.description && /*#__PURE__*/ jsx(Text, {
|
|
414
|
-
size: "xs",
|
|
415
|
-
color: "secondary",
|
|
416
|
-
children: choice.description
|
|
417
|
-
})
|
|
418
|
-
]
|
|
419
|
-
}),
|
|
420
|
-
/*#__PURE__*/ jsx(SelectOptionIndicator, {})
|
|
421
|
-
]
|
|
422
|
-
}, choice.value);
|
|
423
|
-
}
|
|
424
|
-
function _temp2(choice_0) {
|
|
425
|
-
return /*#__PURE__*/ jsxs(SelectOption, {
|
|
426
|
-
item: choice_0,
|
|
427
|
-
children: [
|
|
428
|
-
/*#__PURE__*/ jsx(SelectOptionText, {
|
|
429
|
-
children: choice_0.label
|
|
430
|
-
}),
|
|
431
|
-
/*#__PURE__*/ jsx(SelectOptionIndicator, {})
|
|
432
|
-
]
|
|
433
|
-
}, choice_0.value);
|
|
434
|
-
}
|
|
435
|
-
function _temp3(choice_1) {
|
|
436
|
-
return /*#__PURE__*/ jsxs(SelectOption, {
|
|
437
|
-
item: choice_1,
|
|
438
|
-
children: [
|
|
439
|
-
/*#__PURE__*/ jsx(SelectOptionText, {
|
|
440
|
-
children: choice_1.label
|
|
441
|
-
}),
|
|
442
|
-
/*#__PURE__*/ jsx(SelectOptionIndicator, {})
|
|
443
|
-
]
|
|
444
|
-
}, choice_1.value);
|
|
445
|
-
}
|
|
446
|
-
export { SignalCondition };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TagCondition
|
|
3
|
-
*
|
|
4
|
-
* "A tag is present/absent" condition.
|
|
5
|
-
* Checks for the presence or absence of a tag at a specific point.
|
|
6
|
-
*/
|
|
7
|
-
import type { FC } from 'react';
|
|
8
|
-
import type { TagCondition as TagConditionType } from '../types.js';
|
|
9
|
-
export interface TagConditionProps {
|
|
10
|
-
condition: TagConditionType;
|
|
11
|
-
onChange: (condition: TagConditionType) => void;
|
|
12
|
-
onRemove: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const TagCondition: FC<TagConditionProps>;
|