@stoplight/elements 7.13.7 → 7.13.10
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 +12 -10
- package/index.js +12 -10
- package/index.mjs +12 -10
- package/package.json +3 -3
- package/web-components.min.js +1 -1
- package/web-components.min.js.LICENSE.txt +0 -28
package/index.esm.js
CHANGED
|
@@ -253,17 +253,19 @@ const Item = React.memo(({ item }) => {
|
|
|
253
253
|
return (React.createElement(Box, { ref: scrollRef, w: "full", my: 2, border: true, borderColor: { default: isExpanded ? 'light' : 'transparent', hover: 'light' }, bg: { default: isExpanded ? 'code' : 'transparent', hover: 'code' } },
|
|
254
254
|
React.createElement(Flex, { mx: "auto", alignItems: "center", cursor: "pointer", fontSize: "lg", p: 2, onClick: onClick, color: "current" },
|
|
255
255
|
React.createElement(Box, { w: 24, textTransform: "uppercase", textAlign: "center", fontWeight: "semibold", border: true, rounded: true, px: 2, bg: "canvas", className: cn(`sl-mr-5 sl-text-base`, `sl-text-${color}`, `sl-border-${color}`) }, item.data.method || 'UNKNOWN'),
|
|
256
|
-
React.createElement(Box, { flex: 1, fontWeight: "medium", wordBreak: "all" }, item.
|
|
256
|
+
React.createElement(Box, { flex: 1, fontWeight: "medium", wordBreak: "all" }, item.data.path),
|
|
257
257
|
isDeprecated && React.createElement(DeprecatedBadge, null)),
|
|
258
|
-
React.createElement(Collapse, { isOpen: isExpanded },
|
|
259
|
-
React.createElement(
|
|
260
|
-
|
|
261
|
-
React.createElement(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
258
|
+
React.createElement(Collapse, { isOpen: isExpanded },
|
|
259
|
+
React.createElement(Box, { flex: 1, p: 2, fontWeight: "medium", mx: "auto", fontSize: "xl" }, item.name),
|
|
260
|
+
hideTryIt ? (React.createElement(Box, { as: ParsedDocs, layoutOptions: { noHeading: true, hideTryItPanel: true }, node: item, p: 4 })) : (React.createElement(Tabs, { appearance: "line" },
|
|
261
|
+
React.createElement(TabList, null,
|
|
262
|
+
React.createElement(Tab, null, "Docs"),
|
|
263
|
+
React.createElement(Tab, null, "TryIt")),
|
|
264
|
+
React.createElement(TabPanels, null,
|
|
265
|
+
React.createElement(TabPanel, null,
|
|
266
|
+
React.createElement(ParsedDocs, { className: "sl-px-4", node: item, location: location, layoutOptions: { noHeading: true, hideTryItPanel: true } })),
|
|
267
|
+
React.createElement(TabPanel, null,
|
|
268
|
+
React.createElement(TryItWithRequestSamples, { httpOperation: item.data, tryItCredentialsPolicy: tryItCredentialsPolicy, corsProxy: corsProxy }))))))));
|
|
267
269
|
});
|
|
268
270
|
const Collapse = ({ isOpen, children }) => {
|
|
269
271
|
if (!isOpen)
|
package/index.js
CHANGED
|
@@ -286,17 +286,19 @@ const Item = React__namespace.memo(({ item }) => {
|
|
|
286
286
|
return (React__namespace.createElement(mosaic.Box, { ref: scrollRef, w: "full", my: 2, border: true, borderColor: { default: isExpanded ? 'light' : 'transparent', hover: 'light' }, bg: { default: isExpanded ? 'code' : 'transparent', hover: 'code' } },
|
|
287
287
|
React__namespace.createElement(mosaic.Flex, { mx: "auto", alignItems: "center", cursor: "pointer", fontSize: "lg", p: 2, onClick: onClick, color: "current" },
|
|
288
288
|
React__namespace.createElement(mosaic.Box, { w: 24, textTransform: "uppercase", textAlign: "center", fontWeight: "semibold", border: true, rounded: true, px: 2, bg: "canvas", className: cn__default["default"](`sl-mr-5 sl-text-base`, `sl-text-${color}`, `sl-border-${color}`) }, item.data.method || 'UNKNOWN'),
|
|
289
|
-
React__namespace.createElement(mosaic.Box, { flex: 1, fontWeight: "medium", wordBreak: "all" }, item.
|
|
289
|
+
React__namespace.createElement(mosaic.Box, { flex: 1, fontWeight: "medium", wordBreak: "all" }, item.data.path),
|
|
290
290
|
isDeprecated && React__namespace.createElement(elementsCore.DeprecatedBadge, null)),
|
|
291
|
-
React__namespace.createElement(Collapse, { isOpen: isExpanded },
|
|
292
|
-
React__namespace.createElement(mosaic.
|
|
293
|
-
|
|
294
|
-
React__namespace.createElement(mosaic.
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
291
|
+
React__namespace.createElement(Collapse, { isOpen: isExpanded },
|
|
292
|
+
React__namespace.createElement(mosaic.Box, { flex: 1, p: 2, fontWeight: "medium", mx: "auto", fontSize: "xl" }, item.name),
|
|
293
|
+
hideTryIt ? (React__namespace.createElement(mosaic.Box, { as: elementsCore.ParsedDocs, layoutOptions: { noHeading: true, hideTryItPanel: true }, node: item, p: 4 })) : (React__namespace.createElement(mosaic.Tabs, { appearance: "line" },
|
|
294
|
+
React__namespace.createElement(mosaic.TabList, null,
|
|
295
|
+
React__namespace.createElement(mosaic.Tab, null, "Docs"),
|
|
296
|
+
React__namespace.createElement(mosaic.Tab, null, "TryIt")),
|
|
297
|
+
React__namespace.createElement(mosaic.TabPanels, null,
|
|
298
|
+
React__namespace.createElement(mosaic.TabPanel, null,
|
|
299
|
+
React__namespace.createElement(elementsCore.ParsedDocs, { className: "sl-px-4", node: item, location: location, layoutOptions: { noHeading: true, hideTryItPanel: true } })),
|
|
300
|
+
React__namespace.createElement(mosaic.TabPanel, null,
|
|
301
|
+
React__namespace.createElement(elementsCore.TryItWithRequestSamples, { httpOperation: item.data, tryItCredentialsPolicy: tryItCredentialsPolicy, corsProxy: corsProxy }))))))));
|
|
300
302
|
});
|
|
301
303
|
const Collapse = ({ isOpen, children }) => {
|
|
302
304
|
if (!isOpen)
|
package/index.mjs
CHANGED
|
@@ -253,17 +253,19 @@ const Item = React.memo(({ item }) => {
|
|
|
253
253
|
return (React.createElement(Box, { ref: scrollRef, w: "full", my: 2, border: true, borderColor: { default: isExpanded ? 'light' : 'transparent', hover: 'light' }, bg: { default: isExpanded ? 'code' : 'transparent', hover: 'code' } },
|
|
254
254
|
React.createElement(Flex, { mx: "auto", alignItems: "center", cursor: "pointer", fontSize: "lg", p: 2, onClick: onClick, color: "current" },
|
|
255
255
|
React.createElement(Box, { w: 24, textTransform: "uppercase", textAlign: "center", fontWeight: "semibold", border: true, rounded: true, px: 2, bg: "canvas", className: cn(`sl-mr-5 sl-text-base`, `sl-text-${color}`, `sl-border-${color}`) }, item.data.method || 'UNKNOWN'),
|
|
256
|
-
React.createElement(Box, { flex: 1, fontWeight: "medium", wordBreak: "all" }, item.
|
|
256
|
+
React.createElement(Box, { flex: 1, fontWeight: "medium", wordBreak: "all" }, item.data.path),
|
|
257
257
|
isDeprecated && React.createElement(DeprecatedBadge, null)),
|
|
258
|
-
React.createElement(Collapse, { isOpen: isExpanded },
|
|
259
|
-
React.createElement(
|
|
260
|
-
|
|
261
|
-
React.createElement(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
258
|
+
React.createElement(Collapse, { isOpen: isExpanded },
|
|
259
|
+
React.createElement(Box, { flex: 1, p: 2, fontWeight: "medium", mx: "auto", fontSize: "xl" }, item.name),
|
|
260
|
+
hideTryIt ? (React.createElement(Box, { as: ParsedDocs, layoutOptions: { noHeading: true, hideTryItPanel: true }, node: item, p: 4 })) : (React.createElement(Tabs, { appearance: "line" },
|
|
261
|
+
React.createElement(TabList, null,
|
|
262
|
+
React.createElement(Tab, null, "Docs"),
|
|
263
|
+
React.createElement(Tab, null, "TryIt")),
|
|
264
|
+
React.createElement(TabPanels, null,
|
|
265
|
+
React.createElement(TabPanel, null,
|
|
266
|
+
React.createElement(ParsedDocs, { className: "sl-px-4", node: item, location: location, layoutOptions: { noHeading: true, hideTryItPanel: true } })),
|
|
267
|
+
React.createElement(TabPanel, null,
|
|
268
|
+
React.createElement(TryItWithRequestSamples, { httpOperation: item.data, tryItCredentialsPolicy: tryItCredentialsPolicy, corsProxy: corsProxy }))))))));
|
|
267
269
|
});
|
|
268
270
|
const Collapse = ({ isOpen, children }) => {
|
|
269
271
|
if (!isOpen)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements",
|
|
3
|
-
"version": "7.13.
|
|
3
|
+
"version": "7.13.10",
|
|
4
4
|
"description": "UI components for composing beautiful developer documentation.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"react-dom": ">=16.8"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@stoplight/elements-core": "~7.13.
|
|
29
|
+
"@stoplight/elements-core": "~7.13.9",
|
|
30
30
|
"@stoplight/http-spec": "^6.0.0",
|
|
31
31
|
"@stoplight/json": "^3.18.1",
|
|
32
|
-
"@stoplight/mosaic": "^1.44.
|
|
32
|
+
"@stoplight/mosaic": "^1.44.4",
|
|
33
33
|
"@stoplight/types": "^14.0.0",
|
|
34
34
|
"@stoplight/yaml": "^4.2.3",
|
|
35
35
|
"classnames": "^2.2.6",
|