obi-sdk 0.19.81 → 0.19.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.
package/dist/src/sdk.d.ts CHANGED
@@ -36,6 +36,8 @@ export declare class ObiSDK extends EventEmitter<ObiSDKEvents> {
36
36
  preferHostPip: boolean;
37
37
  tutorBaseUrl: string;
38
38
  tutorProductAlias: string;
39
+ /** Obi REST API base URL; `obiWidgetConfig.apiBaseUrl` overrides before ObiClient is constructed. */
40
+ apiBaseUrl: string;
39
41
  graphemes?: any;
40
42
  commandLog: any[];
41
43
  private commandQueue;
@@ -50,6 +52,7 @@ export declare class ObiSDK extends EventEmitter<ObiSDKEvents> {
50
52
  * Resumes an ongoing session if one exists.
51
53
  */
52
54
  constructor(appToken?: string);
55
+ private resolveApiBaseUrl;
53
56
  hydratePreInitialiseWindowConfig(config?: Partial<Config> & {
54
57
  user?: Identity | null;
55
58
  }): void;
@@ -6,6 +6,8 @@ export type Command = {
6
6
  };
7
7
  export type Config = {
8
8
  apiKey?: string;
9
+ /** Override Obi API base URL (e.g. local obi-server). Snippet `obiWidgetConfig` is read before the client is constructed. */
10
+ apiBaseUrl?: string;
9
11
  isActive?: boolean;
10
12
  primaryColour?: string;
11
13
  user?: Identity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obi-sdk",
3
- "version": "0.19.81",
3
+ "version": "0.19.82",
4
4
  "description": "JavaScript SDK for Obi",
5
5
  "type": "module",
6
6
  "main": "dist/obi-sdk.umd.js",