@stoplight/elements-dev-portal 2.3.4 → 2.4.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.
@@ -1,7 +1,7 @@
1
1
  import { CustomLinkComponent, DocsProps, ReferenceResolver } from '@stoplight/elements-core';
2
2
  import { Node } from '../../types';
3
3
  declare type DocsBaseProps = Pick<DocsProps, 'tryItCorsProxy' | 'tryItCredentialsPolicy' | 'nodeHasChanged' | 'nodeUnsupported'>;
4
- declare type DocsLayoutProps = Pick<Required<DocsProps>['layoutOptions'], 'compact' | 'hideTryIt' | 'hideTryItPanel' | 'hideExport' | 'hideSecurityInfo' | 'hideServerInfo'>;
4
+ declare type DocsLayoutProps = Pick<Required<DocsProps>['layoutOptions'], 'compact' | 'hideTryIt' | 'hideTryItPanel' | 'hideSamples' | 'hideExport' | 'hideSecurityInfo' | 'hideServerInfo'>;
5
5
  export declare type NodeContentProps = {
6
6
  node: Node;
7
7
  Link: CustomLinkComponent;
@@ -10,7 +10,7 @@ export declare type NodeContentProps = {
10
10
  maxRefDepth?: number;
11
11
  onExportRequest?: (type: 'original' | 'bundled') => void;
12
12
  } & DocsBaseProps & DocsLayoutProps;
13
- export declare const NodeContent: ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }: NodeContentProps) => JSX.Element;
13
+ export declare const NodeContent: ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideSamples, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }: NodeContentProps) => JSX.Element;
14
14
  export declare const getNodeUriParts: (uri: string) => {
15
15
  fileUri: string;
16
16
  pointer: string;
package/index.esm.js CHANGED
@@ -81,7 +81,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
81
81
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
82
82
  };
83
83
 
84
- const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }) => {
84
+ const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideSamples, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }) => {
85
85
  var _a, _b, _c, _d;
86
86
  return (React.createElement(NodeLinkContext.Provider, { value: [node, Link] },
87
87
  React.createElement(MarkdownComponentsProvider, { value: {
@@ -104,6 +104,7 @@ const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItC
104
104
  compact,
105
105
  hideTryIt: hideTryIt,
106
106
  hideTryItPanel: hideTryItPanel,
107
+ hideSamples,
107
108
  hideSecurityInfo: hideSecurityInfo,
108
109
  hideServerInfo: hideServerInfo,
109
110
  hideExport: hideExport ||
@@ -272,7 +273,7 @@ const UpgradeToStarter = () => (React__default.createElement(Flex, { as: "a", hr
272
273
  React__default.createElement(Icon, { icon: ['fas', 'exclamation-triangle'], size: "4x" }),
273
274
  React__default.createElement(Box, { pt: 3 }, "Please upgrade your Stoplight Workspace to the Starter Plan to use Elements Dev Portal in production.")));
274
275
 
275
- const appVersion = '2.3.4';
276
+ const appVersion = '2.4.1';
276
277
 
277
278
  class ResponseError extends Error {
278
279
  constructor(message, responseCode) {
package/index.js CHANGED
@@ -101,7 +101,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
101
101
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
102
102
  };
103
103
 
104
- const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }) => {
104
+ const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideSamples, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }) => {
105
105
  var _a, _b, _c, _d;
106
106
  return (React__namespace.createElement(NodeLinkContext.Provider, { value: [node, Link] },
107
107
  React__namespace.createElement(elementsCore.MarkdownComponentsProvider, { value: {
@@ -124,6 +124,7 @@ const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItC
124
124
  compact,
125
125
  hideTryIt: hideTryIt,
126
126
  hideTryItPanel: hideTryItPanel,
127
+ hideSamples,
127
128
  hideSecurityInfo: hideSecurityInfo,
128
129
  hideServerInfo: hideServerInfo,
129
130
  hideExport: hideExport ||
@@ -292,7 +293,7 @@ const UpgradeToStarter = () => (React.createElement(mosaic.Flex, { as: "a", href
292
293
  React.createElement(mosaic.Icon, { icon: ['fas', 'exclamation-triangle'], size: "4x" }),
293
294
  React.createElement(mosaic.Box, { pt: 3 }, "Please upgrade your Stoplight Workspace to the Starter Plan to use Elements Dev Portal in production.")));
294
295
 
295
- const appVersion = '2.3.4';
296
+ const appVersion = '2.4.1';
296
297
 
297
298
  class ResponseError extends Error {
298
299
  constructor(message, responseCode) {
package/index.mjs CHANGED
@@ -81,7 +81,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
81
81
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
82
82
  };
83
83
 
84
- const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }) => {
84
+ const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideSamples, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }) => {
85
85
  var _a, _b, _c, _d;
86
86
  return (React.createElement(NodeLinkContext.Provider, { value: [node, Link] },
87
87
  React.createElement(MarkdownComponentsProvider, { value: {
@@ -104,6 +104,7 @@ const NodeContent = ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItC
104
104
  compact,
105
105
  hideTryIt: hideTryIt,
106
106
  hideTryItPanel: hideTryItPanel,
107
+ hideSamples,
107
108
  hideSecurityInfo: hideSecurityInfo,
108
109
  hideServerInfo: hideServerInfo,
109
110
  hideExport: hideExport ||
@@ -272,7 +273,7 @@ const UpgradeToStarter = () => (React__default.createElement(Flex, { as: "a", hr
272
273
  React__default.createElement(Icon, { icon: ['fas', 'exclamation-triangle'], size: "4x" }),
273
274
  React__default.createElement(Box, { pt: 3 }, "Please upgrade your Stoplight Workspace to the Starter Plan to use Elements Dev Portal in production.")));
274
275
 
275
- const appVersion = '2.3.4';
276
+ const appVersion = '2.4.1';
276
277
 
277
278
  class ResponseError extends Error {
278
279
  constructor(message, responseCode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/elements-dev-portal",
3
- "version": "2.3.4",
3
+ "version": "2.4.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": "~8.3.4",
30
- "@stoplight/markdown-viewer": "^5.7.0",
31
- "@stoplight/mosaic": "^1.53.1",
29
+ "@stoplight/elements-core": "~8.4.1",
30
+ "@stoplight/markdown-viewer": "^5.7.1",
31
+ "@stoplight/mosaic": "^1.53.3",
32
32
  "@stoplight/path": "^1.3.2",
33
33
  "@stoplight/types": "^14.0.0",
34
34
  "classnames": "^2.2.6",