@revturbine/sdk 0.2.80 → 0.2.81

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
@@ -12151,6 +12151,20 @@ interface RevTurbineInitOptions {
12151
12151
  * when no explicit {@link branding} and no legacy config-embedded theme apply.
12152
12152
  */
12153
12153
  apiBranding?: BrandingConfig;
12154
+ /**
12155
+ * Fetch the tenant's theme overrides from the control plane's
12156
+ * `GET /api/sdk/theme` and apply them OVER the launched Playbook's theme
12157
+ * (plan 184).
12158
+ *
12159
+ * Opt-in and `false` by default, deliberately: the SDK otherwise issues no
12160
+ * theme request at all, so an integration with no branding configured never
12161
+ * pays a round-trip — and never logs a failed one. Enable it when branding is
12162
+ * managed from the RevTurbine dashboard and should change without a redeploy.
12163
+ *
12164
+ * Independent of {@link apiBranding}, which is the same rung supplied by the
12165
+ * host instead of fetched by the SDK.
12166
+ */
12167
+ fetchThemeOverride?: boolean;
12154
12168
  }
12155
12169
  /** Base init options shared by all runtime mode helper builders. */
12156
12170
  type RevTurbineInitBaseOptions = Omit<RevTurbineInitOptions, 'runtimeMode' | 'endpointOverrides' | 'localRuntime'>;
@@ -21234,6 +21248,12 @@ interface ThemeLoaderOptions {
21234
21248
  apiKey: string;
21235
21249
  /** Optional storage provider. Falls back to localStorage in browser, in-memory on server. */
21236
21250
  storage?: RevTurbineStorage;
21251
+ /**
21252
+ * The launched Playbook's theme, used as the BASE that fetched overrides
21253
+ * merge over (plan 184). Supplying it means a partial override from the
21254
+ * control plane refines the Playbook's theme instead of replacing it.
21255
+ */
21256
+ base?: RevTurbineThemeInput;
21237
21257
  }
21238
21258
  /**
21239
21259
  * Load the tenant's theme: