@stoplight/elements-core 9.0.10 → 9.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +5 -19
- package/index.js +5 -20
- package/index.mjs +5 -19
- package/package.json +1 -1
- package/styled.d.ts +3 -10
package/index.esm.js
CHANGED
|
@@ -54,7 +54,6 @@ import omitBy from 'lodash/omitBy.js';
|
|
|
54
54
|
import { QueryClient, useQueryClient, QueryClientProvider } from 'react-query';
|
|
55
55
|
import { StaticRouter } from 'react-router-dom/server.js';
|
|
56
56
|
import $RefParser from '@stoplight/json-schema-ref-parser';
|
|
57
|
-
import * as PropTypes from 'prop-types';
|
|
58
57
|
import isEqual from 'lodash/isEqual.js';
|
|
59
58
|
import * as ReactDOM from 'react-dom';
|
|
60
59
|
|
|
@@ -4536,25 +4535,12 @@ const doBundle = (data, baseUrl) => {
|
|
|
4536
4535
|
}
|
|
4537
4536
|
};
|
|
4538
4537
|
|
|
4539
|
-
const
|
|
4540
|
-
|
|
4541
|
-
getChildContext() {
|
|
4542
|
-
return {
|
|
4543
|
-
blueprintPortalClassName: scopeClassName,
|
|
4544
|
-
};
|
|
4545
|
-
}
|
|
4546
|
-
render() {
|
|
4547
|
-
return (React.createElement(Box, { className: "sl-elements sl-antialiased", fontFamily: "ui", fontSize: "base", color: "body", h: "full" }, this.props.children));
|
|
4548
|
-
}
|
|
4549
|
-
}
|
|
4550
|
-
Styled.childContextTypes = {
|
|
4551
|
-
blueprintPortalClassName: PropTypes.string,
|
|
4538
|
+
const Styled = ({ children }) => {
|
|
4539
|
+
return (React.createElement(Box, { className: "sl-elements sl-antialiased", fontFamily: "ui", fontSize: "base", color: "body", h: "full" }, children));
|
|
4552
4540
|
};
|
|
4553
4541
|
function withStyles(Component) {
|
|
4554
|
-
const Inner = props =>
|
|
4555
|
-
|
|
4556
|
-
React.createElement(Component, Object.assign({}, props))));
|
|
4557
|
-
};
|
|
4542
|
+
const Inner = props => (React.createElement(Styled, null,
|
|
4543
|
+
React.createElement(Component, Object.assign({}, props))));
|
|
4558
4544
|
Inner.displayName = `withStyles(${getDisplayName(Component)})`;
|
|
4559
4545
|
return Inner;
|
|
4560
4546
|
}
|
|
@@ -4604,7 +4590,7 @@ const createElementClass = (Component, propDescriptors) => {
|
|
|
4604
4590
|
}
|
|
4605
4591
|
disconnectedCallback() {
|
|
4606
4592
|
if (this._mountPoint) {
|
|
4607
|
-
ReactDOM.
|
|
4593
|
+
ReactDOM.render(null, this._mountPoint);
|
|
4608
4594
|
this.removeChild(this._mountPoint);
|
|
4609
4595
|
this._mountPoint = undefined;
|
|
4610
4596
|
}
|
package/index.js
CHANGED
|
@@ -54,7 +54,6 @@ var omitBy = require('lodash/omitBy.js');
|
|
|
54
54
|
var reactQuery = require('react-query');
|
|
55
55
|
var server_js = require('react-router-dom/server.js');
|
|
56
56
|
var $RefParser = require('@stoplight/json-schema-ref-parser');
|
|
57
|
-
var PropTypes = require('prop-types');
|
|
58
57
|
var isEqual = require('lodash/isEqual.js');
|
|
59
58
|
var ReactDOM = require('react-dom');
|
|
60
59
|
|
|
@@ -77,7 +76,6 @@ function _interopNamespaceDefault(e) {
|
|
|
77
76
|
|
|
78
77
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
79
78
|
var Sampler__namespace = /*#__PURE__*/_interopNamespaceDefault(Sampler);
|
|
80
|
-
var PropTypes__namespace = /*#__PURE__*/_interopNamespaceDefault(PropTypes);
|
|
81
79
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceDefault(ReactDOM);
|
|
82
80
|
|
|
83
81
|
const defaultResolver = (contextObject) => ({ pointer }, _, currentObject) => {
|
|
@@ -4558,25 +4556,12 @@ const doBundle = (data, baseUrl) => {
|
|
|
4558
4556
|
}
|
|
4559
4557
|
};
|
|
4560
4558
|
|
|
4561
|
-
const
|
|
4562
|
-
|
|
4563
|
-
getChildContext() {
|
|
4564
|
-
return {
|
|
4565
|
-
blueprintPortalClassName: scopeClassName,
|
|
4566
|
-
};
|
|
4567
|
-
}
|
|
4568
|
-
render() {
|
|
4569
|
-
return (React__namespace.createElement(mosaic.Box, { className: "sl-elements sl-antialiased", fontFamily: "ui", fontSize: "base", color: "body", h: "full" }, this.props.children));
|
|
4570
|
-
}
|
|
4571
|
-
}
|
|
4572
|
-
Styled.childContextTypes = {
|
|
4573
|
-
blueprintPortalClassName: PropTypes__namespace.string,
|
|
4559
|
+
const Styled = ({ children }) => {
|
|
4560
|
+
return (React__namespace.createElement(mosaic.Box, { className: "sl-elements sl-antialiased", fontFamily: "ui", fontSize: "base", color: "body", h: "full" }, children));
|
|
4574
4561
|
};
|
|
4575
4562
|
function withStyles(Component) {
|
|
4576
|
-
const Inner = props =>
|
|
4577
|
-
|
|
4578
|
-
React__namespace.createElement(Component, Object.assign({}, props))));
|
|
4579
|
-
};
|
|
4563
|
+
const Inner = props => (React__namespace.createElement(Styled, null,
|
|
4564
|
+
React__namespace.createElement(Component, Object.assign({}, props))));
|
|
4580
4565
|
Inner.displayName = `withStyles(${getDisplayName(Component)})`;
|
|
4581
4566
|
return Inner;
|
|
4582
4567
|
}
|
|
@@ -4626,7 +4611,7 @@ const createElementClass = (Component, propDescriptors) => {
|
|
|
4626
4611
|
}
|
|
4627
4612
|
disconnectedCallback() {
|
|
4628
4613
|
if (this._mountPoint) {
|
|
4629
|
-
ReactDOM__namespace.
|
|
4614
|
+
ReactDOM__namespace.render(null, this._mountPoint);
|
|
4630
4615
|
this.removeChild(this._mountPoint);
|
|
4631
4616
|
this._mountPoint = undefined;
|
|
4632
4617
|
}
|
package/index.mjs
CHANGED
|
@@ -54,7 +54,6 @@ import omitBy from 'lodash/omitBy.js';
|
|
|
54
54
|
import { QueryClient, useQueryClient, QueryClientProvider } from 'react-query';
|
|
55
55
|
import { StaticRouter } from 'react-router-dom/server.js';
|
|
56
56
|
import $RefParser from '@stoplight/json-schema-ref-parser';
|
|
57
|
-
import * as PropTypes from 'prop-types';
|
|
58
57
|
import isEqual from 'lodash/isEqual.js';
|
|
59
58
|
import * as ReactDOM from 'react-dom';
|
|
60
59
|
|
|
@@ -4536,25 +4535,12 @@ const doBundle = (data, baseUrl) => {
|
|
|
4536
4535
|
}
|
|
4537
4536
|
};
|
|
4538
4537
|
|
|
4539
|
-
const
|
|
4540
|
-
|
|
4541
|
-
getChildContext() {
|
|
4542
|
-
return {
|
|
4543
|
-
blueprintPortalClassName: scopeClassName,
|
|
4544
|
-
};
|
|
4545
|
-
}
|
|
4546
|
-
render() {
|
|
4547
|
-
return (React.createElement(Box, { className: "sl-elements sl-antialiased", fontFamily: "ui", fontSize: "base", color: "body", h: "full" }, this.props.children));
|
|
4548
|
-
}
|
|
4549
|
-
}
|
|
4550
|
-
Styled.childContextTypes = {
|
|
4551
|
-
blueprintPortalClassName: PropTypes.string,
|
|
4538
|
+
const Styled = ({ children }) => {
|
|
4539
|
+
return (React.createElement(Box, { className: "sl-elements sl-antialiased", fontFamily: "ui", fontSize: "base", color: "body", h: "full" }, children));
|
|
4552
4540
|
};
|
|
4553
4541
|
function withStyles(Component) {
|
|
4554
|
-
const Inner = props =>
|
|
4555
|
-
|
|
4556
|
-
React.createElement(Component, Object.assign({}, props))));
|
|
4557
|
-
};
|
|
4542
|
+
const Inner = props => (React.createElement(Styled, null,
|
|
4543
|
+
React.createElement(Component, Object.assign({}, props))));
|
|
4558
4544
|
Inner.displayName = `withStyles(${getDisplayName(Component)})`;
|
|
4559
4545
|
return Inner;
|
|
4560
4546
|
}
|
|
@@ -4604,7 +4590,7 @@ const createElementClass = (Component, propDescriptors) => {
|
|
|
4604
4590
|
}
|
|
4605
4591
|
disconnectedCallback() {
|
|
4606
4592
|
if (this._mountPoint) {
|
|
4607
|
-
ReactDOM.
|
|
4593
|
+
ReactDOM.render(null, this._mountPoint);
|
|
4608
4594
|
this.removeChild(this._mountPoint);
|
|
4609
4595
|
this._mountPoint = undefined;
|
|
4610
4596
|
}
|
package/package.json
CHANGED
package/styled.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import * as PropTypes from 'prop-types';
|
|
2
1
|
import * as React from 'react';
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
getChildContext(): {
|
|
8
|
-
blueprintPortalClassName: string;
|
|
9
|
-
};
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
}
|
|
2
|
+
export declare const Styled: ({ children }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}) => JSX.Element;
|
|
12
5
|
export declare function withStyles<T>(Component: React.ComponentType<T>): React.FC<T>;
|