@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.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($e, { label: "Add a new HTTP Handler", container: Ke(), children: /* @__PURE__ */ p(
13170
- st,
13169
+ return /* @__PURE__ */ p(
13170
+ $e,
13171
13171
  {
13172
- "data-cy": "handlers-editor-add-handler-button",
13173
- variant: "ghost",
13174
- color: "white",
13175
- disabled: !!t,
13176
- onClick: () => {
13177
- ir.next(t), r.actions.addHandler({
13178
- class: "",
13179
- isExpanded: !0,
13180
- method: "",
13181
- pattern: "",
13182
- verbs: [],
13183
- regexPattern: ""
13184
- });
13185
- },
13186
- className: e,
13187
- children: /* @__PURE__ */ p(Ql, { className: "size-4" })
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,