@ws-ui/http-handlers-editor 1.13.0-dev.6 → 1.13.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +29 -20
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12218,7 +12218,7 @@ function dg(e, r) {
|
|
|
12218
12218
|
}))
|
|
12219
12219
|
};
|
|
12220
12220
|
case "SYNC_DATA":
|
|
12221
|
-
return {
|
|
12221
|
+
return e.editing !== null || e.newlyCreatedHandlerID !== null ? e : {
|
|
12222
12222
|
...e,
|
|
12223
12223
|
content: r.payload.map((t) => {
|
|
12224
12224
|
const o = e.content.find((n) => n.id === t.id);
|
|
@@ -13166,27 +13166,36 @@ const ir = new la(), Ke = () => document.querySelector(`.${Jl}`) || document.bod
|
|
|
13166
13166
|
className: e
|
|
13167
13167
|
}) => {
|
|
13168
13168
|
const r = Wt(), t = r.getEditingHandlerId();
|
|
13169
|
-
return /* @__PURE__ */ p(
|
|
13170
|
-
|
|
13169
|
+
return /* @__PURE__ */ p(
|
|
13170
|
+
$e,
|
|
13171
13171
|
{
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13172
|
+
label: "Add a new HTTP Handler",
|
|
13173
|
+
container: Ke(),
|
|
13174
|
+
position: "left",
|
|
13175
|
+
usePortal: !0,
|
|
13176
|
+
children: /* @__PURE__ */ p(
|
|
13177
|
+
st,
|
|
13178
|
+
{
|
|
13179
|
+
"data-cy": "handlers-editor-add-handler-button",
|
|
13180
|
+
variant: "ghost",
|
|
13181
|
+
color: "white",
|
|
13182
|
+
disabled: !!t,
|
|
13183
|
+
onClick: () => {
|
|
13184
|
+
ir.next(t), r.actions.addHandler({
|
|
13185
|
+
class: "",
|
|
13186
|
+
isExpanded: !0,
|
|
13187
|
+
method: "",
|
|
13188
|
+
pattern: "",
|
|
13189
|
+
verbs: [],
|
|
13190
|
+
regexPattern: ""
|
|
13191
|
+
});
|
|
13192
|
+
},
|
|
13193
|
+
className: e,
|
|
13194
|
+
children: /* @__PURE__ */ p(Ql, { className: "size-4" })
|
|
13195
|
+
}
|
|
13196
|
+
)
|
|
13188
13197
|
}
|
|
13189
|
-
)
|
|
13198
|
+
);
|
|
13190
13199
|
}, bg = ({
|
|
13191
13200
|
label: e,
|
|
13192
13201
|
Icon: r,
|