diff --git a/demo/message_example.html b/demo/message_example.html
index 1f2fca0..69c9c21 100644
--- a/demo/message_example.html
+++ b/demo/message_example.html
@@ -3,13 +3,13 @@
-
Looker Embed Window Message Example
+
Looker Embed Message API Demo
-
Looker Embed Window Message Example
+
Looker Embed Message API Demo
@@ -47,8 +47,8 @@
Looker Embed Window Message Example
diff --git a/src/index.ts b/src/index.ts
index 8ad920b..87700ba 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -34,6 +34,7 @@ import type {
CookielessCallback,
CookielessRequestInit,
} from './types'
+import { getSDKFactory } from './v2/LookerEmbedSDKFactory'
export type { LookerEmbedDashboard } from './dashboard_client'
export type { LookerEmbedExplore } from './explore_client'
@@ -210,6 +211,20 @@ export class LookerEmbedSDK {
).withId(id)
}
+ /**
+ * Create an instance of the new combined connection Embed SDK. The combined
+ * connection Embed SDK allows a developer to create a single connection for
+ * all Looker object types (dashboard, explores, looks, extensions). The
+ * developer can use the connection to navigate to different object types
+ * within Looker without having to recreate the IFRAME.
+ *
+ * Requires Looker version 25.0 or above.
+ */
+
+ static getSDK() {
+ return getSDKFactory().getSDK()
+ }
+
/**
* @hidden
*/
diff --git a/tests/v2/LookerEmbedSDKFactory.spec.ts b/tests/v2/LookerEmbedSDKFactory.spec.ts
index 17ce3f4..023fcdb 100644
--- a/tests/v2/LookerEmbedSDKFactory.spec.ts
+++ b/tests/v2/LookerEmbedSDKFactory.spec.ts
@@ -24,6 +24,7 @@
*/
+import { LookerEmbedSDK } from '../../src'
import {
getSDKFactory,
LookerEmbedSDKFactory,
@@ -41,4 +42,10 @@ describe('LookerEmbedSDKFactory', () => {
const factory = new LookerEmbedSDKFactory(sdk)
expect(sdk === factory.getSDK()).toBeTruthy()
})
+
+ it('returns an instance of the new SDK from the original SDK', () => {
+ const sdk = LookerEmbedSDK.getSDK()
+ expect(sdk).toBeDefined()
+ expect(LookerEmbedSDK.getSDK()).toBe(sdk)
+ })
})
diff --git a/webpack-devserver.config.js b/webpack-devserver.config.js
index 855df1c..01f83be 100644
--- a/webpack-devserver.config.js
+++ b/webpack-devserver.config.js
@@ -10,8 +10,8 @@ var webpackConfig = {
mode: 'development',
devtool: 'source-map',
entry: {
- demo: './demo/demo.ts',
- demo_v1: './demo/demo_v1.ts',
+ demo_single_frame: './demo/demo_single_frame.ts',
+ demo_multi_frame: './demo/demo_multi_frame.ts',
message_example: './demo/message_example.ts',
},
output: {