@stoplight/elements 7.3.10 → 7.3.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 +2 -3
- package/index.js +2 -3
- package/index.mjs +2 -3
- package/package.json +3 -3
- package/styles.min.css +1 -1
- package/web-components.min.js +1 -1
package/index.esm.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { isHttpOperation, isHttpService, Logo, TableOfContents, PoweredByLink, SidebarLayout, ParsedDocs, HttpMethodColors, DeprecatedBadge, TryItWithRequestSamples, Docs, withRouter, withStyles, withPersistenceBoundary, withMosaicProvider, withQueryClientProvider, useParsedValue, useBundleRefsIntoDocument, NonIdealState, InlineRefResolverProvider } from '@stoplight/elements-core';
|
|
2
2
|
import { Flex, Heading, Box, Icon, Tabs, TabList, Tab, TabPanels, TabPanel } from '@stoplight/mosaic';
|
|
3
|
-
import {
|
|
3
|
+
import { defaults, isObject, get, last, flow } from 'lodash';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useQuery } from 'react-query';
|
|
6
6
|
import { NodeType } from '@stoplight/types';
|
|
7
7
|
import { useLocation, Redirect, Link } from 'react-router-dom';
|
|
8
|
-
import { defaults, isObject, get, last } from 'lodash';
|
|
9
8
|
import cn from 'classnames';
|
|
10
9
|
import { safeStringify } from '@stoplight/yaml';
|
|
11
10
|
import { saveAs } from 'file-saver';
|
|
@@ -514,6 +513,6 @@ const APIImpl = props => {
|
|
|
514
513
|
}
|
|
515
514
|
return (React.createElement(InlineRefResolverProvider, { document: parsedDocument }, layout === 'stacked' ? (React.createElement(APIWithStackedLayout, { serviceNode: serviceNode, hideTryIt: hideTryIt, hideExport: hideExport, exportProps: exportProps, tryItCredentialsPolicy: tryItCredentialsPolicy, tryItCorsProxy: tryItCorsProxy })) : (React.createElement(APIWithSidebarLayout, { logo: logo, serviceNode: serviceNode, hideTryIt: hideTryIt, hideSchemas: hideSchemas, hideInternal: hideInternal, hideExport: hideExport, exportProps: exportProps, tryItCredentialsPolicy: tryItCredentialsPolicy, tryItCorsProxy: tryItCorsProxy }))));
|
|
516
515
|
};
|
|
517
|
-
const API =
|
|
516
|
+
const API = flow(withRouter, withStyles, withPersistenceBoundary, withMosaicProvider, withQueryClientProvider)(APIImpl);
|
|
518
517
|
|
|
519
518
|
export { API };
|
package/index.js
CHANGED
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var elementsCore = require('@stoplight/elements-core');
|
|
6
6
|
var mosaic = require('@stoplight/mosaic');
|
|
7
|
-
var
|
|
7
|
+
var lodash = require('lodash');
|
|
8
8
|
var React = require('react');
|
|
9
9
|
var reactQuery = require('react-query');
|
|
10
10
|
var types = require('@stoplight/types');
|
|
11
11
|
var reactRouterDom = require('react-router-dom');
|
|
12
|
-
var lodash = require('lodash');
|
|
13
12
|
var cn = require('classnames');
|
|
14
13
|
var yaml = require('@stoplight/yaml');
|
|
15
14
|
var fileSaver = require('file-saver');
|
|
@@ -541,6 +540,6 @@ const APIImpl = props => {
|
|
|
541
540
|
}
|
|
542
541
|
return (React__namespace.createElement(elementsCore.InlineRefResolverProvider, { document: parsedDocument }, layout === 'stacked' ? (React__namespace.createElement(APIWithStackedLayout, { serviceNode: serviceNode, hideTryIt: hideTryIt, hideExport: hideExport, exportProps: exportProps, tryItCredentialsPolicy: tryItCredentialsPolicy, tryItCorsProxy: tryItCorsProxy })) : (React__namespace.createElement(APIWithSidebarLayout, { logo: logo, serviceNode: serviceNode, hideTryIt: hideTryIt, hideSchemas: hideSchemas, hideInternal: hideInternal, hideExport: hideExport, exportProps: exportProps, tryItCredentialsPolicy: tryItCredentialsPolicy, tryItCorsProxy: tryItCorsProxy }))));
|
|
543
542
|
};
|
|
544
|
-
const API =
|
|
543
|
+
const API = lodash.flow(elementsCore.withRouter, elementsCore.withStyles, elementsCore.withPersistenceBoundary, elementsCore.withMosaicProvider, elementsCore.withQueryClientProvider)(APIImpl);
|
|
545
544
|
|
|
546
545
|
exports.API = API;
|
package/index.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { isHttpOperation, isHttpService, Logo, TableOfContents, PoweredByLink, SidebarLayout, ParsedDocs, HttpMethodColors, DeprecatedBadge, TryItWithRequestSamples, Docs, withRouter, withStyles, withPersistenceBoundary, withMosaicProvider, withQueryClientProvider, useParsedValue, useBundleRefsIntoDocument, NonIdealState, InlineRefResolverProvider } from '@stoplight/elements-core';
|
|
2
2
|
import { Flex, Heading, Box, Icon, Tabs, TabList, Tab, TabPanels, TabPanel } from '@stoplight/mosaic';
|
|
3
|
-
import {
|
|
3
|
+
import { defaults, isObject, get, last, flow } from 'lodash';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useQuery } from 'react-query';
|
|
6
6
|
import { NodeType } from '@stoplight/types';
|
|
7
7
|
import { useLocation, Redirect, Link } from 'react-router-dom';
|
|
8
|
-
import { defaults, isObject, get, last } from 'lodash';
|
|
9
8
|
import cn from 'classnames';
|
|
10
9
|
import { safeStringify } from '@stoplight/yaml';
|
|
11
10
|
import { saveAs } from 'file-saver';
|
|
@@ -514,6 +513,6 @@ const APIImpl = props => {
|
|
|
514
513
|
}
|
|
515
514
|
return (React.createElement(InlineRefResolverProvider, { document: parsedDocument }, layout === 'stacked' ? (React.createElement(APIWithStackedLayout, { serviceNode: serviceNode, hideTryIt: hideTryIt, hideExport: hideExport, exportProps: exportProps, tryItCredentialsPolicy: tryItCredentialsPolicy, tryItCorsProxy: tryItCorsProxy })) : (React.createElement(APIWithSidebarLayout, { logo: logo, serviceNode: serviceNode, hideTryIt: hideTryIt, hideSchemas: hideSchemas, hideInternal: hideInternal, hideExport: hideExport, exportProps: exportProps, tryItCredentialsPolicy: tryItCredentialsPolicy, tryItCorsProxy: tryItCorsProxy }))));
|
|
516
515
|
};
|
|
517
|
-
const API =
|
|
516
|
+
const API = flow(withRouter, withStyles, withPersistenceBoundary, withMosaicProvider, withQueryClientProvider)(APIImpl);
|
|
518
517
|
|
|
519
518
|
export { API };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.11",
|
|
4
4
|
"description": "UI components for composing beautiful developer documentation.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "./index.js",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@fortawesome/fontawesome-svg-core": "^1.2.31",
|
|
30
30
|
"@fortawesome/free-solid-svg-icons": "^5.14.0",
|
|
31
31
|
"@fortawesome/react-fontawesome": "^0.1.11",
|
|
32
|
-
"@stoplight/elements-core": "~7.3.
|
|
32
|
+
"@stoplight/elements-core": "~7.3.10",
|
|
33
33
|
"@stoplight/http-spec": "^4.2.2",
|
|
34
34
|
"@stoplight/json": "^3.10.0",
|
|
35
|
-
"@stoplight/mosaic": "^1.
|
|
35
|
+
"@stoplight/mosaic": "^1.12.4",
|
|
36
36
|
"@stoplight/types": "^12.0.0",
|
|
37
37
|
"classnames": "^2.2.6",
|
|
38
38
|
"file-saver": "^2.0.5",
|