@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,446 @@
|
|
|
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 };
|
|
@@ -0,0 +1,14 @@
|
|
|
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>;
|