@redocly/reference-docs 2.28.0 → 2.29.0
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/bin/cli/commands/redocly-docs-cli.min.js +3 -3
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +1 -1
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +132 -132
- package/lib/redoc-lib/src/common-elements/fields-layout.js +1 -1
- package/lib/redoc-lib/src/services/OpenAPIParser.js +1 -1
- package/lib/redoc-lib/src/theme.d.ts +1 -0
- package/lib/redoc-lib/src/theme.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/fields-layout.js +1 -1
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +1 -1
- package/lib-esm/redoc-lib/src/theme.d.ts +1 -0
- package/lib-esm/redoc-lib/src/theme.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertiesTable=exports.PropertiesTableWrap=exports.InnerPropertiesWrap=exports.PropertyBullet=exports.PropertyDetailsCell=exports.PropertyNameCell=exports.PropertyCellWithInner=exports.PropertyCell=exports.PropertiesTableCaption=void 0;var tslib_1=require("tslib"),styled_components_1=(0,tslib_1.__importStar)(require("../styled-components")),mixins_1=require("./mixins");exports.PropertiesTableCaption=styled_components_1.default.caption(templateObject_1||(templateObject_1=(0,tslib_1.__makeTemplateObject)(["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"],["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"])),(function(n){return n.theme.colors.text.secondary}));var templateObject_1,templateObject_2,templateObject_3,templateObject_4,templateObject_5,templateObject_6,templateObject_7,templateObject_8,templateObject_9,templateObject_10,templateObject_11,repeatingGradient=(0,styled_components_1.css)(templateObject_2||(templateObject_2=(0,tslib_1.__makeTemplateObject)(["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"],["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"])),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}));exports.PropertyCell=styled_components_1.default.td(templateObject_3||(templateObject_3=(0,tslib_1.__makeTemplateObject)(["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"],["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"])),repeatingGradient,(0,styled_components_1.mediaCSS)({display:(_a={},_a[styled_components_1.ZERO_BREAKPOINT]="block",_a.small="table-cell",_a),overflow:(_b={},_b[styled_components_1.ZERO_BREAKPOINT]="hidden",_b.small="initial",_b),padding:(_c={},_c[styled_components_1.ZERO_BREAKPOINT]="0 20px",_c.small="10px",_c),marginBottom:(_d={},_d[styled_components_1.ZERO_BREAKPOINT]="2px",_d.small=0,_d)}),repeatingGradient,repeatingGradient,(0,styled_components_1.mediaCSS)({backgroundSize:(_e={},_e[styled_components_1.ZERO_BREAKPOINT]="0.9px 100%",_e.small="0.9px 22px",_e)}),repeatingGradient,(0,styled_components_1.mediaCSS)({backgroundSize:(_f={},_f[styled_components_1.ZERO_BREAKPOINT]="0.9px 100%",_f.small="0.9px 20px",_f),backgroundPosition:(_g={},_g[styled_components_1.ZERO_BREAKPOINT]="0 20px",_g.small="0 0",_g)})),exports.PropertyCellWithInner=(0,styled_components_1.default)(exports.PropertyCell)(templateObject_4||(templateObject_4=(0,tslib_1.__makeTemplateObject)(["\n padding: 0;\n"],["\n padding: 0;\n"]))),exports.PropertyNameCell=(0,styled_components_1.default)(exports.PropertyCell)(templateObject_6||(templateObject_6=(0,tslib_1.__makeTemplateObject)(["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"],["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"])),(function(n){var e=n.theme;return(0,styled_components_1.mediaCSS)({fontFamily:e.typography.fieldName.fontFamily})}),mixins_1.deprecatedCss,(function(n){return"patternProperties"===n.kind&&(0,styled_components_1.css)(templateObject_5||(templateObject_5=(0,tslib_1.__makeTemplateObject)(["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "],["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "])))}),(0,styled_components_1.extensionsHook)("PropertyNameCell")),exports.PropertyDetailsCell=styled_components_1.default.td(templateObject_7||(templateObject_7=(0,tslib_1.__makeTemplateObject)(["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"],["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"])),(function(n){var e,t,r,o=n.theme;return(0,styled_components_1.mediaCSS)({borderBottom:(e={},e[styled_components_1.ZERO_BREAKPOINT]="none",e.small="1px solid "+o.colors.border.light,e),borderLeft:(t={},t[styled_components_1.ZERO_BREAKPOINT]="1px solid "+o.schema.linesColor,t.small="none",t),padding:(r={},r[styled_components_1.ZERO_BREAKPOINT]="0 20px",r.small="10px 0",r),width:o.schema.defaultDetailsWidth,minWidth:"200px"})}),(0,styled_components_1.extensionsHook)("PropertyDetailsCell")),exports.PropertyBullet=styled_components_1.default.span(templateObject_8||(templateObject_8=(0,tslib_1.__makeTemplateObject)(["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"],["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"])),(function(n){var e=n.theme;return(0,styled_components_1.mediaCSS)({color:e.schema.linesColor,fontFamily:e.typography.code.fontFamily})}),(function(n){return n.theme.schema.linesColor}),(function(n){var e,t,r=n.theme;return(0,styled_components_1.mediaCSS)({width:r.schema.defaultDetailsWidth,borderLeft:(e={},e[styled_components_1.ZERO_BREAKPOINT]="1px dashed "+r.schema.linesColor,e.small="none",e),padding:(t={},t[styled_components_1.ZERO_BREAKPOINT]="5px 10px",t.small="10px",t)})}),(0,styled_components_1.extensionsHook)("PropertyDetailsCell")),exports.InnerPropertiesWrap=styled_components_1.default.div(templateObject_9||(templateObject_9=(0,tslib_1.__makeTemplateObject)(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(n){return n.theme.schema.nestingSpacing})),exports.PropertiesTableWrap=styled_components_1.default.div(templateObject_10||(templateObject_10=(0,tslib_1.__makeTemplateObject)(["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"],["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"]))),exports.PropertiesTable=styled_components_1.default.table(templateObject_11||(templateObject_11=(0,tslib_1.__makeTemplateObject)(["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: #ffffff;\n }\n"],["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: #ffffff;\n }\n"])),(function(n){return n.theme.shape.borderRadius}),(function(n){var e,t=n.theme;return(0,styled_components_1.mediaCSS)({fontSize:t.typography.fontSize,display:(e={},e[styled_components_1.ZERO_BREAKPOINT]="block",e.small="table",e)})}),(0,styled_components_1.mediaCSS)({display:(_h={},_h[styled_components_1.ZERO_BREAKPOINT]="block",_h.small="table-row",_h),marginBottom:(_j={},_j[styled_components_1.ZERO_BREAKPOINT]="2px",_j.small=0,_j),borderSpacing:(_k={},_k[styled_components_1.ZERO_BREAKPOINT]=0,_k.small="0 2px",_k)}),(function(n){return"\n @media screen and (max-width: "+n.theme.breakpoints[0]+") and (-ms-high-contrast:none) {\n td {\n float: left;\n width: 100%;\n }\n }\n "}),exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,(function(n){return n.theme.schema.nestingSpacing}),(function(n){return n.theme.schema.nestingSpacing}),(function(n){return n.theme.schema.nestedBackground}),(function(n){return n.theme.components.panels.borderRadius}),exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap);
|
|
1
|
+
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertiesTable=exports.PropertiesTableWrap=exports.InnerPropertiesWrap=exports.PropertyBullet=exports.PropertyDetailsCell=exports.PropertyNameCell=exports.PropertyCellWithInner=exports.PropertyCell=exports.PropertiesTableCaption=void 0;var tslib_1=require("tslib"),styled_components_1=(0,tslib_1.__importStar)(require("../styled-components")),mixins_1=require("./mixins");exports.PropertiesTableCaption=styled_components_1.default.caption(templateObject_1||(templateObject_1=(0,tslib_1.__makeTemplateObject)(["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"],["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"])),(function(n){return n.theme.colors.text.secondary}));var templateObject_1,templateObject_2,templateObject_3,templateObject_4,templateObject_5,templateObject_6,templateObject_7,templateObject_8,templateObject_9,templateObject_10,templateObject_11,repeatingGradient=(0,styled_components_1.css)(templateObject_2||(templateObject_2=(0,tslib_1.__makeTemplateObject)(["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"],["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"])),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}));exports.PropertyCell=styled_components_1.default.td(templateObject_3||(templateObject_3=(0,tslib_1.__makeTemplateObject)(["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"],["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"])),repeatingGradient,(0,styled_components_1.mediaCSS)({display:(_a={},_a[styled_components_1.ZERO_BREAKPOINT]="block",_a.small="table-cell",_a),overflow:(_b={},_b[styled_components_1.ZERO_BREAKPOINT]="hidden",_b.small="initial",_b),padding:(_c={},_c[styled_components_1.ZERO_BREAKPOINT]="0 20px",_c.small="10px",_c),marginBottom:(_d={},_d[styled_components_1.ZERO_BREAKPOINT]="2px",_d.small=0,_d)}),repeatingGradient,repeatingGradient,(0,styled_components_1.mediaCSS)({backgroundSize:(_e={},_e[styled_components_1.ZERO_BREAKPOINT]="0.9px 100%",_e.small="0.9px 22px",_e)}),repeatingGradient,(0,styled_components_1.mediaCSS)({backgroundSize:(_f={},_f[styled_components_1.ZERO_BREAKPOINT]="0.9px 100%",_f.small="0.9px 20px",_f),backgroundPosition:(_g={},_g[styled_components_1.ZERO_BREAKPOINT]="0 20px",_g.small="0 0",_g)})),exports.PropertyCellWithInner=(0,styled_components_1.default)(exports.PropertyCell)(templateObject_4||(templateObject_4=(0,tslib_1.__makeTemplateObject)(["\n padding: 0;\n"],["\n padding: 0;\n"]))),exports.PropertyNameCell=(0,styled_components_1.default)(exports.PropertyCell)(templateObject_6||(templateObject_6=(0,tslib_1.__makeTemplateObject)(["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"],["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"])),(function(n){var e=n.theme;return(0,styled_components_1.mediaCSS)({fontFamily:e.typography.fieldName.fontFamily})}),mixins_1.deprecatedCss,(function(n){return"patternProperties"===n.kind&&(0,styled_components_1.css)(templateObject_5||(templateObject_5=(0,tslib_1.__makeTemplateObject)(["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "],["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "])))}),(0,styled_components_1.extensionsHook)("PropertyNameCell")),exports.PropertyDetailsCell=styled_components_1.default.td(templateObject_7||(templateObject_7=(0,tslib_1.__makeTemplateObject)(["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"],["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"])),(function(n){var e,t,r,o=n.theme;return(0,styled_components_1.mediaCSS)({borderBottom:(e={},e[styled_components_1.ZERO_BREAKPOINT]="none",e.small="1px solid "+o.colors.border.light,e),borderLeft:(t={},t[styled_components_1.ZERO_BREAKPOINT]="1px solid "+o.schema.linesColor,t.small="none",t),padding:(r={},r[styled_components_1.ZERO_BREAKPOINT]="0 20px",r.small="10px 0",r),width:o.schema.defaultDetailsWidth,minWidth:"200px"})}),(0,styled_components_1.extensionsHook)("PropertyDetailsCell")),exports.PropertyBullet=styled_components_1.default.span(templateObject_8||(templateObject_8=(0,tslib_1.__makeTemplateObject)(["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"],["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"])),(function(n){var e=n.theme;return(0,styled_components_1.mediaCSS)({color:e.schema.linesColor,fontFamily:e.typography.code.fontFamily})}),(function(n){return n.theme.schema.linesColor}),(function(n){var e,t,r=n.theme;return(0,styled_components_1.mediaCSS)({width:r.schema.defaultDetailsWidth,borderLeft:(e={},e[styled_components_1.ZERO_BREAKPOINT]="1px dashed "+r.schema.linesColor,e.small="none",e),padding:(t={},t[styled_components_1.ZERO_BREAKPOINT]="5px 10px",t.small="10px",t)})}),(0,styled_components_1.extensionsHook)("PropertyDetailsCell")),exports.InnerPropertiesWrap=styled_components_1.default.div(templateObject_9||(templateObject_9=(0,tslib_1.__makeTemplateObject)(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(n){return n.theme.schema.nestingSpacing})),exports.PropertiesTableWrap=styled_components_1.default.div(templateObject_10||(templateObject_10=(0,tslib_1.__makeTemplateObject)(["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"],["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"]))),exports.PropertiesTable=styled_components_1.default.table(templateObject_11||(templateObject_11=(0,tslib_1.__makeTemplateObject)(["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: ",";\n }\n"],["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: ",";\n }\n"])),(function(n){return n.theme.shape.borderRadius}),(function(n){var e,t=n.theme;return(0,styled_components_1.mediaCSS)({fontSize:t.typography.fontSize,display:(e={},e[styled_components_1.ZERO_BREAKPOINT]="block",e.small="table",e)})}),(0,styled_components_1.mediaCSS)({display:(_h={},_h[styled_components_1.ZERO_BREAKPOINT]="block",_h.small="table-row",_h),marginBottom:(_j={},_j[styled_components_1.ZERO_BREAKPOINT]="2px",_j.small=0,_j),borderSpacing:(_k={},_k[styled_components_1.ZERO_BREAKPOINT]=0,_k.small="0 2px",_k)}),(function(n){return"\n @media screen and (max-width: "+n.theme.breakpoints[0]+") and (-ms-high-contrast:none) {\n td {\n float: left;\n width: 100%;\n }\n }\n "}),exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,(function(n){return n.theme.schema.nestingSpacing}),(function(n){return n.theme.schema.nestingSpacing}),(function(n){return n.theme.schema.nestedBackground}),(function(n){return n.theme.components.panels.borderRadius}),exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,exports.InnerPropertiesWrap,(function(n){return n.theme.schema.nestedAlternativeBackground}));
|
|
2
2
|
//# sourceMappingURL=fields-layout.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OpenAPIParser=exports.concatRefStacks=exports.pushRef=void 0;var tslib_1=require("tslib"),utils_1=require("../utils/"),JsonPointer_1=require("../utils/JsonPointer"),RedocNormalizedOptions_1=require("./RedocNormalizedOptions");function pushRef(e,r){return r&&e[e.length-1]!==r?(0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],e,!0),[r],!1):e}function concatRefStacks(e,r){return r?e.concat(r):e}exports.pushRef=pushRef,exports.concatRefStacks=concatRefStacks;var OpenAPIParser=function(){function e(e,r,i){var t=this;void 0===i&&(i=new RedocNormalizedOptions_1.RedocNormalizedOptions({})),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var r;if(t.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{r=JsonPointer_1.JsonPointer.get(t.definition,e)}catch(e){}return r||{}}}}),this.validate(e),this.preprocess(e),this.definition=e,this.allowMergeRefs=e.openapi.startsWith("3.1");var n=utils_1.IS_BROWSER?window.location.href:"";"string"==typeof r&&(this.definitionUrl=new URL(r,n).href)}return Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}}),Object.defineProperty(e.prototype,"preprocess",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.info&&this.options.hideInfoDescription&&(e.info.description="")}}),Object.defineProperty(e.prototype,"isRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}}),Object.defineProperty(e.prototype,"deref",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1);var t=null==e?void 0:e["x-refsStack"];if(r=concatRefStacks(r,t),this.isRef(e)){var n=(0,utils_1.getDefinitionName)(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{resolved:{type:"object",title:n},refsStack:r};var s=this.byRef(e.$ref);if(!s)throw new Error('Failed to resolve $ref "'+e.$ref+'"');var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OpenAPIParser=exports.concatRefStacks=exports.pushRef=void 0;var tslib_1=require("tslib"),utils_1=require("../utils/"),JsonPointer_1=require("../utils/JsonPointer"),RedocNormalizedOptions_1=require("./RedocNormalizedOptions");function pushRef(e,r){return r&&e[e.length-1]!==r?(0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],e,!0),[r],!1):e}function concatRefStacks(e,r){return r?e.concat(r):e}exports.pushRef=pushRef,exports.concatRefStacks=concatRefStacks;var OpenAPIParser=function(){function e(e,r,i){var t=this;void 0===i&&(i=new RedocNormalizedOptions_1.RedocNormalizedOptions({})),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var r;if(t.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{r=JsonPointer_1.JsonPointer.get(t.definition,e)}catch(e){}return r||{}}}}),this.validate(e),this.preprocess(e),this.definition=e,this.allowMergeRefs=e.openapi.startsWith("3.1");var n=utils_1.IS_BROWSER?window.location.href:"";"string"==typeof r&&(this.definitionUrl=new URL(r,n).href)}return Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}}),Object.defineProperty(e.prototype,"preprocess",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.info&&this.options.hideInfoDescription&&(e.info.description="")}}),Object.defineProperty(e.prototype,"isRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}}),Object.defineProperty(e.prototype,"deref",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1);var t=null==e?void 0:e["x-refsStack"];if(r=concatRefStacks(r,t),this.isRef(e)){var n=(0,utils_1.getDefinitionName)(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{resolved:{type:"object",title:n},refsStack:r};var s=this.byRef(e.$ref);if(!s)throw new Error('Failed to resolve $ref "'+e.$ref+'"');var a=r;if(r.includes(e.$ref))s=Object.assign({},s,{"x-circular-ref":!0});else if(this.isRef(s)){var o=this.deref(s,r,i);a=o.refsStack,s=o.resolved}return a=pushRef(r,e.$ref),{resolved:s=this.allowMergeRefs?this.mergeRefs(e,s,i):s,refsStack:a}}return{resolved:e,refsStack:concatRefStacks(r,t)}}}),Object.defineProperty(e.prototype,"mergeRefs",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){e.$ref;var t=(0,tslib_1.__rest)(e,["$ref"]),n=Object.keys(t);if(0===n.length)return r;if(i&&n.some((function(e){return!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)}))){var s=t;return{allOf:[{description:s.description,title:s.title,readOnly:s.readOnly,writeOnly:s.writeOnly},r,(0,tslib_1.__rest)(s,["description","title","readOnly","writeOnly"])]}}return(0,tslib_1.__assign)((0,tslib_1.__assign)({},r),t)}}),Object.defineProperty(e.prototype,"mergeAllOf",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){var t,n=this;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e)).allOf)return e;var s=(0,tslib_1.__assign)((0,tslib_1.__assign)({},e),{"x-parentRefs":[],allOf:void 0,title:e.title||(0,utils_1.getDefinitionName)(r)});void 0!==s.properties&&"object"==typeof s.properties&&(s.properties=(0,tslib_1.__assign)({},s.properties)),void 0!==s.items&&"object"==typeof s.items&&(s.items=(0,tslib_1.__assign)({},s.items));for(var a=e.allOf.map((function(e){var r,t=n.deref(e,i,!0),a=t.resolved,o=t.refsStack,l=e.$ref||void 0,f=n.mergeAllOf(a,l,o);if(!f["x-circular-ref"]||!f.allOf)return l&&(null===(r=s["x-parentRefs"])||void 0===r||r.push.apply(r,(0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],f["x-parentRefs"]||[],!1),[l],!1))),{$ref:l,refsStack:pushRef(o,l),schema:f}})).filter((function(e){return void 0!==e})),o=0,l=a;o<l.length;o++){var f=l[o],p=f.schema,c=f.refsStack,u=p.type,d=p.enum,b=p.properties,_=p.items,y=p.required,v=p.title,O=p.description,m=p.readOnly,h=p.writeOnly,g=p.oneOf,w=p.anyOf,R=p["x-circular-ref"],A=(0,tslib_1.__rest)(p,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(s.type!==u&&void 0!==s.type&&void 0!==u&&console.warn('Incompatible types in allOf at "'+r+'": "'+s.type+'" and "'+u+'"'),void 0!==u&&(Array.isArray(u)&&Array.isArray(s.type)?s.type=(0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],u,!0),s.type,!0):s.type=u),void 0!==d&&(Array.isArray(d)&&Array.isArray(s.enum)?s.enum=Array.from(new Set((0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],d,!0),s.enum,!0))):s.enum=d),void 0!==b&&"object"==typeof b)for(var P in s.properties=s.properties||{},b){var x=concatRefStacks(c,null===(t=b[P])||void 0===t?void 0:t["x-refsStack"]);if(s.properties[P]){if(!R){var j=this.mergeAllOf({allOf:[s.properties[P],b[P]],"x-refsStack":x},r+"/properties/"+P,x);s.properties[P]=j}}else s.properties[P]=(0,tslib_1.__assign)((0,tslib_1.__assign)({},b[P]),{"x-refsStack":x})}if(void 0!==_&&!R){var S="boolean"==typeof s.items?{}:Object.assign({},s.items),k="boolean"==typeof p.items?{}:Object.assign({},p.items);s.items=this.mergeAllOf({allOf:[S,k]},r+"/items",c)}void 0!==g&&(s.oneOf=g),void 0!==w&&(s.anyOf=w),void 0!==y&&(s.required=(0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],s.required||[],!0),y,!0)),s=(0,tslib_1.__assign)((0,tslib_1.__assign)((0,tslib_1.__assign)({},s),{title:s.title||v,description:s.description||O,readOnly:void 0!==s.readOnly?s.readOnly:m,writeOnly:void 0!==s.writeOnly?s.writeOnly:h,"x-circular-ref":s["x-circular-ref"]||R}),A)}return s}}),Object.defineProperty(e.prototype,"findDerived",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var r={},i=this.definition.components&&this.definition.components.schemas||{};for(var t in i){var n=this.deref(i[t]).resolved;void 0!==n.allOf&&n.allOf.find((function(r){return void 0!==r.$ref&&e.indexOf(r.$ref)>-1}))&&(r["#/components/schemas/"+t]=[n["x-discriminator-value"]||t])}return r}}),Object.defineProperty(e.prototype,"hoistOneOfs",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.allOf)return e;for(var r=e.allOf,i=function(e){var i=r[e];if(Array.isArray(i.oneOf)){var t=r.slice(0,e),n=r.slice(e+1);return{value:{oneOf:i.oneOf.map((function(e){return{allOf:(0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)((0,tslib_1.__spreadArray)([],t,!0),[e],!1),n,!0)}}))}}}},t=0;t<r.length;t++){var n=i(t);if("object"==typeof n)return n.value}return e}}),e}();exports.OpenAPIParser=OpenAPIParser;
|
|
2
2
|
//# sourceMappingURL=OpenAPIParser.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveTheme=void 0;var polished_1=require("polished"),media_css_1=require("./utils/media-css"),defaultTheme={spacing:{unit:5,sectionHorizontal:function(r){return 8*r.spacing.unit},sectionVertical:function(r){return 4*r.spacing.unit}},breakpoints:{small:"50rem",medium:"85rem",large:"105rem"},colors:{tonalOffset:.2,primary:{main:"#0065FB",light:function(r){var o=r.colors;return(0,polished_1.lighten)(o.tonalOffset,o.primary.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.primary.main)},contrastText:function(r){var o=r.colors;return(0,polished_1.readableColor)(o.primary.main)}},secondary:{main:"#E4E7EB",light:"#F5F7FA",dark:"#E4E7EB",contrastText:"#3E4C59"},accent:{main:"#59C3FF",light:"#b3dcf3",dark:"#033B73",contrastText:"#ffffff"},success:{main:"#41DE50",light:function(r){var o=r.colors;return(0,polished_1.lighten)(2*o.tonalOffset,o.success.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.success.main)},contrastText:function(r){var o=r.colors;return(0,polished_1.readableColor)(o.success.main)}},warning:{main:"#ffa500",light:function(r){var o=r.colors;return(0,polished_1.lighten)(o.tonalOffset,o.warning.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.warning.main)},contrastText:"#ffffff"},error:{main:"#FF6161",light:function(r){var o=r.colors;return(0,polished_1.lighten)(o.tonalOffset,o.error.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.error.main)},contrastText:"#ffffff"},text:{primary:"#1F2933",secondary:"#7b8794",light:"#F5F7FA"},border:{dark:"#616E7C",light:"#E4E7EB"},responses:{success:{borderColor:"#B1E996",backgroundColor:"#F6FFF4",tabTextColor:function(r){return r.colors.responses.success.borderColor}},error:{borderColor:"#FFC9C9",backgroundColor:"#FFF4F4",tabTextColor:function(r){return r.colors.responses.error.borderColor}},redirect:{borderColor:function(r){return r.colors.warning.main},backgroundColor:function(r){var o=r.colors;return(0,polished_1.transparentize)(.9,o.responses.redirect.borderColor)},tabTextColor:function(r){return r.colors.responses.redirect.borderColor}},info:{borderColor:"#87ceeb",backgroundColor:function(r){var o=r.colors;return(0,polished_1.transparentize)(.9,o.responses.info.borderColor)},tabTextColor:function(r){return r.colors.responses.info.borderColor}}},http:{get:"#3A9601",post:"#0065FB",put:"#93527B",options:"#947014",patch:"#bf581d",delete:"#C83637",basic:"#707070",link:"#07818F",head:"#A23DAD"}},schema:{linesColor:function(r){return r.colors.border.light},defaultDetailsWidth:"70%",typeNameColor:function(r){return r.colors.text.secondary},typeTitleColor:function(r){return r.schema.typeNameColor},requireLabelColor:"#FF0000",labelsTextSize:"0.9em",nestingSpacing:"1em",nestedBackground:function(r){return r.colors.secondary.light},caretColor:function(r){return r.colors.text.primary},caretSize:"9px"},typography:{fontSize:"14px",lineHeight:"1.5em",fontWeightRegular:"400",fontWeightBold:"600",fontWeightLight:"300",fontFamily:"Source Sans Pro, sans-serif",smoothing:"antialiased",optimizeSpeed:!0,headings:{fontFamily:function(r){return r.typography.fontFamily},fontWeight:"700",lineHeight:"1.6em"},code:{fontSize:"13px",fontFamily:"Source Code Pro, monospace",lineHeight:function(r){return r.typography.lineHeight},fontWeight:function(r){return r.typography.fontWeightRegular},color:"#e53935",backgroundColor:"rgba(38, 50, 56, 0.05)",wrap:!1},links:{color:function(r){return r.colors.primary.main},visited:function(r){return r.typography.links.color},hover:function(r){var o=r.typography;return(0,polished_1.lighten)(.2,o.links.color)},textDecoration:"auto",hoverTextDecoration:"auto"},fieldName:{fontSize:function(r){return r.typography.code.fontSize},fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.code.fontWeight}}},sidebar:{separatorLabelColor:function(r){return r.sidebar.textColor},separatorLineColor:"#DADADA",caretColor:function(r){return r.sidebar.textColor},caretSize:function(r){return r.sidebar.spacing.unit},spacing:{unit:8,paddingHorizontal:function(r){return r.sidebar.spacing.unit},paddingVertical:function(r){return r.sidebar.spacing.unit},offsetTop:function(r){return 2*r.sidebar.spacing.unit},offsetLeft:function(r){return 2*r.sidebar.spacing.unit},offsetNesting:function(r){return 2*r.sidebar.spacing.unit}},borderRadius:"4px",fontFamily:function(r){return r.typography.fontFamily},fontSize:function(r){return r.typography.fontSize},showAtBreakpoint:"small",width:"285px",backgroundColor:"#fff",rightLineColor:function(r){return r.colors.border.light},textColor:function(r){return r.colors.text.primary},activeTextColor:function(r){return r.sidebar.textColor},activeBgColor:function(r){return r.colors.border.light}},components:{buttons:{borderRadius:function(r){return r.shape.borderRadius},hoverStyle:"",fontWeight:function(r){return r.typography.fontWeightBold},boxShadow:"none",hoverBoxShadow:"0px 0px 12px 0px rgba(0, 0, 0, 0.1)",fontFamily:"inherit",sizes:{small:{fontSize:"12px",padding:"8px 10px",minWidth:"90px"},medium:{fontSize:"14px",padding:"8px 20px",minWidth:"120px"},large:{fontSize:"14px",padding:"12px 24px",minWidth:"150px"},xlarge:{fontSize:"16px",padding:"20px 24px",minWidth:"200px"}}},httpBadges:{borderRadius:"16px",fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.fontWeightBold},color:function(r){return r.colors.text.light},sizes:{medium:{fontSize:"12px",lineHeight:"20px"},small:{fontSize:"8px",lineHeight:"15px"}}},tryItButton:{fullWidth:!1},tryItSendButton:{fullWidth:!1},panels:{borderRadius:"8px",backgroundColor:"#fff"},layoutControls:{top:"20px",width:"36px",height:"36px"}},logo:{maxHeight:function(r){return r.sidebar.width},maxWidth:function(r){return r.sidebar.width},gutter:"2px"},fab:{backgroundColor:"#f2f2f2",color:"#0065FB"},rightPanel:{showAtBreakpoint:"medium",backgroundColor:"#1F2933",panelBackgroundColor:"#52606D",panelControlsBackgroundColor:"#323F4B",width:"37.5%",textColor:"#ffffff"},codeBlock:{backgroundColor:function(r){return r.rightPanel.panelControlsBackgroundColor}},shape:{borderRadius:"4px"},layout:{showDarkRightPanel:!1,stacked:{maxWidth:(_a={},_a[media_css_1.ZERO_BREAKPOINT]="",_a.small="90%",_a.medium="75%",_a.large="1200px",_a)},"three-panel":{middlePanelMaxWidth:"none",maxWidth:(_b={},_b[media_css_1.ZERO_BREAKPOINT]="100%",_b.small="100%",_b.medium="100%",_b.large="1800px",_b)}}};function resolveTheme(r){var o={},e=0,t=function(n,i){Object.keys(n).forEach((function(a){var l=(i?i+".":"")+a,s=n[a];"function"==typeof s?Object.defineProperty(n,a,{get:function(){if(!o[l]){if(++e>1e3)throw new Error("Theme probably contains circular dependency at "+l+": "+s.toString());o[l]=s(r)}return o[l]},enumerable:!0}):"object"==typeof s&&t(s,l)}))};return t(r,""),JSON.parse(JSON.stringify(r))}exports.default=defaultTheme,exports.resolveTheme=resolveTheme;
|
|
1
|
+
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveTheme=void 0;var polished_1=require("polished"),media_css_1=require("./utils/media-css"),defaultTheme={spacing:{unit:5,sectionHorizontal:function(r){return 8*r.spacing.unit},sectionVertical:function(r){return 4*r.spacing.unit}},breakpoints:{small:"50rem",medium:"85rem",large:"105rem"},colors:{tonalOffset:.2,primary:{main:"#0065FB",light:function(r){var o=r.colors;return(0,polished_1.lighten)(o.tonalOffset,o.primary.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.primary.main)},contrastText:function(r){var o=r.colors;return(0,polished_1.readableColor)(o.primary.main)}},secondary:{main:"#E4E7EB",light:"#F5F7FA",dark:"#E4E7EB",contrastText:"#3E4C59"},accent:{main:"#59C3FF",light:"#b3dcf3",dark:"#033B73",contrastText:"#ffffff"},success:{main:"#41DE50",light:function(r){var o=r.colors;return(0,polished_1.lighten)(2*o.tonalOffset,o.success.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.success.main)},contrastText:function(r){var o=r.colors;return(0,polished_1.readableColor)(o.success.main)}},warning:{main:"#ffa500",light:function(r){var o=r.colors;return(0,polished_1.lighten)(o.tonalOffset,o.warning.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.warning.main)},contrastText:"#ffffff"},error:{main:"#FF6161",light:function(r){var o=r.colors;return(0,polished_1.lighten)(o.tonalOffset,o.error.main)},dark:function(r){var o=r.colors;return(0,polished_1.darken)(o.tonalOffset,o.error.main)},contrastText:"#ffffff"},text:{primary:"#1F2933",secondary:"#7b8794",light:"#F5F7FA"},border:{dark:"#616E7C",light:"#E4E7EB"},responses:{success:{borderColor:"#B1E996",backgroundColor:"#F6FFF4",tabTextColor:function(r){return r.colors.responses.success.borderColor}},error:{borderColor:"#FFC9C9",backgroundColor:"#FFF4F4",tabTextColor:function(r){return r.colors.responses.error.borderColor}},redirect:{borderColor:function(r){return r.colors.warning.main},backgroundColor:function(r){var o=r.colors;return(0,polished_1.transparentize)(.9,o.responses.redirect.borderColor)},tabTextColor:function(r){return r.colors.responses.redirect.borderColor}},info:{borderColor:"#87ceeb",backgroundColor:function(r){var o=r.colors;return(0,polished_1.transparentize)(.9,o.responses.info.borderColor)},tabTextColor:function(r){return r.colors.responses.info.borderColor}}},http:{get:"#3A9601",post:"#0065FB",put:"#93527B",options:"#947014",patch:"#bf581d",delete:"#C83637",basic:"#707070",link:"#07818F",head:"#A23DAD"}},schema:{linesColor:function(r){return r.colors.border.light},defaultDetailsWidth:"70%",typeNameColor:function(r){return r.colors.text.secondary},typeTitleColor:function(r){return r.schema.typeNameColor},requireLabelColor:"#FF0000",labelsTextSize:"0.9em",nestingSpacing:"1em",nestedBackground:function(r){return r.colors.secondary.light},nestedAlternativeBackground:"#ffffff",caretColor:function(r){return r.colors.text.primary},caretSize:"9px"},typography:{fontSize:"14px",lineHeight:"1.5em",fontWeightRegular:"400",fontWeightBold:"600",fontWeightLight:"300",fontFamily:"Source Sans Pro, sans-serif",smoothing:"antialiased",optimizeSpeed:!0,headings:{fontFamily:function(r){return r.typography.fontFamily},fontWeight:"700",lineHeight:"1.6em"},code:{fontSize:"13px",fontFamily:"Source Code Pro, monospace",lineHeight:function(r){return r.typography.lineHeight},fontWeight:function(r){return r.typography.fontWeightRegular},color:"#e53935",backgroundColor:"rgba(38, 50, 56, 0.05)",wrap:!1},links:{color:function(r){return r.colors.primary.main},visited:function(r){return r.typography.links.color},hover:function(r){var o=r.typography;return(0,polished_1.lighten)(.2,o.links.color)},textDecoration:"auto",hoverTextDecoration:"auto"},fieldName:{fontSize:function(r){return r.typography.code.fontSize},fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.code.fontWeight}}},sidebar:{separatorLabelColor:function(r){return r.sidebar.textColor},separatorLineColor:"#DADADA",caretColor:function(r){return r.sidebar.textColor},caretSize:function(r){return r.sidebar.spacing.unit},spacing:{unit:8,paddingHorizontal:function(r){return r.sidebar.spacing.unit},paddingVertical:function(r){return r.sidebar.spacing.unit},offsetTop:function(r){return 2*r.sidebar.spacing.unit},offsetLeft:function(r){return 2*r.sidebar.spacing.unit},offsetNesting:function(r){return 2*r.sidebar.spacing.unit}},borderRadius:"4px",fontFamily:function(r){return r.typography.fontFamily},fontSize:function(r){return r.typography.fontSize},showAtBreakpoint:"small",width:"285px",backgroundColor:"#fff",rightLineColor:function(r){return r.colors.border.light},textColor:function(r){return r.colors.text.primary},activeTextColor:function(r){return r.sidebar.textColor},activeBgColor:function(r){return r.colors.border.light}},components:{buttons:{borderRadius:function(r){return r.shape.borderRadius},hoverStyle:"",fontWeight:function(r){return r.typography.fontWeightBold},boxShadow:"none",hoverBoxShadow:"0px 0px 12px 0px rgba(0, 0, 0, 0.1)",fontFamily:"inherit",sizes:{small:{fontSize:"12px",padding:"8px 10px",minWidth:"90px"},medium:{fontSize:"14px",padding:"8px 20px",minWidth:"120px"},large:{fontSize:"14px",padding:"12px 24px",minWidth:"150px"},xlarge:{fontSize:"16px",padding:"20px 24px",minWidth:"200px"}}},httpBadges:{borderRadius:"16px",fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.fontWeightBold},color:function(r){return r.colors.text.light},sizes:{medium:{fontSize:"12px",lineHeight:"20px"},small:{fontSize:"8px",lineHeight:"15px"}}},tryItButton:{fullWidth:!1},tryItSendButton:{fullWidth:!1},panels:{borderRadius:"8px",backgroundColor:"#fff"},layoutControls:{top:"20px",width:"36px",height:"36px"}},logo:{maxHeight:function(r){return r.sidebar.width},maxWidth:function(r){return r.sidebar.width},gutter:"2px"},fab:{backgroundColor:"#f2f2f2",color:"#0065FB"},rightPanel:{showAtBreakpoint:"medium",backgroundColor:"#1F2933",panelBackgroundColor:"#52606D",panelControlsBackgroundColor:"#323F4B",width:"37.5%",textColor:"#ffffff"},codeBlock:{backgroundColor:function(r){return r.rightPanel.panelControlsBackgroundColor}},shape:{borderRadius:"4px"},layout:{showDarkRightPanel:!1,stacked:{maxWidth:(_a={},_a[media_css_1.ZERO_BREAKPOINT]="",_a.small="90%",_a.medium="75%",_a.large="1200px",_a)},"three-panel":{middlePanelMaxWidth:"none",maxWidth:(_b={},_b[media_css_1.ZERO_BREAKPOINT]="100%",_b.small="100%",_b.medium="100%",_b.large="1800px",_b)}}};function resolveTheme(r){var o={},e=0,t=function(n,i){Object.keys(n).forEach((function(a){var l=(i?i+".":"")+a,s=n[a];"function"==typeof s?Object.defineProperty(n,a,{get:function(){if(!o[l]){if(++e>1e3)throw new Error("Theme probably contains circular dependency at "+l+": "+s.toString());o[l]=s(r)}return o[l]},enumerable:!0}):"object"==typeof s&&t(s,l)}))};return t(r,""),JSON.parse(JSON.stringify(r))}exports.default=defaultTheme,exports.resolveTheme=resolveTheme;
|
|
2
2
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;import{__makeTemplateObject}from"tslib";import styled,{css,extensionsHook,mediaCSS,ZERO_BREAKPOINT}from"../styled-components";import{deprecatedCss}from"./mixins";export var PropertiesTableCaption=styled.caption(templateObject_1||(templateObject_1=__makeTemplateObject(["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"],["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"])),(function(n){return n.theme.colors.text.secondary}));var templateObject_1,templateObject_2,templateObject_3,templateObject_4,templateObject_5,templateObject_6,templateObject_7,templateObject_8,templateObject_9,templateObject_10,templateObject_11,repeatingGradient=css(templateObject_2||(templateObject_2=__makeTemplateObject(["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"],["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"])),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}));export var PropertyCell=styled.td(templateObject_3||(templateObject_3=__makeTemplateObject(["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"],["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"])),repeatingGradient,mediaCSS({display:(_a={},_a[ZERO_BREAKPOINT]="block",_a.small="table-cell",_a),overflow:(_b={},_b[ZERO_BREAKPOINT]="hidden",_b.small="initial",_b),padding:(_c={},_c[ZERO_BREAKPOINT]="0 20px",_c.small="10px",_c),marginBottom:(_d={},_d[ZERO_BREAKPOINT]="2px",_d.small=0,_d)}),repeatingGradient,repeatingGradient,mediaCSS({backgroundSize:(_e={},_e[ZERO_BREAKPOINT]="0.9px 100%",_e.small="0.9px 22px",_e)}),repeatingGradient,mediaCSS({backgroundSize:(_f={},_f[ZERO_BREAKPOINT]="0.9px 100%",_f.small="0.9px 20px",_f),backgroundPosition:(_g={},_g[ZERO_BREAKPOINT]="0 20px",_g.small="0 0",_g)}));export var PropertyCellWithInner=styled(PropertyCell)(templateObject_4||(templateObject_4=__makeTemplateObject(["\n padding: 0;\n"],["\n padding: 0;\n"])));export var PropertyNameCell=styled(PropertyCell)(templateObject_6||(templateObject_6=__makeTemplateObject(["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"],["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"])),(function(n){var e=n.theme;return mediaCSS({fontFamily:e.typography.fieldName.fontFamily})}),deprecatedCss,(function(n){return"patternProperties"===n.kind&&css(templateObject_5||(templateObject_5=__makeTemplateObject(["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "],["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "])))}),extensionsHook("PropertyNameCell"));export var PropertyDetailsCell=styled.td(templateObject_7||(templateObject_7=__makeTemplateObject(["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"],["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"])),(function(n){var e,t,r,a=n.theme;return mediaCSS({borderBottom:(e={},e[ZERO_BREAKPOINT]="none",e.small="1px solid "+a.colors.border.light,e),borderLeft:(t={},t[ZERO_BREAKPOINT]="1px solid "+a.schema.linesColor,t.small="none",t),padding:(r={},r[ZERO_BREAKPOINT]="0 20px",r.small="10px 0",r),width:a.schema.defaultDetailsWidth,minWidth:"200px"})}),extensionsHook("PropertyDetailsCell"));export var PropertyBullet=styled.span(templateObject_8||(templateObject_8=__makeTemplateObject(["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"],["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"])),(function(n){var e=n.theme;return mediaCSS({color:e.schema.linesColor,fontFamily:e.typography.code.fontFamily})}),(function(n){return n.theme.schema.linesColor}),(function(n){var e,t,r=n.theme;return mediaCSS({width:r.schema.defaultDetailsWidth,borderLeft:(e={},e[ZERO_BREAKPOINT]="1px dashed "+r.schema.linesColor,e.small="none",e),padding:(t={},t[ZERO_BREAKPOINT]="5px 10px",t.small="10px",t)})}),extensionsHook("PropertyDetailsCell"));export var InnerPropertiesWrap=styled.div(templateObject_9||(templateObject_9=__makeTemplateObject(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(n){return n.theme.schema.nestingSpacing}));export var PropertiesTableWrap=styled.div(templateObject_10||(templateObject_10=__makeTemplateObject(["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"],["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"])));export var PropertiesTable=styled.table(templateObject_11||(templateObject_11=__makeTemplateObject(["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background:
|
|
1
|
+
var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;import{__makeTemplateObject}from"tslib";import styled,{css,extensionsHook,mediaCSS,ZERO_BREAKPOINT}from"../styled-components";import{deprecatedCss}from"./mixins";export var PropertiesTableCaption=styled.caption(templateObject_1||(templateObject_1=__makeTemplateObject(["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"],["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"])),(function(n){return n.theme.colors.text.secondary}));var templateObject_1,templateObject_2,templateObject_3,templateObject_4,templateObject_5,templateObject_6,templateObject_7,templateObject_8,templateObject_9,templateObject_10,templateObject_11,repeatingGradient=css(templateObject_2||(templateObject_2=__makeTemplateObject(["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"],["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"])),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}),(function(n){return n.theme.schema.linesColor}));export var PropertyCell=styled.td(templateObject_3||(templateObject_3=__makeTemplateObject(["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"],["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 0;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"])),repeatingGradient,mediaCSS({display:(_a={},_a[ZERO_BREAKPOINT]="block",_a.small="table-cell",_a),overflow:(_b={},_b[ZERO_BREAKPOINT]="hidden",_b.small="initial",_b),padding:(_c={},_c[ZERO_BREAKPOINT]="0 20px",_c.small="10px",_c),marginBottom:(_d={},_d[ZERO_BREAKPOINT]="2px",_d.small=0,_d)}),repeatingGradient,repeatingGradient,mediaCSS({backgroundSize:(_e={},_e[ZERO_BREAKPOINT]="0.9px 100%",_e.small="0.9px 22px",_e)}),repeatingGradient,mediaCSS({backgroundSize:(_f={},_f[ZERO_BREAKPOINT]="0.9px 100%",_f.small="0.9px 20px",_f),backgroundPosition:(_g={},_g[ZERO_BREAKPOINT]="0 20px",_g.small="0 0",_g)}));export var PropertyCellWithInner=styled(PropertyCell)(templateObject_4||(templateObject_4=__makeTemplateObject(["\n padding: 0;\n"],["\n padding: 0;\n"])));export var PropertyNameCell=styled(PropertyCell)(templateObject_6||(templateObject_6=__makeTemplateObject(["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"],["\n vertical-align: top;\n line-height: 23px;\n white-space: nowrap;\n font-size: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ","\n\n ",";\n .field-name {\n display: inline-flex;\n align-items: center;\n }\n"])),(function(n){var e=n.theme;return mediaCSS({fontFamily:e.typography.fieldName.fontFamily})}),deprecatedCss,(function(n){return"patternProperties"===n.kind&&css(templateObject_5||(templateObject_5=__makeTemplateObject(["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "],["\n span.field-name {\n white-space: break-spaces;\n text-align: left;\n display: inline-table;\n line-height: 1.5;\n }\n "])))}),extensionsHook("PropertyNameCell"));export var PropertyDetailsCell=styled.td(templateObject_7||(templateObject_7=__makeTemplateObject(["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"],["\n box-sizing: border-box;\n vertical-align: top;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"])),(function(n){var e,t,r,a=n.theme;return mediaCSS({borderBottom:(e={},e[ZERO_BREAKPOINT]="none",e.small="1px solid "+a.colors.border.light,e),borderLeft:(t={},t[ZERO_BREAKPOINT]="1px solid "+a.schema.linesColor,t.small="none",t),padding:(r={},r[ZERO_BREAKPOINT]="0 20px",r.small="10px 0",r),width:a.schema.defaultDetailsWidth,minWidth:"200px"})}),extensionsHook("PropertyDetailsCell"));export var PropertyBullet=styled.span(templateObject_8||(templateObject_8=__makeTemplateObject(["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"],["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"])),(function(n){var e=n.theme;return mediaCSS({color:e.schema.linesColor,fontFamily:e.typography.code.fontFamily})}),(function(n){return n.theme.schema.linesColor}),(function(n){var e,t,r=n.theme;return mediaCSS({width:r.schema.defaultDetailsWidth,borderLeft:(e={},e[ZERO_BREAKPOINT]="1px dashed "+r.schema.linesColor,e.small="none",e),padding:(t={},t[ZERO_BREAKPOINT]="5px 10px",t.small="10px",t)})}),extensionsHook("PropertyDetailsCell"));export var InnerPropertiesWrap=styled.div(templateObject_9||(templateObject_9=__makeTemplateObject(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(n){return n.theme.schema.nestingSpacing}));export var PropertiesTableWrap=styled.div(templateObject_10||(templateObject_10=__makeTemplateObject(["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"],["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"])));export var PropertiesTable=styled.table(templateObject_11||(templateObject_11=__makeTemplateObject(["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: ",";\n }\n"],["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: ",";\n }\n"])),(function(n){return n.theme.shape.borderRadius}),(function(n){var e,t=n.theme;return mediaCSS({fontSize:t.typography.fontSize,display:(e={},e[ZERO_BREAKPOINT]="block",e.small="table",e)})}),mediaCSS({display:(_h={},_h[ZERO_BREAKPOINT]="block",_h.small="table-row",_h),marginBottom:(_j={},_j[ZERO_BREAKPOINT]="2px",_j.small=0,_j),borderSpacing:(_k={},_k[ZERO_BREAKPOINT]=0,_k.small="0 2px",_k)}),(function(n){return"\n @media screen and (max-width: "+n.theme.breakpoints[0]+") and (-ms-high-contrast:none) {\n td {\n float: left;\n width: 100%;\n }\n }\n "}),InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,(function(n){return n.theme.schema.nestingSpacing}),(function(n){return n.theme.schema.nestingSpacing}),(function(n){return n.theme.schema.nestedBackground}),(function(n){return n.theme.components.panels.borderRadius}),InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,InnerPropertiesWrap,(function(n){return n.theme.schema.nestedAlternativeBackground}));
|
|
2
2
|
//# sourceMappingURL=fields-layout.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign,__rest,__spreadArray}from"tslib";import{IS_BROWSER,getDefinitionName}from"../utils/";import{JsonPointer}from"../utils/JsonPointer";import{RedocNormalizedOptions}from"./RedocNormalizedOptions";export function pushRef(e,r){return r&&e[e.length-1]!==r?__spreadArray(__spreadArray([],e,!0),[r],!1):e}export function concatRefStacks(e,r){return r?e.concat(r):e}var OpenAPIParser=function(){function e(e,r,i){var t=this;void 0===i&&(i=new RedocNormalizedOptions({})),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var r;if(t.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{r=JsonPointer.get(t.definition,e)}catch(e){}return r||{}}}}),this.validate(e),this.preprocess(e),this.definition=e,this.allowMergeRefs=e.openapi.startsWith("3.1");var n=IS_BROWSER?window.location.href:"";"string"==typeof r&&(this.definitionUrl=new URL(r,n).href)}return Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}}),Object.defineProperty(e.prototype,"preprocess",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.info&&this.options.hideInfoDescription&&(e.info.description="")}}),Object.defineProperty(e.prototype,"isRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}}),Object.defineProperty(e.prototype,"deref",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1);var t=null==e?void 0:e["x-refsStack"];if(r=concatRefStacks(r,t),this.isRef(e)){var n=getDefinitionName(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{resolved:{type:"object",title:n},refsStack:r};var o=this.byRef(e.$ref);if(!o)throw new Error('Failed to resolve $ref "'+e.$ref+'"');var a=r;if(r.includes(e.$ref))o=Object.assign({},o,{"x-circular-ref":!0});else if(this.isRef(o)){var s=this.deref(o,r,i);a=s.refsStack,o=s.resolved}return a=pushRef(r,e.$ref),{resolved:o=this.allowMergeRefs?this.mergeRefs(e,o,i):o,refsStack:a}}return{resolved:e,refsStack:concatRefStacks(r,t)}}}),Object.defineProperty(e.prototype,"mergeRefs",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){e.$ref;var t=__rest(e,["$ref"]),n=Object.keys(t);
|
|
1
|
+
import{__assign,__rest,__spreadArray}from"tslib";import{IS_BROWSER,getDefinitionName}from"../utils/";import{JsonPointer}from"../utils/JsonPointer";import{RedocNormalizedOptions}from"./RedocNormalizedOptions";export function pushRef(e,r){return r&&e[e.length-1]!==r?__spreadArray(__spreadArray([],e,!0),[r],!1):e}export function concatRefStacks(e,r){return r?e.concat(r):e}var OpenAPIParser=function(){function e(e,r,i){var t=this;void 0===i&&(i=new RedocNormalizedOptions({})),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var r;if(t.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{r=JsonPointer.get(t.definition,e)}catch(e){}return r||{}}}}),this.validate(e),this.preprocess(e),this.definition=e,this.allowMergeRefs=e.openapi.startsWith("3.1");var n=IS_BROWSER?window.location.href:"";"string"==typeof r&&(this.definitionUrl=new URL(r,n).href)}return Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}}),Object.defineProperty(e.prototype,"preprocess",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e.info&&this.options.hideInfoDescription&&(e.info.description="")}}),Object.defineProperty(e.prototype,"isRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}}),Object.defineProperty(e.prototype,"deref",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1);var t=null==e?void 0:e["x-refsStack"];if(r=concatRefStacks(r,t),this.isRef(e)){var n=getDefinitionName(e.$ref);if(n&&this.options.ignoreNamedSchemas.has(n))return{resolved:{type:"object",title:n},refsStack:r};var o=this.byRef(e.$ref);if(!o)throw new Error('Failed to resolve $ref "'+e.$ref+'"');var a=r;if(r.includes(e.$ref))o=Object.assign({},o,{"x-circular-ref":!0});else if(this.isRef(o)){var s=this.deref(o,r,i);a=s.refsStack,o=s.resolved}return a=pushRef(r,e.$ref),{resolved:o=this.allowMergeRefs?this.mergeRefs(e,o,i):o,refsStack:a}}return{resolved:e,refsStack:concatRefStacks(r,t)}}}),Object.defineProperty(e.prototype,"mergeRefs",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){e.$ref;var t=__rest(e,["$ref"]),n=Object.keys(t);if(0===n.length)return r;if(i&&n.some((function(e){return!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)}))){var o=t;return{allOf:[{description:o.description,title:o.title,readOnly:o.readOnly,writeOnly:o.writeOnly},r,__rest(o,["description","title","readOnly","writeOnly"])]}}return __assign(__assign({},r),t)}}),Object.defineProperty(e.prototype,"mergeAllOf",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,i){var t,n=this;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e)).allOf)return e;var o=__assign(__assign({},e),{"x-parentRefs":[],allOf:void 0,title:e.title||getDefinitionName(r)});void 0!==o.properties&&"object"==typeof o.properties&&(o.properties=__assign({},o.properties)),void 0!==o.items&&"object"==typeof o.items&&(o.items=__assign({},o.items));for(var a=e.allOf.map((function(e){var r,t=n.deref(e,i,!0),a=t.resolved,s=t.refsStack,f=e.$ref||void 0,l=n.mergeAllOf(a,f,s);if(!l["x-circular-ref"]||!l.allOf)return f&&(null===(r=o["x-parentRefs"])||void 0===r||r.push.apply(r,__spreadArray(__spreadArray([],l["x-parentRefs"]||[],!1),[f],!1))),{$ref:f,refsStack:pushRef(s,f),schema:l}})).filter((function(e){return void 0!==e})),s=0,f=a;s<f.length;s++){var l=f[s],p=l.schema,c=l.refsStack,d=p.type,u=p.enum,y=p.properties,v=p.items,O=p.required,m=p.title,b=p.description,_=p.readOnly,h=p.writeOnly,g=p.oneOf,w=p.anyOf,A=p["x-circular-ref"],R=__rest(p,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(o.type!==d&&void 0!==o.type&&void 0!==d&&console.warn('Incompatible types in allOf at "'+r+'": "'+o.type+'" and "'+d+'"'),void 0!==d&&(Array.isArray(d)&&Array.isArray(o.type)?o.type=__spreadArray(__spreadArray([],d,!0),o.type,!0):o.type=d),void 0!==u&&(Array.isArray(u)&&Array.isArray(o.enum)?o.enum=Array.from(new Set(__spreadArray(__spreadArray([],u,!0),o.enum,!0))):o.enum=u),void 0!==y&&"object"==typeof y)for(var j in o.properties=o.properties||{},y){var x=concatRefStacks(c,null===(t=y[j])||void 0===t?void 0:t["x-refsStack"]);if(o.properties[j]){if(!A){var S=this.mergeAllOf({allOf:[o.properties[j],y[j]],"x-refsStack":x},r+"/properties/"+j,x);o.properties[j]=S}}else o.properties[j]=__assign(__assign({},y[j]),{"x-refsStack":x})}if(void 0!==v&&!A){var P="boolean"==typeof o.items?{}:Object.assign({},o.items),k="boolean"==typeof p.items?{}:Object.assign({},p.items);o.items=this.mergeAllOf({allOf:[P,k]},r+"/items",c)}void 0!==g&&(o.oneOf=g),void 0!==w&&(o.anyOf=w),void 0!==O&&(o.required=__spreadArray(__spreadArray([],o.required||[],!0),O,!0)),o=__assign(__assign(__assign({},o),{title:o.title||m,description:o.description||b,readOnly:void 0!==o.readOnly?o.readOnly:_,writeOnly:void 0!==o.writeOnly?o.writeOnly:h,"x-circular-ref":o["x-circular-ref"]||A}),R)}return o}}),Object.defineProperty(e.prototype,"findDerived",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var r={},i=this.definition.components&&this.definition.components.schemas||{};for(var t in i){var n=this.deref(i[t]).resolved;void 0!==n.allOf&&n.allOf.find((function(r){return void 0!==r.$ref&&e.indexOf(r.$ref)>-1}))&&(r["#/components/schemas/"+t]=[n["x-discriminator-value"]||t])}return r}}),Object.defineProperty(e.prototype,"hoistOneOfs",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.allOf)return e;for(var r=e.allOf,i=function(e){var i=r[e];if(Array.isArray(i.oneOf)){var t=r.slice(0,e),n=r.slice(e+1);return{value:{oneOf:i.oneOf.map((function(e){return{allOf:__spreadArray(__spreadArray(__spreadArray([],t,!0),[e],!1),n,!0)}}))}}}},t=0;t<r.length;t++){var n=i(t);if("object"==typeof n)return n.value}return e}}),e}();export{OpenAPIParser};
|
|
2
2
|
//# sourceMappingURL=OpenAPIParser.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _a,_b;import{darken,lighten,readableColor,transparentize}from"polished";import{ZERO_BREAKPOINT}from"./utils/media-css";var defaultTheme={spacing:{unit:5,sectionHorizontal:function(r){return 8*r.spacing.unit},sectionVertical:function(r){return 4*r.spacing.unit}},breakpoints:{small:"50rem",medium:"85rem",large:"105rem"},colors:{tonalOffset:.2,primary:{main:"#0065FB",light:function(r){var o=r.colors;return lighten(o.tonalOffset,o.primary.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.primary.main)},contrastText:function(r){var o=r.colors;return readableColor(o.primary.main)}},secondary:{main:"#E4E7EB",light:"#F5F7FA",dark:"#E4E7EB",contrastText:"#3E4C59"},accent:{main:"#59C3FF",light:"#b3dcf3",dark:"#033B73",contrastText:"#ffffff"},success:{main:"#41DE50",light:function(r){var o=r.colors;return lighten(2*o.tonalOffset,o.success.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.success.main)},contrastText:function(r){var o=r.colors;return readableColor(o.success.main)}},warning:{main:"#ffa500",light:function(r){var o=r.colors;return lighten(o.tonalOffset,o.warning.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.warning.main)},contrastText:"#ffffff"},error:{main:"#FF6161",light:function(r){var o=r.colors;return lighten(o.tonalOffset,o.error.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.error.main)},contrastText:"#ffffff"},text:{primary:"#1F2933",secondary:"#7b8794",light:"#F5F7FA"},border:{dark:"#616E7C",light:"#E4E7EB"},responses:{success:{borderColor:"#B1E996",backgroundColor:"#F6FFF4",tabTextColor:function(r){return r.colors.responses.success.borderColor}},error:{borderColor:"#FFC9C9",backgroundColor:"#FFF4F4",tabTextColor:function(r){return r.colors.responses.error.borderColor}},redirect:{borderColor:function(r){return r.colors.warning.main},backgroundColor:function(r){var o=r.colors;return transparentize(.9,o.responses.redirect.borderColor)},tabTextColor:function(r){return r.colors.responses.redirect.borderColor}},info:{borderColor:"#87ceeb",backgroundColor:function(r){var o=r.colors;return transparentize(.9,o.responses.info.borderColor)},tabTextColor:function(r){return r.colors.responses.info.borderColor}}},http:{get:"#3A9601",post:"#0065FB",put:"#93527B",options:"#947014",patch:"#bf581d",delete:"#C83637",basic:"#707070",link:"#07818F",head:"#A23DAD"}},schema:{linesColor:function(r){return r.colors.border.light},defaultDetailsWidth:"70%",typeNameColor:function(r){return r.colors.text.secondary},typeTitleColor:function(r){return r.schema.typeNameColor},requireLabelColor:"#FF0000",labelsTextSize:"0.9em",nestingSpacing:"1em",nestedBackground:function(r){return r.colors.secondary.light},caretColor:function(r){return r.colors.text.primary},caretSize:"9px"},typography:{fontSize:"14px",lineHeight:"1.5em",fontWeightRegular:"400",fontWeightBold:"600",fontWeightLight:"300",fontFamily:"Source Sans Pro, sans-serif",smoothing:"antialiased",optimizeSpeed:!0,headings:{fontFamily:function(r){return r.typography.fontFamily},fontWeight:"700",lineHeight:"1.6em"},code:{fontSize:"13px",fontFamily:"Source Code Pro, monospace",lineHeight:function(r){return r.typography.lineHeight},fontWeight:function(r){return r.typography.fontWeightRegular},color:"#e53935",backgroundColor:"rgba(38, 50, 56, 0.05)",wrap:!1},links:{color:function(r){return r.colors.primary.main},visited:function(r){return r.typography.links.color},hover:function(r){var o=r.typography;return lighten(.2,o.links.color)},textDecoration:"auto",hoverTextDecoration:"auto"},fieldName:{fontSize:function(r){return r.typography.code.fontSize},fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.code.fontWeight}}},sidebar:{separatorLabelColor:function(r){return r.sidebar.textColor},separatorLineColor:"#DADADA",caretColor:function(r){return r.sidebar.textColor},caretSize:function(r){return r.sidebar.spacing.unit},spacing:{unit:8,paddingHorizontal:function(r){return r.sidebar.spacing.unit},paddingVertical:function(r){return r.sidebar.spacing.unit},offsetTop:function(r){return 2*r.sidebar.spacing.unit},offsetLeft:function(r){return 2*r.sidebar.spacing.unit},offsetNesting:function(r){return 2*r.sidebar.spacing.unit}},borderRadius:"4px",fontFamily:function(r){return r.typography.fontFamily},fontSize:function(r){return r.typography.fontSize},showAtBreakpoint:"small",width:"285px",backgroundColor:"#fff",rightLineColor:function(r){return r.colors.border.light},textColor:function(r){return r.colors.text.primary},activeTextColor:function(r){return r.sidebar.textColor},activeBgColor:function(r){return r.colors.border.light}},components:{buttons:{borderRadius:function(r){return r.shape.borderRadius},hoverStyle:"",fontWeight:function(r){return r.typography.fontWeightBold},boxShadow:"none",hoverBoxShadow:"0px 0px 12px 0px rgba(0, 0, 0, 0.1)",fontFamily:"inherit",sizes:{small:{fontSize:"12px",padding:"8px 10px",minWidth:"90px"},medium:{fontSize:"14px",padding:"8px 20px",minWidth:"120px"},large:{fontSize:"14px",padding:"12px 24px",minWidth:"150px"},xlarge:{fontSize:"16px",padding:"20px 24px",minWidth:"200px"}}},httpBadges:{borderRadius:"16px",fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.fontWeightBold},color:function(r){return r.colors.text.light},sizes:{medium:{fontSize:"12px",lineHeight:"20px"},small:{fontSize:"8px",lineHeight:"15px"}}},tryItButton:{fullWidth:!1},tryItSendButton:{fullWidth:!1},panels:{borderRadius:"8px",backgroundColor:"#fff"},layoutControls:{top:"20px",width:"36px",height:"36px"}},logo:{maxHeight:function(r){return r.sidebar.width},maxWidth:function(r){return r.sidebar.width},gutter:"2px"},fab:{backgroundColor:"#f2f2f2",color:"#0065FB"},rightPanel:{showAtBreakpoint:"medium",backgroundColor:"#1F2933",panelBackgroundColor:"#52606D",panelControlsBackgroundColor:"#323F4B",width:"37.5%",textColor:"#ffffff"},codeBlock:{backgroundColor:function(r){return r.rightPanel.panelControlsBackgroundColor}},shape:{borderRadius:"4px"},layout:{showDarkRightPanel:!1,stacked:{maxWidth:(_a={},_a[ZERO_BREAKPOINT]="",_a.small="90%",_a.medium="75%",_a.large="1200px",_a)},"three-panel":{middlePanelMaxWidth:"none",maxWidth:(_b={},_b[ZERO_BREAKPOINT]="100%",_b.small="100%",_b.medium="100%",_b.large="1800px",_b)}}};export default defaultTheme;export function resolveTheme(r){var o={},t=0,n=function(e,i){Object.keys(e).forEach((function(a){var l=(i?i+".":"")+a,c=e[a];"function"==typeof c?Object.defineProperty(e,a,{get:function(){if(!o[l]){if(++t>1e3)throw new Error("Theme probably contains circular dependency at "+l+": "+c.toString());o[l]=c(r)}return o[l]},enumerable:!0}):"object"==typeof c&&n(c,l)}))};return n(r,""),JSON.parse(JSON.stringify(r))}
|
|
1
|
+
var _a,_b;import{darken,lighten,readableColor,transparentize}from"polished";import{ZERO_BREAKPOINT}from"./utils/media-css";var defaultTheme={spacing:{unit:5,sectionHorizontal:function(r){return 8*r.spacing.unit},sectionVertical:function(r){return 4*r.spacing.unit}},breakpoints:{small:"50rem",medium:"85rem",large:"105rem"},colors:{tonalOffset:.2,primary:{main:"#0065FB",light:function(r){var o=r.colors;return lighten(o.tonalOffset,o.primary.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.primary.main)},contrastText:function(r){var o=r.colors;return readableColor(o.primary.main)}},secondary:{main:"#E4E7EB",light:"#F5F7FA",dark:"#E4E7EB",contrastText:"#3E4C59"},accent:{main:"#59C3FF",light:"#b3dcf3",dark:"#033B73",contrastText:"#ffffff"},success:{main:"#41DE50",light:function(r){var o=r.colors;return lighten(2*o.tonalOffset,o.success.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.success.main)},contrastText:function(r){var o=r.colors;return readableColor(o.success.main)}},warning:{main:"#ffa500",light:function(r){var o=r.colors;return lighten(o.tonalOffset,o.warning.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.warning.main)},contrastText:"#ffffff"},error:{main:"#FF6161",light:function(r){var o=r.colors;return lighten(o.tonalOffset,o.error.main)},dark:function(r){var o=r.colors;return darken(o.tonalOffset,o.error.main)},contrastText:"#ffffff"},text:{primary:"#1F2933",secondary:"#7b8794",light:"#F5F7FA"},border:{dark:"#616E7C",light:"#E4E7EB"},responses:{success:{borderColor:"#B1E996",backgroundColor:"#F6FFF4",tabTextColor:function(r){return r.colors.responses.success.borderColor}},error:{borderColor:"#FFC9C9",backgroundColor:"#FFF4F4",tabTextColor:function(r){return r.colors.responses.error.borderColor}},redirect:{borderColor:function(r){return r.colors.warning.main},backgroundColor:function(r){var o=r.colors;return transparentize(.9,o.responses.redirect.borderColor)},tabTextColor:function(r){return r.colors.responses.redirect.borderColor}},info:{borderColor:"#87ceeb",backgroundColor:function(r){var o=r.colors;return transparentize(.9,o.responses.info.borderColor)},tabTextColor:function(r){return r.colors.responses.info.borderColor}}},http:{get:"#3A9601",post:"#0065FB",put:"#93527B",options:"#947014",patch:"#bf581d",delete:"#C83637",basic:"#707070",link:"#07818F",head:"#A23DAD"}},schema:{linesColor:function(r){return r.colors.border.light},defaultDetailsWidth:"70%",typeNameColor:function(r){return r.colors.text.secondary},typeTitleColor:function(r){return r.schema.typeNameColor},requireLabelColor:"#FF0000",labelsTextSize:"0.9em",nestingSpacing:"1em",nestedBackground:function(r){return r.colors.secondary.light},nestedAlternativeBackground:"#ffffff",caretColor:function(r){return r.colors.text.primary},caretSize:"9px"},typography:{fontSize:"14px",lineHeight:"1.5em",fontWeightRegular:"400",fontWeightBold:"600",fontWeightLight:"300",fontFamily:"Source Sans Pro, sans-serif",smoothing:"antialiased",optimizeSpeed:!0,headings:{fontFamily:function(r){return r.typography.fontFamily},fontWeight:"700",lineHeight:"1.6em"},code:{fontSize:"13px",fontFamily:"Source Code Pro, monospace",lineHeight:function(r){return r.typography.lineHeight},fontWeight:function(r){return r.typography.fontWeightRegular},color:"#e53935",backgroundColor:"rgba(38, 50, 56, 0.05)",wrap:!1},links:{color:function(r){return r.colors.primary.main},visited:function(r){return r.typography.links.color},hover:function(r){var o=r.typography;return lighten(.2,o.links.color)},textDecoration:"auto",hoverTextDecoration:"auto"},fieldName:{fontSize:function(r){return r.typography.code.fontSize},fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.code.fontWeight}}},sidebar:{separatorLabelColor:function(r){return r.sidebar.textColor},separatorLineColor:"#DADADA",caretColor:function(r){return r.sidebar.textColor},caretSize:function(r){return r.sidebar.spacing.unit},spacing:{unit:8,paddingHorizontal:function(r){return r.sidebar.spacing.unit},paddingVertical:function(r){return r.sidebar.spacing.unit},offsetTop:function(r){return 2*r.sidebar.spacing.unit},offsetLeft:function(r){return 2*r.sidebar.spacing.unit},offsetNesting:function(r){return 2*r.sidebar.spacing.unit}},borderRadius:"4px",fontFamily:function(r){return r.typography.fontFamily},fontSize:function(r){return r.typography.fontSize},showAtBreakpoint:"small",width:"285px",backgroundColor:"#fff",rightLineColor:function(r){return r.colors.border.light},textColor:function(r){return r.colors.text.primary},activeTextColor:function(r){return r.sidebar.textColor},activeBgColor:function(r){return r.colors.border.light}},components:{buttons:{borderRadius:function(r){return r.shape.borderRadius},hoverStyle:"",fontWeight:function(r){return r.typography.fontWeightBold},boxShadow:"none",hoverBoxShadow:"0px 0px 12px 0px rgba(0, 0, 0, 0.1)",fontFamily:"inherit",sizes:{small:{fontSize:"12px",padding:"8px 10px",minWidth:"90px"},medium:{fontSize:"14px",padding:"8px 20px",minWidth:"120px"},large:{fontSize:"14px",padding:"12px 24px",minWidth:"150px"},xlarge:{fontSize:"16px",padding:"20px 24px",minWidth:"200px"}}},httpBadges:{borderRadius:"16px",fontFamily:function(r){return r.typography.code.fontFamily},fontWeight:function(r){return r.typography.fontWeightBold},color:function(r){return r.colors.text.light},sizes:{medium:{fontSize:"12px",lineHeight:"20px"},small:{fontSize:"8px",lineHeight:"15px"}}},tryItButton:{fullWidth:!1},tryItSendButton:{fullWidth:!1},panels:{borderRadius:"8px",backgroundColor:"#fff"},layoutControls:{top:"20px",width:"36px",height:"36px"}},logo:{maxHeight:function(r){return r.sidebar.width},maxWidth:function(r){return r.sidebar.width},gutter:"2px"},fab:{backgroundColor:"#f2f2f2",color:"#0065FB"},rightPanel:{showAtBreakpoint:"medium",backgroundColor:"#1F2933",panelBackgroundColor:"#52606D",panelControlsBackgroundColor:"#323F4B",width:"37.5%",textColor:"#ffffff"},codeBlock:{backgroundColor:function(r){return r.rightPanel.panelControlsBackgroundColor}},shape:{borderRadius:"4px"},layout:{showDarkRightPanel:!1,stacked:{maxWidth:(_a={},_a[ZERO_BREAKPOINT]="",_a.small="90%",_a.medium="75%",_a.large="1200px",_a)},"three-panel":{middlePanelMaxWidth:"none",maxWidth:(_b={},_b[ZERO_BREAKPOINT]="100%",_b.small="100%",_b.medium="100%",_b.large="1800px",_b)}}};export default defaultTheme;export function resolveTheme(r){var o={},t=0,n=function(e,i){Object.keys(e).forEach((function(a){var l=(i?i+".":"")+a,c=e[a];"function"==typeof c?Object.defineProperty(e,a,{get:function(){if(!o[l]){if(++t>1e3)throw new Error("Theme probably contains circular dependency at "+l+": "+c.toString());o[l]=c(r)}return o[l]},enumerable:!0}):"object"==typeof c&&n(c,l)}))};return n(r,""),JSON.parse(JSON.stringify(r))}
|
|
2
2
|
//# sourceMappingURL=theme.js.map
|