@stoplight/elements-dev-portal 1.17.0 → 1.18.1
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/components/NodeContent/NodeContent.d.ts +2 -1
- package/index.esm.js +3 -3
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/package.json +3 -3
- package/styles.min.css +1 -1
- package/version.d.ts +1 -1
- package/web-components.min.js +1 -1
- package/web-components.min.js.LICENSE.txt +16 -0
|
@@ -7,9 +7,10 @@ export declare type NodeContentProps = {
|
|
|
7
7
|
Link: CustomLinkComponent;
|
|
8
8
|
hideMocking?: boolean;
|
|
9
9
|
refResolver?: ReferenceResolver;
|
|
10
|
+
maxRefDepth?: number;
|
|
10
11
|
onExportRequest?: (type: 'original' | 'bundled') => void;
|
|
11
12
|
} & DocsBaseProps & DocsLayoutProps;
|
|
12
|
-
export declare const NodeContent: ({ node, Link, hideMocking, refResolver, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }: NodeContentProps) => JSX.Element;
|
|
13
|
+
export declare const NodeContent: ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }: NodeContentProps) => JSX.Element;
|
|
13
14
|
export declare const getNodeUriParts: (uri: string) => {
|
|
14
15
|
fileUri: string;
|
|
15
16
|
pointer: string;
|
package/index.esm.js
CHANGED
|
@@ -37,7 +37,7 @@ const PlatformProvider = ({ platformUrl = 'https://stoplight.io', platformAuthTo
|
|
|
37
37
|
};
|
|
38
38
|
const DevPortalProvider = withPersistenceBoundary(withQueryClientProvider(withMosaicProvider(PlatformProvider)));
|
|
39
39
|
|
|
40
|
-
const NodeContent = ({ node, Link, hideMocking, refResolver, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }) => {
|
|
40
|
+
const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }) => {
|
|
41
41
|
var _a, _b, _c, _d;
|
|
42
42
|
return (React.createElement(NodeLinkContext.Provider, { value: [node, Link] },
|
|
43
43
|
React.createElement(MarkdownComponentsProvider, { value: { a: LinkComponent } },
|
|
@@ -49,7 +49,7 @@ const NodeContent = ({ node, Link, hideMocking, refResolver, tryItCorsProxy, try
|
|
|
49
49
|
hideExport: hideExport ||
|
|
50
50
|
((_b = (_a = node.links.export_url) !== null && _a !== void 0 ? _a : node.links.export_original_file_url) !== null && _b !== void 0 ? _b : node.links.export_bundled_file_url) ===
|
|
51
51
|
undefined,
|
|
52
|
-
}, useNodeForRefResolving: true, refResolver: refResolver, tryItCorsProxy: tryItCorsProxy, exportProps: [NodeType.HttpService, NodeType.Model].includes(node.type)
|
|
52
|
+
}, useNodeForRefResolving: true, refResolver: refResolver, maxRefDepth: maxRefDepth, tryItCorsProxy: tryItCorsProxy, exportProps: [NodeType.HttpService, NodeType.Model].includes(node.type)
|
|
53
53
|
? {
|
|
54
54
|
original: onExportRequest
|
|
55
55
|
? { onPress: () => onExportRequest('original') }
|
|
@@ -249,7 +249,7 @@ const UpgradeToStarter = () => (React__default.createElement(Flex, { as: "a", hr
|
|
|
249
249
|
React__default.createElement(Icon, { icon: ['fas', 'exclamation-triangle'], size: "4x" }),
|
|
250
250
|
React__default.createElement(Box, { pt: 3 }, "Please upgrade your Stoplight Workspace to the Starter Plan to use Elements Dev Portal in production.")));
|
|
251
251
|
|
|
252
|
-
const appVersion = '1.
|
|
252
|
+
const appVersion = '1.18.1';
|
|
253
253
|
|
|
254
254
|
class ResponseError extends Error {
|
|
255
255
|
constructor(message, responseCode) {
|
package/index.js
CHANGED
|
@@ -64,7 +64,7 @@ const PlatformProvider = ({ platformUrl = 'https://stoplight.io', platformAuthTo
|
|
|
64
64
|
};
|
|
65
65
|
const DevPortalProvider = elementsCore.withPersistenceBoundary(elementsCore.withQueryClientProvider(elementsCore.withMosaicProvider(PlatformProvider)));
|
|
66
66
|
|
|
67
|
-
const NodeContent = ({ node, Link, hideMocking, refResolver, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }) => {
|
|
67
|
+
const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }) => {
|
|
68
68
|
var _a, _b, _c, _d;
|
|
69
69
|
return (React__namespace.createElement(NodeLinkContext.Provider, { value: [node, Link] },
|
|
70
70
|
React__namespace.createElement(elementsCore.MarkdownComponentsProvider, { value: { a: LinkComponent } },
|
|
@@ -76,7 +76,7 @@ const NodeContent = ({ node, Link, hideMocking, refResolver, tryItCorsProxy, try
|
|
|
76
76
|
hideExport: hideExport ||
|
|
77
77
|
((_b = (_a = node.links.export_url) !== null && _a !== void 0 ? _a : node.links.export_original_file_url) !== null && _b !== void 0 ? _b : node.links.export_bundled_file_url) ===
|
|
78
78
|
undefined,
|
|
79
|
-
}, useNodeForRefResolving: true, refResolver: refResolver, tryItCorsProxy: tryItCorsProxy, exportProps: [types.NodeType.HttpService, types.NodeType.Model].includes(node.type)
|
|
79
|
+
}, useNodeForRefResolving: true, refResolver: refResolver, maxRefDepth: maxRefDepth, tryItCorsProxy: tryItCorsProxy, exportProps: [types.NodeType.HttpService, types.NodeType.Model].includes(node.type)
|
|
80
80
|
? {
|
|
81
81
|
original: onExportRequest
|
|
82
82
|
? { onPress: () => onExportRequest('original') }
|
|
@@ -276,7 +276,7 @@ const UpgradeToStarter = () => (React__default["default"].createElement(mosaic.F
|
|
|
276
276
|
React__default["default"].createElement(mosaic.Icon, { icon: ['fas', 'exclamation-triangle'], size: "4x" }),
|
|
277
277
|
React__default["default"].createElement(mosaic.Box, { pt: 3 }, "Please upgrade your Stoplight Workspace to the Starter Plan to use Elements Dev Portal in production.")));
|
|
278
278
|
|
|
279
|
-
const appVersion = '1.
|
|
279
|
+
const appVersion = '1.18.1';
|
|
280
280
|
|
|
281
281
|
class ResponseError extends Error {
|
|
282
282
|
constructor(message, responseCode) {
|
package/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ const PlatformProvider = ({ platformUrl = 'https://stoplight.io', platformAuthTo
|
|
|
37
37
|
};
|
|
38
38
|
const DevPortalProvider = withPersistenceBoundary(withQueryClientProvider(withMosaicProvider(PlatformProvider)));
|
|
39
39
|
|
|
40
|
-
const NodeContent = ({ node, Link, hideMocking, refResolver, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }) => {
|
|
40
|
+
const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }) => {
|
|
41
41
|
var _a, _b, _c, _d;
|
|
42
42
|
return (React.createElement(NodeLinkContext.Provider, { value: [node, Link] },
|
|
43
43
|
React.createElement(MarkdownComponentsProvider, { value: { a: LinkComponent } },
|
|
@@ -49,7 +49,7 @@ const NodeContent = ({ node, Link, hideMocking, refResolver, tryItCorsProxy, try
|
|
|
49
49
|
hideExport: hideExport ||
|
|
50
50
|
((_b = (_a = node.links.export_url) !== null && _a !== void 0 ? _a : node.links.export_original_file_url) !== null && _b !== void 0 ? _b : node.links.export_bundled_file_url) ===
|
|
51
51
|
undefined,
|
|
52
|
-
}, useNodeForRefResolving: true, refResolver: refResolver, tryItCorsProxy: tryItCorsProxy, exportProps: [NodeType.HttpService, NodeType.Model].includes(node.type)
|
|
52
|
+
}, useNodeForRefResolving: true, refResolver: refResolver, maxRefDepth: maxRefDepth, tryItCorsProxy: tryItCorsProxy, exportProps: [NodeType.HttpService, NodeType.Model].includes(node.type)
|
|
53
53
|
? {
|
|
54
54
|
original: onExportRequest
|
|
55
55
|
? { onPress: () => onExportRequest('original') }
|
|
@@ -249,7 +249,7 @@ const UpgradeToStarter = () => (React__default.createElement(Flex, { as: "a", hr
|
|
|
249
249
|
React__default.createElement(Icon, { icon: ['fas', 'exclamation-triangle'], size: "4x" }),
|
|
250
250
|
React__default.createElement(Box, { pt: 3 }, "Please upgrade your Stoplight Workspace to the Starter Plan to use Elements Dev Portal in production.")));
|
|
251
251
|
|
|
252
|
-
const appVersion = '1.
|
|
252
|
+
const appVersion = '1.18.1';
|
|
253
253
|
|
|
254
254
|
class ResponseError extends Error {
|
|
255
255
|
constructor(message, responseCode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements-dev-portal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"description": "UI components for composing beautiful developer documentation.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"react-dom": ">=16.8"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@stoplight/elements-core": "~7.
|
|
29
|
+
"@stoplight/elements-core": "~7.15.1",
|
|
30
30
|
"@stoplight/markdown-viewer": "^5.5.0",
|
|
31
|
-
"@stoplight/mosaic": "^1.
|
|
31
|
+
"@stoplight/mosaic": "^1.46.1",
|
|
32
32
|
"@stoplight/path": "^1.3.2",
|
|
33
33
|
"@stoplight/types": "^14.0.0",
|
|
34
34
|
"classnames": "^2.2.6",
|