@revturbine/sdk 0.2.80 → 0.2.82

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.
@@ -12058,6 +12058,20 @@ interface RevTurbineInitOptions {
12058
12058
  * when no explicit {@link branding} and no legacy config-embedded theme apply.
12059
12059
  */
12060
12060
  apiBranding?: BrandingConfig;
12061
+ /**
12062
+ * Fetch the tenant's theme overrides from the control plane's
12063
+ * `GET /api/sdk/theme` and apply them OVER the launched Playbook's theme
12064
+ * (plan 184).
12065
+ *
12066
+ * Opt-in and `false` by default, deliberately: the SDK otherwise issues no
12067
+ * theme request at all, so an integration with no branding configured never
12068
+ * pays a round-trip — and never logs a failed one. Enable it when branding is
12069
+ * managed from the RevTurbine dashboard and should change without a redeploy.
12070
+ *
12071
+ * Independent of {@link apiBranding}, which is the same rung supplied by the
12072
+ * host instead of fetched by the SDK.
12073
+ */
12074
+ fetchThemeOverride?: boolean;
12061
12075
  }
12062
12076
  /** Base init options shared by all runtime mode helper builders. */
12063
12077
  type RevTurbineInitBaseOptions = Omit<RevTurbineInitOptions, 'runtimeMode' | 'endpointOverrides' | 'localRuntime'>;
@@ -21141,6 +21155,12 @@ interface ThemeLoaderOptions {
21141
21155
  apiKey: string;
21142
21156
  /** Optional storage provider. Falls back to localStorage in browser, in-memory on server. */
21143
21157
  storage?: RevTurbineStorage;
21158
+ /**
21159
+ * The launched Playbook's theme, used as the BASE that fetched overrides
21160
+ * merge over (plan 184). Supplying it means a partial override from the
21161
+ * control plane refines the Playbook's theme instead of replacing it.
21162
+ */
21163
+ base?: RevTurbineThemeInput;
21144
21164
  }
21145
21165
  /**
21146
21166
  * Load the tenant's theme: