@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/headless.d.ts
CHANGED
|
@@ -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:
|