diff --git a/superset-embedded-sdk/package-lock.json b/superset-embedded-sdk/package-lock.json index d525e16bf74b4..067da8b3857a0 100644 --- a/superset-embedded-sdk/package-lock.json +++ b/superset-embedded-sdk/package-lock.json @@ -1,13 +1,16 @@ { "name": "@superset-ui/embedded-sdk", - "version": "0.1.0-alpha.1", + "version": "0.1.0-alpha.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@superset-ui/embedded-sdk", - "version": "0.1.0-alpha.1", + "version": "0.1.0-alpha.2", "license": "Apache-2.0", + "dependencies": { + "@superset-ui/switchboard": "^0.18.26-0" + }, "devDependencies": { "@babel/cli": "^7.16.8", "@babel/core": "^7.16.12", @@ -1670,6 +1673,11 @@ "dev": true, "optional": true }, + "node_modules/@superset-ui/switchboard": { + "version": "0.18.26-0", + "resolved": "https://registry.npmjs.org/@superset-ui/switchboard/-/switchboard-0.18.26-0.tgz", + "integrity": "sha512-MYvigrspA0EgNU6tA9UrsXcrUYid9YktsbIPx/D4Xd5cWWrJrJl303imQ/SIZbC25faJCd2gL30ORll60Yz3Ww==" + }, "node_modules/@types/eslint": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", @@ -2590,9 +2598,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", + "version": "1.14.8", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", + "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==", "dev": true, "funding": [ { @@ -2914,9 +2922,9 @@ } }, "node_modules/jest-worker": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", - "integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", + "version": "27.5.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.0.tgz", + "integrity": "sha512-8OEHiPNOPTfaWnJ2SUHM8fmgeGq37uuGsQBvGKQJl1f+6WIy6g7G3fE2ruI5294bUKUI9FaCWt5hDvO8HSwsSg==", "dev": true, "dependencies": { "@types/node": "*", @@ -5124,6 +5132,11 @@ "dev": true, "optional": true }, + "@superset-ui/switchboard": { + "version": "0.18.26-0", + "resolved": "https://registry.npmjs.org/@superset-ui/switchboard/-/switchboard-0.18.26-0.tgz", + "integrity": "sha512-MYvigrspA0EgNU6tA9UrsXcrUYid9YktsbIPx/D4Xd5cWWrJrJl303imQ/SIZbC25faJCd2gL30ORll60Yz3Ww==" + }, "@types/eslint": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", @@ -5860,9 +5873,9 @@ } }, "follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", + "version": "1.14.8", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz", + "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==", "dev": true }, "fs-readdir-recursive": { @@ -6085,9 +6098,9 @@ "dev": true }, "jest-worker": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", - "integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", + "version": "27.5.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.0.tgz", + "integrity": "sha512-8OEHiPNOPTfaWnJ2SUHM8fmgeGq37uuGsQBvGKQJl1f+6WIy6g7G3fE2ruI5294bUKUI9FaCWt5hDvO8HSwsSg==", "dev": true, "requires": { "@types/node": "*", diff --git a/superset-embedded-sdk/package.json b/superset-embedded-sdk/package.json index a41c91ad344ea..fa426bb9efd4f 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.1", + "version": "0.1.0-alpha.3", "description": "SDK for embedding resources from Superset into your own application", "access": "public", "keywords": [ @@ -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", diff --git a/superset-embedded-sdk/src/index.ts b/superset-embedded-sdk/src/index.ts index d29d701d4155a..a1cd1007c2107 100644 --- a/superset-embedded-sdk/src/index.ts +++ b/superset-embedded-sdk/src/index.ts @@ -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. diff --git a/superset-embedded-sdk/tsconfig.json b/superset-embedded-sdk/tsconfig.json index 072b121625a8c..a9ee59739f47b 100644 --- a/superset-embedded-sdk/tsconfig.json +++ b/superset-embedded-sdk/tsconfig.json @@ -3,6 +3,8 @@ // syntax rules "strict": true, + "moduleResolution": "node", + // environment "target": "es6", "lib": ["DOM", "ESNext"], diff --git a/superset-frontend/packages/superset-ui-switchboard/package-lock.json b/superset-frontend/packages/superset-ui-switchboard/package-lock.json index 5c3d95de78fbd..0d56931468339 100644 --- a/superset-frontend/packages/superset-ui-switchboard/package-lock.json +++ b/superset-frontend/packages/superset-ui-switchboard/package-lock.json @@ -1,12 +1,12 @@ { "name": "@superset-ui/switchboard", - "version": "0.18.25", + "version": "0.18.26-0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@superset-ui/switchboard", - "version": "0.18.25", + "version": "0.18.26-0", "license": "Apache-2.0" } } diff --git a/superset-frontend/packages/superset-ui-switchboard/package.json b/superset-frontend/packages/superset-ui-switchboard/package.json index e224640a55cde..f7e6c69a1b508 100644 --- a/superset-frontend/packages/superset-ui-switchboard/package.json +++ b/superset-frontend/packages/superset-ui-switchboard/package.json @@ -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",