Skip to content

Commit bba1f87

Browse files
committed
Merge branch 'update/ListView' of https://github.com/rkc9937/superset into update/ListView
2 parents 3f10f39 + 24841f8 commit bba1f87

File tree

34 files changed

+2487
-95
lines changed

34 files changed

+2487
-95
lines changed

superset-embedded-sdk/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

superset-embedded-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superset-ui/embedded-sdk",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "SDK for embedding resources from Superset into your own application",
55
"access": "public",
66
"keywords": [

superset-embedded-sdk/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export type EmbeddedDashboard = {
9393
) => void;
9494
getDataMask: () => Promise<Record<string, any>>;
9595
getChartStates: () => Promise<Record<string, any>>;
96+
getChartDataPayloads: (params?: { chartId?: number }) => Promise<Record<string, any>>;
9697
setThemeConfig: (themeConfig: Record<string, any>) => void;
9798
setThemeMode: (mode: ThemeMode) => void;
9899
};
@@ -249,6 +250,8 @@ export async function embedDashboard({
249250
const getActiveTabs = () => ourPort.get<string[]>('getActiveTabs');
250251
const getDataMask = () => ourPort.get<Record<string, any>>('getDataMask');
251252
const getChartStates = () => ourPort.get<Record<string, any>>('getChartStates');
253+
const getChartDataPayloads = (params?: { chartId?: number }) =>
254+
ourPort.get<Record<string, any>>('getChartDataPayloads', params);
252255
const observeDataMask = (
253256
callbackFn: ObserveDataMaskCallbackFn,
254257
) => {
@@ -288,6 +291,7 @@ export async function embedDashboard({
288291
observeDataMask,
289292
getDataMask,
290293
getChartStates,
294+
getChartDataPayloads,
291295
setThemeConfig,
292296
setThemeMode,
293297
};

0 commit comments

Comments
 (0)