@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/headless.d.ts +20 -0
- package/dist/headless.js +2 -2
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/web-sdk/branding.d.ts.map +1 -1
- package/dist/types/web-sdk/build-mode.d.ts +53 -0
- package/dist/types/web-sdk/build-mode.d.ts.map +1 -0
- package/dist/types/web-sdk/config-artifact.d.ts.map +1 -1
- package/dist/types/web-sdk/customer-side.d.ts +14 -0
- package/dist/types/web-sdk/customer-side.d.ts.map +1 -1
- package/dist/types/web-sdk/react/RevTurbineProvider.d.ts.map +1 -1
- package/dist/types/web-sdk/react/Track.d.ts.map +1 -1
- package/dist/types/web-sdk/theme/theme-loader.d.ts +7 -1
- package/dist/types/web-sdk/theme/theme-loader.d.ts.map +1 -1
- package/package.json +1 -1
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:
|