diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/package.json b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/package.json index 3c7e6138d68e..bd24b920c67d 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/package.json +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/package.json @@ -48,9 +48,7 @@ "@superset-ui/legacy-plugin-chart-heatmap": "0.14.11", "@superset-ui/legacy-plugin-chart-histogram": "0.14.16", "@superset-ui/legacy-plugin-chart-horizon": "0.14.9", - "@superset-ui/legacy-plugin-chart-iframe": "0.14.9", "@superset-ui/legacy-plugin-chart-map-box": "0.14.9", - "@superset-ui/legacy-plugin-chart-markup": "0.14.9", "@superset-ui/legacy-plugin-chart-paired-t-test": "0.14.11", "@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.14.16", "@superset-ui/legacy-plugin-chart-partition": "0.14.9", diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-iframe/Stories.tsx b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-iframe/Stories.tsx deleted file mode 100644 index 5429555516cd..000000000000 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-iframe/Stories.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; -import { SuperChart } from '@superset-ui/chart'; -import IframeChartPlugin from '@superset-ui/legacy-plugin-chart-iframe'; - -new IframeChartPlugin().configure({ key: 'iframe' }).register(); - -export default { - title: 'Legacy Chart Plugins|legacy-plugin-chart-iframe', -}; - -export const basic = () => ( - -); diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-markup/Stories.tsx b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-markup/Stories.tsx deleted file mode 100644 index 17484e9877a7..000000000000 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-markup/Stories.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import React from 'react'; -import { SuperChart } from '@superset-ui/chart'; -import MarkupChartPlugin from '@superset-ui/legacy-plugin-chart-markup'; - -new MarkupChartPlugin().configure({ key: 'markup' }).register(); - -export default { - title: 'Legacy Chart Plugins|legacy-plugin-chart-markup', -}; - -export const basic = () => ( - hello world
', - }, - }} - formData={{ vizType: 'markup' }} - /> -); diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/README.md b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/README.md deleted file mode 100644 index ab760db22b71..000000000000 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/README.md +++ /dev/null @@ -1,32 +0,0 @@ -## @superset-ui/legacy-plugin-chart-iframe - -[![Version](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-iframe.svg?style=flat-square)](https://img.shields.io/npm/v/@superset-ui/legacy-plugin-chart-iframe.svg?style=flat-square) -[![David (path)](https://img.shields.io/david/apache-superset/superset-ui-plugins.svg?path=packages%2Fsuperset-ui-legacy-plugin-chart-iframe&style=flat-square)](https://david-dm.org/apache-superset/superset-ui-plugins?path=packages/superset-ui-legacy-plugin-chart-iframe) - -This plugin provides Iframe for Superset. - -### Usage - -Configure `key`, which can be any `string`, and register the plugin. This `key` will be used to lookup this chart throughout the app. - -```js -import IframeChartPlugin from '@superset-ui/legacy-plugin-chart-iframe'; - -new IframeChartPlugin() - .configure({ key: 'iframe' }) - .register(); -``` - -Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui-plugins/?selectedKind=plugin-chart-iframe) for more details. - -```js - -``` \ No newline at end of file diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/package.json b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/package.json deleted file mode 100644 index 7b447ee0cf58..000000000000 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@superset-ui/legacy-plugin-chart-iframe", - "version": "0.14.9", - "description": "Superset Legacy Chart - Iframe", - "sideEffects": [ - "*.css" - ], - "main": "lib/index.js", - "module": "esm/index.js", - "files": [ - "esm", - "lib" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/apache-superset/superset-ui.git" - }, - "keywords": [ - "superset" - ], - "author": "Superset", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/apache-superset/superset-ui/issues" - }, - "homepage": "https://github.com/apache-superset/superset-ui#readme", - "publishConfig": { - "access": "public" - }, - "dependencies": { - "mustache": "^4.0.0", - "prop-types": "^15.6.2" - }, - "peerDependencies": { - "@superset-ui/chart": "^0.14.0", - "@superset-ui/translation": "^0.14.0", - "react": "^15 || ^16" - } -} diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/src/Iframe.jsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/src/Iframe.jsx deleted file mode 100644 index 84cd4eccc4e9..000000000000 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-iframe/src/Iframe.jsx +++ /dev/null @@ -1,60 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import Mustache from 'mustache'; -import React from 'react'; -import PropTypes from 'prop-types'; - -const propTypes = { - className: PropTypes.string, - height: PropTypes.number.isRequired, - url: PropTypes.string, - width: PropTypes.number.isRequired, -}; -const defaultProps = { - className: '', - url: '', -}; - -class Iframe extends React.PureComponent { - render() { - const { className, url, width, height } = this.props; - const completeUrl = Mustache.render(url, { - height, - width, - }); - - return ( -