@ws-ui/settings-editor 1.11.12-rc4 → 1.11.12-rc5

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
@@ -8793,16 +8793,18 @@ const wA = ({
8793
8793
  }
8794
8794
  };
8795
8795
  return /* @__PURE__ */ q("div", { className: "mx-auto mt-12 max-w-2xl flex-1", children: i === "session" ? ql(s, "session") : ql(s, "project") });
8796
- }, FA = () => {
8797
- const [i, r] = ze("session");
8796
+ }, FA = ({
8797
+ defaultActiveTab: i = "session"
8798
+ }) => {
8799
+ const r = i, [u, s] = ze(r);
8798
8800
  return /* @__PURE__ */ q("div", { className: "h-full bg-grey-800 text-white", children: /* @__PURE__ */ xn("div", { className: "flex h-full", children: [
8799
8801
  /* @__PURE__ */ q("div", { className: "w-56 border-r border-grey-900 bg-grey-800 py-4", children: /* @__PURE__ */ xn("ul", { className: "space-y-1 text-sm", children: [
8800
8802
  /* @__PURE__ */ xn(
8801
8803
  "li",
8802
8804
  {
8803
8805
  "data-cy": "settings-user-li-cy",
8804
- onClick: () => r("session"),
8805
- className: `flex cursor-pointer items-center p-2 ${i !== "session" ? "text-grey-200 hover:bg-primary-hover hover:text-grey-50" : "bg-primary-dark text-grey-50"}`,
8806
+ onClick: () => s("session"),
8807
+ className: `flex cursor-pointer items-center p-2 ${u !== "session" ? "text-grey-200 hover:bg-primary-hover hover:text-grey-50" : "bg-primary-dark text-grey-50"}`,
8806
8808
  children: [
8807
8809
  /* @__PURE__ */ q(om, { className: "mr-2 h-5 w-5" }),
8808
8810
  " User"
@@ -8813,8 +8815,8 @@ const wA = ({
8813
8815
  "li",
8814
8816
  {
8815
8817
  "data-cy": "settings-application-li-cy",
8816
- onClick: () => r("project"),
8817
- className: `flex cursor-pointer items-center p-2 ${i !== "project" ? "text-grey-200 hover:bg-primary-hover hover:text-grey-50" : "bg-primary-dark text-grey-50"}`,
8818
+ onClick: () => s("project"),
8819
+ className: `flex cursor-pointer items-center p-2 ${u !== "project" ? "text-grey-200 hover:bg-primary-hover hover:text-grey-50" : "bg-primary-dark text-grey-50"}`,
8818
8820
  children: [
8819
8821
  /* @__PURE__ */ q(am, { className: "mr-2 h-5 w-5" }),
8820
8822
  " Application"
@@ -8822,26 +8824,29 @@ const wA = ({
8822
8824
  }
8823
8825
  )
8824
8826
  ] }) }),
8825
- /* @__PURE__ */ q("div", { className: "h-full w-full", children: /* @__PURE__ */ q(RA, { currentTab: i }) })
8827
+ /* @__PURE__ */ q("div", { className: "h-full w-full", children: /* @__PURE__ */ q(RA, { currentTab: u }) })
8826
8828
  ] }) });
8827
- }, BA = () => /* @__PURE__ */ q("div", { className: "relative h-screen bg-grey-800 z-10 overflow-hidden text-white", children: /* @__PURE__ */ q(FA, {}) }), TA = ({ path: i }) => {
8828
- const r = vm(i);
8829
- return /* @__PURE__ */ q(lm, { adapter: r, children: /* @__PURE__ */ q(BA, {}) });
8829
+ }, BA = ({
8830
+ defaultActiveTab: i
8831
+ }) => /* @__PURE__ */ q("div", { className: "relative h-screen bg-grey-800 z-10 overflow-hidden text-white", children: /* @__PURE__ */ q(FA, { defaultActiveTab: i }) }), TA = ({ path: i, defaultActiveTab: r }) => {
8832
+ const u = vm(i);
8833
+ return /* @__PURE__ */ q(lm, { adapter: u, children: /* @__PURE__ */ q(BA, { defaultActiveTab: r }) });
8830
8834
  }, LA = ({
8831
8835
  path: i = Qv,
8832
8836
  initialValue: r,
8833
- onChange: u,
8834
- onFetchFolderContentWithoutExpanding: s,
8835
- onCreateNewFileAndOpen: o
8837
+ defaultActiveTab: u = "session",
8838
+ onChange: s,
8839
+ onFetchFolderContentWithoutExpanding: o,
8840
+ onCreateNewFileAndOpen: c
8836
8841
  }) => /* @__PURE__ */ q(
8837
8842
  bm,
8838
8843
  {
8839
8844
  tabPath: i,
8840
8845
  preferences: r,
8841
- onChange: u,
8842
- onFetchFolderContentWithoutExpanding: s,
8843
- onCreateNewFileAndOpen: o,
8844
- children: /* @__PURE__ */ q(TA, { path: i })
8846
+ onChange: s,
8847
+ onFetchFolderContentWithoutExpanding: o,
8848
+ onCreateNewFileAndOpen: c,
8849
+ children: /* @__PURE__ */ q(TA, { path: i, defaultActiveTab: u })
8845
8850
  }
8846
8851
  );
8847
8852
  export {