Skip to content

Commit

Permalink
chore: use switchboard as dependency for embedded sdk (#18728)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored Feb 15, 2022
1 parent 8b3e27d commit 97a879e
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
41 changes: 27 additions & 14 deletions superset-embedded-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion superset-embedded-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/embedded-sdk",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.3",
"description": "SDK for embedding resources from Superset into your own application",
"access": "public",
"keywords": [
Expand Down Expand Up @@ -32,6 +32,9 @@
"last 3 safari versions",
"last 3 edge versions"
],
"dependencies": {
"@superset-ui/switchboard": "^0.18.26-0"
},
"devDependencies": {
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.12",
Expand Down
2 changes: 1 addition & 1 deletion superset-embedded-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { IFRAME_COMMS_MESSAGE_TYPE } from './const';

// We can swap this out for the actual switchboard package once it gets published
import { Switchboard } from '../../superset-frontend/packages/superset-ui-switchboard/src/switchboard';
import { Switchboard } from '@superset-ui/switchboard';

/**
* The function to fetch a guest token from your Host App's backend server.
Expand Down
2 changes: 2 additions & 0 deletions superset-embedded-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// syntax rules
"strict": true,

"moduleResolution": "node",

// environment
"target": "es6",
"lib": ["DOM", "ESNext"],
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/switchboard",
"version": "0.18.25",
"version": "0.18.26-0",
"description": "Switchboard is a library to make it easier to communicate across browser windows using the MessageChannel API",
"sideEffects": false,
"main": "lib/index.js",
Expand Down

0 comments on commit 97a879e

Please sign in to comment.