@charisol/plexo-sdk 2.0.2 → 2.0.3

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.
@@ -160,7 +160,10 @@ export interface V2HostConfig {
160
160
  branding?: boolean; /** @deprecated use `branding` */
161
161
  strata?: boolean;
162
162
  library?: boolean;
163
- codeView?: boolean;
163
+ codeView?: boolean; /** The page picker in the top bar (the Pages panel stays). Default on. */
164
+ pageSwitcher?: boolean; /** The Design | Code switch in the top bar. Default on. */
165
+ viewSwitch?: boolean; /** The SOL button in the top bar (SOL stays in the left rail). Default on. */
166
+ headerSol?: boolean;
164
167
  };
165
168
  }
166
169
  export declare const HostProvider: React.FC<{
package/dist/v2.js CHANGED
@@ -2824,7 +2824,7 @@ var $r = [
2824
2824
  className: P(w ? "max-w-[260px]" : "hidden"),
2825
2825
  children: _.headerLeft
2826
2826
  }),
2827
- /* @__PURE__ */ J("div", {
2827
+ _.features?.pageSwitcher !== !1 && /* @__PURE__ */ J("div", {
2828
2828
  className: "min-w-0 shrink flex items-center",
2829
2829
  children: _.pageSource?.render ? _.pageSource.render({
2830
2830
  pages: _.pageSource.pages,
@@ -2884,8 +2884,7 @@ var $r = [
2884
2884
  })]
2885
2885
  }, e))
2886
2886
  }),
2887
- /* @__PURE__ */ J("div", { className: "w-[1px] h-3.5 bg-[#262626]" }),
2888
- /* @__PURE__ */ Y("div", {
2887
+ _.features?.viewSwitch !== !1 && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("div", { className: "w-[1px] h-3.5 bg-[#262626]" }), /* @__PURE__ */ Y("div", {
2889
2888
  className: "flex items-center bg-[#1C1C1C] p-0.5 rounded-xl border border-[#282828] shrink-0",
2890
2889
  children: [/* @__PURE__ */ J("button", {
2891
2890
  onClick: () => a("design"),
@@ -2896,13 +2895,13 @@ var $r = [
2896
2895
  className: M(i === "code"),
2897
2896
  children: "Code"
2898
2897
  })]
2899
- })
2898
+ })] })
2900
2899
  ]
2901
2900
  }),
2902
2901
  /* @__PURE__ */ Y("div", {
2903
2902
  className: "flex items-center justify-end gap-2 shrink-0",
2904
2903
  children: [
2905
- _.onAskSol && /* @__PURE__ */ Y("button", {
2904
+ _.onAskSol && _.features?.headerSol !== !1 && /* @__PURE__ */ Y("button", {
2906
2905
  onClick: () => h("sol"),
2907
2906
  title: "Open SOL AI Tool",
2908
2907
  "aria-label": "Open SOL AI Tool",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "description": "Plexo visual email and landing page builder SDK — drag-and-drop template editor with AI integration.",
6
6
  "keywords": [
7
7
  "email-builder",