From 226aa118d2a98df142123bc9f3248bd2924aef14 Mon Sep 17 00:00:00 2001 From: Lily Kuang Date: Wed, 23 Mar 2022 11:55:17 -0700 Subject: [PATCH] fix(embedded): download chart as image --- superset-embedded-sdk/package-lock.json | 4 ++-- superset-embedded-sdk/package.json | 2 +- superset-embedded-sdk/src/index.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/superset-embedded-sdk/package-lock.json b/superset-embedded-sdk/package-lock.json index f440d613dfe91..cd52282c71c47 100644 --- a/superset-embedded-sdk/package-lock.json +++ b/superset-embedded-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@superset-ui/embedded-sdk", - "version": "0.1.0-alpha.3", + "version": "0.1.0-alpha.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@superset-ui/embedded-sdk", - "version": "0.1.0-alpha.3", + "version": "0.1.0-alpha.6", "license": "Apache-2.0", "dependencies": { "@superset-ui/switchboard": "^0.18.26-0" diff --git a/superset-embedded-sdk/package.json b/superset-embedded-sdk/package.json index 5bc4a287855e0..88642e72327f3 100644 --- a/superset-embedded-sdk/package.json +++ b/superset-embedded-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@superset-ui/embedded-sdk", - "version": "0.1.0-alpha.5", + "version": "0.1.0-alpha.6", "description": "SDK for embedding resources from Superset into your own application", "access": "public", "keywords": [ diff --git a/superset-embedded-sdk/src/index.ts b/superset-embedded-sdk/src/index.ts index f6bebe54436cf..34932bd6250d7 100644 --- a/superset-embedded-sdk/src/index.ts +++ b/superset-embedded-sdk/src/index.ts @@ -104,6 +104,7 @@ export async function embedDashboard({ iframe.sandbox.add("allow-same-origin"); // needed for postMessage to work iframe.sandbox.add("allow-scripts"); // obviously the iframe needs scripts iframe.sandbox.add("allow-presentation"); // for fullscreen charts + iframe.sandbox.add("allow-downloads"); // for downloading charts as image // add these ones if it turns out we need them: // iframe.sandbox.add("allow-top-navigation"); // iframe.sandbox.add("allow-forms");