@ws-ui/settings-editor 1.11.12-rc7 → 1.11.12-rc9

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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { default as SettingsEditor } from './Editor';
2
+ export * from './common';
2
3
  export * from './Standalone';
3
4
  export { EditorStateAdapterProvider, ReducerAdapterProvider, useReducerAdapter, useReduxAdapter, } from './adapter';
package/dist/index.es.js CHANGED
@@ -5,6 +5,7 @@ import { useAppDispatch as jx, useAppSelector as di, selectPreferences as Xx, se
5
5
  import { useDidMountEffect as iy, ModalType as ay, FolderRootPath as un, FileFolderType as Es, validateName as od, SETTINGS_TAB_PATH as sy } from "@ws-ui/shared";
6
6
  import { flushSync as ly, createPortal as lp } from "react-dom";
7
7
  import { FdWebform as cp, FdCompact as cy, FdAiry as uy, FdEye as dy, FdHidden as py, FdUp as hy, FdDown as fy, FdPlaySettings as gy, FdSameLoaderTab as vy, FdMagic as id, FdTime as by, FdTooltip as my, FdInfoBold as ad, FdUser as wy, FdDatabase as xy } from "@ws-ui/icons";
8
+ import { SETTINGS_EDITOR_SCOPE_CLASS as nE } from "./common.es.js";
8
9
  function Jk(r) {
9
10
  const i = jx(), n = di(Xx), a = di(Yx), s = di(Zx), l = di(Qx);
10
11
  return {
@@ -14360,11 +14361,11 @@ const Wk = ({
14360
14361
  className: "w-full h-full"
14361
14362
  }) }),
14362
14363
  /* @__PURE__ */ z("div", { className: "text-sm", children: i }),
14363
- /* @__PURE__ */ z("span", { className: "ml-auto", children: /* @__PURE__ */ z("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ z("div", { className: "relative min-w-0", children: /* @__PURE__ */ Me(
14364
+ /* @__PURE__ */ Me(
14364
14365
  Is.Root,
14365
14366
  {
14366
14367
  color: s ? "negative" : "primary",
14367
- className: "w-[208px]",
14368
+ className: "w-[208px] ml-auto",
14368
14369
  options: C,
14369
14370
  value: w ? { label: w, value: w } : null,
14370
14371
  onChange: M,
@@ -14372,16 +14373,15 @@ const Wk = ({
14372
14373
  onInputChange: d,
14373
14374
  isSearchable: !0,
14374
14375
  getOptionLabel: (D) => D.label,
14375
- getOptionValue: (D) => D.value,
14376
- formatOptionLabel: (D) => /* @__PURE__ */ Me("div", { className: "flex items-center", children: [
14377
- !D.__isNew__ && /* @__PURE__ */ z(cp, { className: "mr-2 h-4 w-4" }),
14378
- D.label
14379
- ] }),
14380
14376
  children: [
14381
14377
  /* @__PURE__ */ z(
14382
14378
  Is.Field,
14383
14379
  {
14384
14380
  placeholder: "Page",
14381
+ formatOptionLabel: (D) => /* @__PURE__ */ Me("div", { className: "flex items-center", children: [
14382
+ !D.__isNew__ && /* @__PURE__ */ z(cp, { className: "mr-2 h-4 w-4" }),
14383
+ D.label
14384
+ ] }),
14385
14385
  isClearable: !0,
14386
14386
  onBlur: () => {
14387
14387
  l(null);
@@ -14391,7 +14391,7 @@ const Wk = ({
14391
14391
  s && /* @__PURE__ */ z(Is.Message, { children: s.message })
14392
14392
  ]
14393
14393
  }
14394
- ) }) }) })
14394
+ )
14395
14395
  ] })
14396
14396
  }
14397
14397
  );
@@ -14584,23 +14584,26 @@ const Wk = ({
14584
14584
  path: r = sy,
14585
14585
  initialValue: i,
14586
14586
  defaultActiveTab: n = "session",
14587
- onChange: a,
14588
- onFetchFolderContentWithoutExpanding: s,
14589
- onCreateNewFileAndOpen: l
14587
+ webforms: a,
14588
+ onChange: s,
14589
+ onFetchFolderContentWithoutExpanding: l,
14590
+ onCreateNewFileAndOpen: u
14590
14591
  }) => /* @__PURE__ */ z(
14591
14592
  Oy,
14592
14593
  {
14593
14594
  tabPath: r,
14595
+ webforms: a,
14594
14596
  preferences: i,
14595
- onChange: a,
14596
- onFetchFolderContentWithoutExpanding: s,
14597
- onCreateNewFileAndOpen: l,
14597
+ onChange: s,
14598
+ onFetchFolderContentWithoutExpanding: l,
14599
+ onCreateNewFileAndOpen: u,
14598
14600
  children: /* @__PURE__ */ z(qk, { path: r, defaultActiveTab: n })
14599
14601
  }
14600
14602
  );
14601
14603
  export {
14602
14604
  yy as EditorStateAdapterProvider,
14603
14605
  Oy as ReducerAdapterProvider,
14606
+ nE as SETTINGS_EDITOR_SCOPE_CLASS,
14604
14607
  Kk as SettingsEditor,
14605
14608
  eE as Standalone,
14606
14609
  Ny as useReducerAdapter,