@superset-ui/core
Advanced tools
Comparing version 0.17.25 to 0.17.26
import _pt from "prop-types"; | ||
import React, { PureComponent } from 'react'; | ||
import { isDefined } from '../utils'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
@@ -22,3 +23,3 @@ function checkNumber(input) { | ||
if (overflowX || overflowY) { | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
style: { | ||
@@ -25,0 +26,0 @@ height, |
@@ -5,2 +5,3 @@ import _pt from "prop-types"; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
const defaultProps = { | ||
@@ -94,6 +95,6 @@ className: '', | ||
}; | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
className: `with-legend ${className}`, | ||
style: style | ||
}, renderLegend && /*#__PURE__*/React.createElement("div", { | ||
}, renderLegend && ___EmotionJSX("div", { | ||
className: "legend-container", | ||
@@ -104,6 +105,6 @@ style: legendStyle | ||
direction: legendDirection | ||
})), /*#__PURE__*/React.createElement("div", { | ||
})), ___EmotionJSX("div", { | ||
className: "main-container", | ||
style: chartStyle | ||
}, /*#__PURE__*/React.createElement(ParentSize, { | ||
}, ___EmotionJSX(ParentSize, { | ||
debounceTime: debounceTime | ||
@@ -110,0 +111,0 @@ }, parent => parent.width > 0 && parent.height > 0 ? // Only render when necessary |
import _pt from "prop-types"; | ||
import React, { PureComponent } from 'react'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
const defaultProps = { | ||
@@ -16,3 +17,3 @@ className: '' | ||
} = this.props; | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
className: className, | ||
@@ -19,0 +20,0 @@ style: CONTAINER_STYLE |
import _pt from "prop-types"; | ||
import React, { PureComponent } from 'react'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
const defaultProps = { | ||
@@ -17,5 +18,5 @@ className: '', | ||
} = this.props; | ||
return /*#__PURE__*/React.createElement("table", { | ||
return ___EmotionJSX("table", { | ||
className: className | ||
}, /*#__PURE__*/React.createElement("tbody", null, data.map(({ | ||
}, ___EmotionJSX("tbody", null, data.map(({ | ||
key, | ||
@@ -26,7 +27,7 @@ keyColumn, | ||
valueStyle | ||
}) => /*#__PURE__*/React.createElement("tr", { | ||
}) => ___EmotionJSX("tr", { | ||
key: key | ||
}, /*#__PURE__*/React.createElement("td", { | ||
}, ___EmotionJSX("td", { | ||
style: keyStyle | ||
}, keyColumn != null ? keyColumn : key), /*#__PURE__*/React.createElement("td", { | ||
}, keyColumn != null ? keyColumn : key), ___EmotionJSX("td", { | ||
style: valueStyle ? { ...VALUE_CELL_STYLE, | ||
@@ -33,0 +34,0 @@ ...valueStyle |
import React from 'react'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
const CONTAINER_STYLE = { | ||
@@ -14,3 +15,3 @@ backgroundColor: '#000', | ||
}) { | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
style: { ...CONTAINER_STYLE, | ||
@@ -20,5 +21,5 @@ height, | ||
} | ||
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Oops! An error occured!")), /*#__PURE__*/React.createElement("code", null, error ? error.toString() : 'Unknown Error')), componentStack && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("b", null, "Stack Trace:"), /*#__PURE__*/React.createElement("code", null, componentStack.split('\n').map(row => /*#__PURE__*/React.createElement("div", { | ||
}, ___EmotionJSX("div", null, ___EmotionJSX("div", null, ___EmotionJSX("b", null, "Oops! An error occured!")), ___EmotionJSX("code", null, error ? error.toString() : 'Unknown Error')), componentStack && ___EmotionJSX("div", null, ___EmotionJSX("b", null, "Stack Trace:"), ___EmotionJSX("code", null, componentStack.split('\n').map(row => ___EmotionJSX("div", { | ||
key: row | ||
}, row))))); | ||
} |
import _pt from "prop-types"; | ||
import React, { useMemo } from 'react'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
const MESSAGE_STYLES = { | ||
@@ -37,3 +38,3 @@ maxWidth: 800 | ||
const shouldRenderBody = typeof width === 'string' || width > MIN_WIDTH_FOR_BODY; | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
className: className, | ||
@@ -43,7 +44,7 @@ id: id, | ||
title: shouldRenderBody ? undefined : BODY_STRING | ||
}, /*#__PURE__*/React.createElement("div", { | ||
}, ___EmotionJSX("div", { | ||
style: MESSAGE_STYLES | ||
}, /*#__PURE__*/React.createElement("div", { | ||
}, ___EmotionJSX("div", { | ||
style: TITLE_STYLES | ||
}, "No Results"), shouldRenderBody && /*#__PURE__*/React.createElement("div", { | ||
}, "No Results"), shouldRenderBody && ___EmotionJSX("div", { | ||
style: BODY_STYLES | ||
@@ -50,0 +51,0 @@ }, BODY_STRING))); |
@@ -14,2 +14,3 @@ import _pt from "prop-types"; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
export default function reactify(renderFn, callbacks) { | ||
@@ -54,3 +55,3 @@ class ReactifiedComponent extends React.Component { | ||
} = this.props; | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
ref: this.setContainerRef, | ||
@@ -57,0 +58,0 @@ id: id, |
@@ -14,2 +14,3 @@ import _pt from "prop-types"; | ||
import NoResultsComponent from './NoResultsComponent'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
const defaultProps = { | ||
@@ -45,3 +46,3 @@ FallbackComponent: DefaultFallbackComponent, | ||
children | ||
}) => /*#__PURE__*/React.createElement("div", { | ||
}) => ___EmotionJSX("div", { | ||
style: style | ||
@@ -90,3 +91,3 @@ }, children); | ||
if (noResultQueries) { | ||
chart = /*#__PURE__*/React.createElement(NoResultsComponent, { | ||
chart = ___EmotionJSX(NoResultsComponent, { | ||
id: id, | ||
@@ -98,3 +99,3 @@ className: className, | ||
} else { | ||
const chartWithoutWrapper = /*#__PURE__*/React.createElement(SuperChartCore, { | ||
const chartWithoutWrapper = ___EmotionJSX(SuperChartCore, { | ||
ref: this.setRef, | ||
@@ -111,3 +112,4 @@ id: id, | ||
}); | ||
chart = Wrapper ? /*#__PURE__*/React.createElement(Wrapper, { | ||
chart = Wrapper ? ___EmotionJSX(Wrapper, { | ||
width: width, | ||
@@ -119,4 +121,4 @@ height: height | ||
return disableErrorBoundary === true ? chart : /*#__PURE__*/React.createElement(ErrorBoundary, { | ||
FallbackComponent: props => /*#__PURE__*/React.createElement(FallbackComponent, _extends({ | ||
return disableErrorBoundary === true ? chart : ___EmotionJSX(ErrorBoundary, { | ||
FallbackComponent: props => ___EmotionJSX(FallbackComponent, _extends({ | ||
width: width, | ||
@@ -140,3 +142,3 @@ height: height | ||
} = this.props; | ||
return /*#__PURE__*/React.createElement(BoundingBox, null, /*#__PURE__*/React.createElement(ParentSize, { | ||
return ___EmotionJSX(BoundingBox, null, ___EmotionJSX(ParentSize, { | ||
debounceTime: debounceTime | ||
@@ -143,0 +145,0 @@ }, ({ |
@@ -12,2 +12,3 @@ import _pt from "prop-types"; | ||
import createLoadableRenderer from './createLoadableRenderer'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
@@ -66,3 +67,3 @@ function IDENTITY(x) { | ||
} = props; | ||
return /*#__PURE__*/React.createElement(Chart, this.processChartProps({ | ||
return ___EmotionJSX(Chart, this.processChartProps({ | ||
chartProps, | ||
@@ -81,6 +82,6 @@ preTransformProps, | ||
if (error) { | ||
return /*#__PURE__*/React.createElement("div", { | ||
return ___EmotionJSX("div", { | ||
className: "alert alert-warning", | ||
role: "alert" | ||
}, /*#__PURE__*/React.createElement("strong", null, "ERROR"), "\xA0", /*#__PURE__*/React.createElement("code", null, "chartType=\"", chartType, "\""), " \u2014", error.toString()); | ||
}, ___EmotionJSX("strong", null, "ERROR"), "\xA0", ___EmotionJSX("code", null, "chartType=\"", chartType, "\""), " \u2014", error.toString()); | ||
} | ||
@@ -126,5 +127,5 @@ | ||
return /*#__PURE__*/React.createElement("div", _extends({}, containerProps, { | ||
return ___EmotionJSX("div", _extends({}, containerProps, { | ||
ref: this.setRef | ||
}), /*#__PURE__*/React.createElement(Renderer, { | ||
}), ___EmotionJSX(Renderer, { | ||
preTransformProps: preTransformProps, | ||
@@ -131,0 +132,0 @@ postTransformProps: postTransformProps, |
@@ -7,2 +7,3 @@ import _pt from "prop-types"; | ||
import { FeatureFlag, isFeatureEnabled } from '../utils'; | ||
import { jsx as ___EmotionJSX } from "@emotion/react"; | ||
@@ -16,3 +17,3 @@ function isSafeMarkup(node) { | ||
}) { | ||
return /*#__PURE__*/React.createElement(ReactMarkdown, { | ||
return ___EmotionJSX(ReactMarkdown, { | ||
source: source, | ||
@@ -19,0 +20,0 @@ escapeHtml: isFeatureEnabled(FeatureFlag.ESCAPE_MARKDOWN_HTML), |
@@ -12,2 +12,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -36,3 +38,3 @@ | ||
if (overflowX || overflowY) { | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
style: { | ||
@@ -39,0 +41,0 @@ height, |
@@ -12,2 +12,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -107,6 +109,6 @@ | ||
}; | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
className: `with-legend ${className}`, | ||
style: style | ||
}, renderLegend && /*#__PURE__*/_react.default.createElement("div", { | ||
}, renderLegend && (0, _react2.jsx)("div", { | ||
className: "legend-container", | ||
@@ -117,6 +119,6 @@ style: legendStyle | ||
direction: legendDirection | ||
})), /*#__PURE__*/_react.default.createElement("div", { | ||
})), (0, _react2.jsx)("div", { | ||
className: "main-container", | ||
style: chartStyle | ||
}, /*#__PURE__*/_react.default.createElement(_responsive.ParentSize, { | ||
}, (0, _react2.jsx)(_responsive.ParentSize, { | ||
debounceTime: debounceTime | ||
@@ -123,0 +125,0 @@ }, parent => parent.width > 0 && parent.height > 0 ? // Only render when necessary |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -30,3 +32,3 @@ | ||
} = this.props; | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
className: className, | ||
@@ -33,0 +35,0 @@ style: CONTAINER_STYLE |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -32,5 +34,5 @@ | ||
} = this.props; | ||
return /*#__PURE__*/_react.default.createElement("table", { | ||
return (0, _react2.jsx)("table", { | ||
className: className | ||
}, /*#__PURE__*/_react.default.createElement("tbody", null, data.map(({ | ||
}, (0, _react2.jsx)("tbody", null, data.map(({ | ||
key, | ||
@@ -41,7 +43,7 @@ keyColumn, | ||
valueStyle | ||
}) => /*#__PURE__*/_react.default.createElement("tr", { | ||
}) => (0, _react2.jsx)("tr", { | ||
key: key | ||
}, /*#__PURE__*/_react.default.createElement("td", { | ||
}, (0, _react2.jsx)("td", { | ||
style: keyStyle | ||
}, keyColumn != null ? keyColumn : key), /*#__PURE__*/_react.default.createElement("td", { | ||
}, keyColumn != null ? keyColumn : key), (0, _react2.jsx)("td", { | ||
style: valueStyle ? { ...VALUE_CELL_STYLE, | ||
@@ -48,0 +50,0 @@ ...valueStyle |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -24,3 +26,3 @@ | ||
}) { | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
style: { ...CONTAINER_STYLE, | ||
@@ -30,5 +32,5 @@ height, | ||
} | ||
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "Oops! An error occured!")), /*#__PURE__*/_react.default.createElement("code", null, error ? error.toString() : 'Unknown Error')), componentStack && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("b", null, "Stack Trace:"), /*#__PURE__*/_react.default.createElement("code", null, componentStack.split('\n').map(row => /*#__PURE__*/_react.default.createElement("div", { | ||
}, (0, _react2.jsx)("div", null, (0, _react2.jsx)("div", null, (0, _react2.jsx)("b", null, "Oops! An error occured!")), (0, _react2.jsx)("code", null, error ? error.toString() : 'Unknown Error')), componentStack && (0, _react2.jsx)("div", null, (0, _react2.jsx)("b", null, "Stack Trace:"), (0, _react2.jsx)("code", null, componentStack.split('\n').map(row => (0, _react2.jsx)("div", { | ||
key: row | ||
}, row))))); | ||
} |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -51,3 +53,3 @@ | ||
const shouldRenderBody = typeof width === 'string' || width > MIN_WIDTH_FOR_BODY; | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
className: className, | ||
@@ -57,7 +59,7 @@ id: id, | ||
title: shouldRenderBody ? undefined : BODY_STRING | ||
}, /*#__PURE__*/_react.default.createElement("div", { | ||
}, (0, _react2.jsx)("div", { | ||
style: MESSAGE_STYLES | ||
}, /*#__PURE__*/_react.default.createElement("div", { | ||
}, (0, _react2.jsx)("div", { | ||
style: TITLE_STYLES | ||
}, "No Results"), shouldRenderBody && /*#__PURE__*/_react.default.createElement("div", { | ||
}, "No Results"), shouldRenderBody && (0, _react2.jsx)("div", { | ||
style: BODY_STYLES | ||
@@ -64,0 +66,0 @@ }, BODY_STRING))); |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -52,3 +54,3 @@ | ||
} = this.props; | ||
return /*#__PURE__*/_react.default.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
ref: this.setContainerRef, | ||
@@ -55,0 +57,0 @@ id: id, |
@@ -26,2 +26,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -62,3 +64,3 @@ | ||
children | ||
}) => /*#__PURE__*/_react.default.createElement("div", { | ||
}) => (0, _react2.jsx)("div", { | ||
style: style | ||
@@ -107,3 +109,3 @@ }, children); | ||
if (noResultQueries) { | ||
chart = /*#__PURE__*/_react.default.createElement(_NoResultsComponent.default, { | ||
chart = (0, _react2.jsx)(_NoResultsComponent.default, { | ||
id: id, | ||
@@ -115,3 +117,3 @@ className: className, | ||
} else { | ||
const chartWithoutWrapper = /*#__PURE__*/_react.default.createElement(_SuperChartCore.default, { | ||
const chartWithoutWrapper = (0, _react2.jsx)(_SuperChartCore.default, { | ||
ref: this.setRef, | ||
@@ -128,4 +130,3 @@ id: id, | ||
}); | ||
chart = Wrapper ? /*#__PURE__*/_react.default.createElement(Wrapper, { | ||
chart = Wrapper ? (0, _react2.jsx)(Wrapper, { | ||
width: width, | ||
@@ -137,4 +138,4 @@ height: height | ||
return disableErrorBoundary === true ? chart : /*#__PURE__*/_react.default.createElement(_reactErrorBoundary.default, { | ||
FallbackComponent: props => /*#__PURE__*/_react.default.createElement(FallbackComponent, _extends({ | ||
return disableErrorBoundary === true ? chart : (0, _react2.jsx)(_reactErrorBoundary.default, { | ||
FallbackComponent: props => (0, _react2.jsx)(FallbackComponent, _extends({ | ||
width: width, | ||
@@ -158,3 +159,3 @@ height: height | ||
} = this.props; | ||
return /*#__PURE__*/_react.default.createElement(BoundingBox, null, /*#__PURE__*/_react.default.createElement(_responsive.ParentSize, { | ||
return (0, _react2.jsx)(BoundingBox, null, (0, _react2.jsx)(_responsive.ParentSize, { | ||
debounceTime: debounceTime | ||
@@ -161,0 +162,0 @@ }, ({ |
@@ -20,2 +20,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -82,3 +84,3 @@ | ||
} = props; | ||
return /*#__PURE__*/React.createElement(Chart, this.processChartProps({ | ||
return (0, _react2.jsx)(Chart, this.processChartProps({ | ||
chartProps, | ||
@@ -97,6 +99,6 @@ preTransformProps, | ||
if (error) { | ||
return /*#__PURE__*/React.createElement("div", { | ||
return (0, _react2.jsx)("div", { | ||
className: "alert alert-warning", | ||
role: "alert" | ||
}, /*#__PURE__*/React.createElement("strong", null, "ERROR"), "\xA0", /*#__PURE__*/React.createElement("code", null, "chartType=\"", chartType, "\""), " \u2014", error.toString()); | ||
}, (0, _react2.jsx)("strong", null, "ERROR"), "\xA0", (0, _react2.jsx)("code", null, "chartType=\"", chartType, "\""), " \u2014", error.toString()); | ||
} | ||
@@ -142,5 +144,5 @@ | ||
return /*#__PURE__*/React.createElement("div", _extends({}, containerProps, { | ||
return (0, _react2.jsx)("div", _extends({}, containerProps, { | ||
ref: this.setRef | ||
}), /*#__PURE__*/React.createElement(Renderer, { | ||
}), (0, _react2.jsx)(Renderer, { | ||
preTransformProps: preTransformProps, | ||
@@ -147,0 +149,0 @@ postTransformProps: postTransformProps, |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -27,3 +29,3 @@ | ||
}) { | ||
return /*#__PURE__*/_react.default.createElement(_reactMarkdown.default, { | ||
return (0, _react2.jsx)(_reactMarkdown.default, { | ||
source: source, | ||
@@ -30,0 +32,0 @@ escapeHtml: (0, _utils.isFeatureEnabled)(_utils.FeatureFlag.ESCAPE_MARKDOWN_HTML), |
{ | ||
"name": "@superset-ui/core", | ||
"version": "0.17.25", | ||
"version": "0.17.26", | ||
"description": "Superset UI core", | ||
@@ -36,2 +36,3 @@ "sideEffects": false, | ||
"@emotion/core": "^10.0.28", | ||
"@emotion/react": "^11.1.5", | ||
"@emotion/styled": "^10.0.27", | ||
@@ -73,3 +74,3 @@ "@types/d3-format": "^1.3.0", | ||
}, | ||
"gitHead": "cd632f78c1a7fa4ef8e2c91cc12f86438f116470" | ||
"gitHead": "20d0c0f70e85e4ad7bab22113214cf83be2cf364" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15749
731772
36
+ Added@emotion/react@^11.1.5
+ Added@emotion/babel-plugin@11.13.5(transitive)
+ Added@emotion/cache@11.14.0(transitive)
+ Added@emotion/hash@0.9.2(transitive)
+ Added@emotion/memoize@0.9.0(transitive)
+ Added@emotion/react@11.14.0(transitive)
+ Added@emotion/serialize@1.3.3(transitive)
+ Added@emotion/sheet@1.4.0(transitive)
+ Added@emotion/unitless@0.10.0(transitive)
+ Added@emotion/use-insertion-effect-with-fallbacks@1.2.0(transitive)
+ Added@emotion/utils@1.4.2(transitive)
+ Added@emotion/weak-memoize@0.4.0(transitive)
+ Addedbabel-plugin-macros@3.1.0(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedstylis@4.2.0(transitive)