chore: use switchboard as dependency for embedded sdk (#18728)

This commit is contained in:
David Aaron Suddjian 2022-02-15 11:53:58 -08:00 committed by GitHub
parent 8b3e27d68b
commit 97a879ef27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 19 deletions

View File

@ -1,13 +1,16 @@
{ {
"name": "@superset-ui/embedded-sdk", "name": "@superset-ui/embedded-sdk",
"version": "0.1.0-alpha.1", "version": "0.1.0-alpha.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@superset-ui/embedded-sdk", "name": "@superset-ui/embedded-sdk",
"version": "0.1.0-alpha.1", "version": "0.1.0-alpha.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": {
"@superset-ui/switchboard": "^0.18.26-0"
},
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.16.8", "@babel/cli": "^7.16.8",
"@babel/core": "^7.16.12", "@babel/core": "^7.16.12",
@ -1670,6 +1673,11 @@
"dev": true, "dev": true,
"optional": 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": { "node_modules/@types/eslint": {
"version": "8.4.1", "version": "8.4.1",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz",
@ -2590,9 +2598,9 @@
} }
}, },
"node_modules/follow-redirects": { "node_modules/follow-redirects": {
"version": "1.14.7", "version": "1.14.8",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz",
"integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@ -2914,9 +2922,9 @@
} }
}, },
"node_modules/jest-worker": { "node_modules/jest-worker": {
"version": "27.4.6", "version": "27.5.0",
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.0.tgz",
"integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", "integrity": "sha512-8OEHiPNOPTfaWnJ2SUHM8fmgeGq37uuGsQBvGKQJl1f+6WIy6g7G3fE2ruI5294bUKUI9FaCWt5hDvO8HSwsSg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/node": "*", "@types/node": "*",
@ -5124,6 +5132,11 @@
"dev": true, "dev": true,
"optional": 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": { "@types/eslint": {
"version": "8.4.1", "version": "8.4.1",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz",
@ -5860,9 +5873,9 @@
} }
}, },
"follow-redirects": { "follow-redirects": {
"version": "1.14.7", "version": "1.14.8",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz",
"integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==",
"dev": true "dev": true
}, },
"fs-readdir-recursive": { "fs-readdir-recursive": {
@ -6085,9 +6098,9 @@
"dev": true "dev": true
}, },
"jest-worker": { "jest-worker": {
"version": "27.4.6", "version": "27.5.0",
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.0.tgz",
"integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", "integrity": "sha512-8OEHiPNOPTfaWnJ2SUHM8fmgeGq37uuGsQBvGKQJl1f+6WIy6g7G3fE2ruI5294bUKUI9FaCWt5hDvO8HSwsSg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/node": "*", "@types/node": "*",

View File

@ -1,6 +1,6 @@
{ {
"name": "@superset-ui/embedded-sdk", "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", "description": "SDK for embedding resources from Superset into your own application",
"access": "public", "access": "public",
"keywords": [ "keywords": [
@ -32,6 +32,9 @@
"last 3 safari versions", "last 3 safari versions",
"last 3 edge versions" "last 3 edge versions"
], ],
"dependencies": {
"@superset-ui/switchboard": "^0.18.26-0"
},
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.16.8", "@babel/cli": "^7.16.8",
"@babel/core": "^7.16.12", "@babel/core": "^7.16.12",

View File

@ -20,7 +20,7 @@
import { IFRAME_COMMS_MESSAGE_TYPE } from './const'; import { IFRAME_COMMS_MESSAGE_TYPE } from './const';
// We can swap this out for the actual switchboard package once it gets published // 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. * The function to fetch a guest token from your Host App's backend server.

View File

@ -3,6 +3,8 @@
// syntax rules // syntax rules
"strict": true, "strict": true,
"moduleResolution": "node",
// environment // environment
"target": "es6", "target": "es6",
"lib": ["DOM", "ESNext"], "lib": ["DOM", "ESNext"],

View File

@ -1,12 +1,12 @@
{ {
"name": "@superset-ui/switchboard", "name": "@superset-ui/switchboard",
"version": "0.18.25", "version": "0.18.26-0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@superset-ui/switchboard", "name": "@superset-ui/switchboard",
"version": "0.18.25", "version": "0.18.26-0",
"license": "Apache-2.0" "license": "Apache-2.0"
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@superset-ui/switchboard", "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", "description": "Switchboard is a library to make it easier to communicate across browser windows using the MessageChannel API",
"sideEffects": false, "sideEffects": false,
"main": "lib/index.js", "main": "lib/index.js",