Skip to content

Commit 46570e9

Browse files
committed
updated packages and genrated build
1 parent 96ca421 commit 46570e9

13 files changed

+1374
-1167
lines changed

dist/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
docEl.addEventListener('before-try', (e) => {
44
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
55
});
6-
});</script><body><rapi-doc spec-url="./specs/temp.json" id="thedoc" theme="dark" render-style="view" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true" fill-request-fields-with-example="false"></rapi-doc></body></html>
6+
});</script><style>rapi-doc::part(section-navbar-search){
7+
background-color: red;
8+
}</style><body><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" id="thedoc" theme="dark" goto-path="get-/pet/-petId-" render-style="focused" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true" fill-request-fields-with-example="false"></rapi-doc></body></html>

dist/index.html.gz

83 Bytes
Binary file not shown.

dist/rapidoc-min.js

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.gz

37 Bytes
Binary file not shown.

dist/rapidoc-min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.map.gz

42 Bytes
Binary file not shown.

dist/rapidoc.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30887,9 +30887,10 @@ class ApiRequest extends lit_element_s {
3088730887
data-param-serialize-style = "${paramStyle}"
3088830888
data-param-serialize-explode = "${paramExplode}"
3088930889
data-param-allow-reserved = "${paramAllowReserved}"
30890+
data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
3089030891
data-array = "true"
3089130892
placeholder = "add-multiple &#x21a9;"
30892-
.value = "${this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : []}"
30893+
.value="${param['x-fill-example'] === 'no' ? [] : live_l(this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : [])}"
3089330894
>
3089430895
</tag-input>` : paramSchema.type === 'object' ? $`
3089530896
<div class="tab-panel col" style="border-width:0 0 1px 0;">
@@ -30914,8 +30915,9 @@ class ApiRequest extends lit_element_s {
3091430915
data-param-serialize-style = "${paramStyle}"
3091530916
data-param-serialize-explode = "${paramExplode}"
3091630917
data-param-allow-reserved = "${paramAllowReserved}"
30918+
data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
3091730919
spellcheck = "false"
30918-
.textContent = "${this.fillRequestFieldsWithExample === 'true' ? example.exampleVal : ''}"
30920+
.textContent="${param['x-fill-example'] === 'no' ? '' : live_l(this.fillRequestFieldsWithExample === 'true' ? example.exampleVal : '')}"
3091930921
style = "resize:vertical; width:100%; height: ${'read focused'.includes(this.renderStyle) ? '180px' : '120px'};"
3092030922
></textarea>
3092130923
</div>` : $`
@@ -31896,9 +31898,10 @@ class ApiRequest extends lit_element_s {
3189631898
let respJson;
3189731899
let respText;
3189831900
tryBtnEl.disabled = true;
31899-
const startTime = performance.now();
3190031901
this.responseText = '⌛';
31902+
this.responseMessage = '';
3190131903
this.requestUpdate();
31904+
const startTime = performance.now();
3190231905
fetchResponse = await fetch(fetchRequest, {
3190331906
signal
3190431907
});
@@ -33230,7 +33233,7 @@ function navbarTemplate() {
3323033233
<nav class='nav-bar ${this.renderStyle}' part="section-navbar">
3323133234
<slot name="nav-logo" class="logo"></slot>
3323233235
${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : $`
33233-
<div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}">
33236+
<div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}" part="section-navbar-search">
3323433237
${this.allowSearch === 'false' ? '' : $`
3323533238
<div style="display:flex; flex:1; line-height:22px;">
3323633239
<input id="nav-bar-search"
@@ -35567,10 +35570,13 @@ class RapiDoc extends lit_element_s {
3556735570
this.scrollTo(elementId);
3556835571
}
3556935572
} else if (this.renderStyle === 'focused') {
35570-
var _this$resolvedSpec$ta;
35573+
// If goto-path is provided and no location-hash is present then try to scroll to default element
35574+
if (!this.gotoPath) {
35575+
var _this$resolvedSpec$ta;
3557135576

35572-
const defaultElementId = this.showInfo ? 'overview' : (_this$resolvedSpec$ta = this.resolvedSpec.tags[0]) === null || _this$resolvedSpec$ta === void 0 ? void 0 : _this$resolvedSpec$ta.paths[0];
35573-
this.scrollTo(defaultElementId);
35577+
const defaultElementId = this.showInfo ? 'overview' : (_this$resolvedSpec$ta = this.resolvedSpec.tags[0]) === null || _this$resolvedSpec$ta === void 0 ? void 0 : _this$resolvedSpec$ta.paths[0];
35578+
this.scrollTo(defaultElementId);
35579+
}
3557435580
}
3557535581
}
3557635582

@@ -35741,7 +35747,6 @@ class RapiDoc extends lit_element_s {
3574135747
// for focused mode update this.focusedElementId to update the rendering, else it wont find the needed html elements
3574235748
// focusedElementId will get validated in the template
3574335749
this.focusedElementId = elementId;
35744-
await sleep(0);
3574535750
}
3574635751

3574735752
if (this.renderStyle === 'view') {
@@ -40454,7 +40459,7 @@ function getType(str) {
4045440459
/******/
4045540460
/******/ /* webpack/runtime/getFullHash */
4045640461
/******/ (() => {
40457-
/******/ __webpack_require__.h = () => ("7e5b4aa8cf9c2be345b4")
40462+
/******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96")
4045840463
/******/ })();
4045940464
/******/
4046040465
/******/ /* webpack/runtime/global */

dist/report.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/rapidoc-min.js

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/rapidoc.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30887,9 +30887,10 @@ class ApiRequest extends lit_element_s {
3088730887
data-param-serialize-style = "${paramStyle}"
3088830888
data-param-serialize-explode = "${paramExplode}"
3088930889
data-param-allow-reserved = "${paramAllowReserved}"
30890+
data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
3089030891
data-array = "true"
3089130892
placeholder = "add-multiple &#x21a9;"
30892-
.value = "${this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : []}"
30893+
.value="${param['x-fill-example'] === 'no' ? [] : live_l(this.fillRequestFieldsWithExample === 'true' ? Array.isArray(example.exampleVal) ? example.exampleVal : [example.exampleVal] : [])}"
3089330894
>
3089430895
</tag-input>` : paramSchema.type === 'object' ? $`
3089530896
<div class="tab-panel col" style="border-width:0 0 1px 0;">
@@ -30914,8 +30915,9 @@ class ApiRequest extends lit_element_s {
3091430915
data-param-serialize-style = "${paramStyle}"
3091530916
data-param-serialize-explode = "${paramExplode}"
3091630917
data-param-allow-reserved = "${paramAllowReserved}"
30918+
data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
3091730919
spellcheck = "false"
30918-
.textContent = "${this.fillRequestFieldsWithExample === 'true' ? example.exampleVal : ''}"
30920+
.textContent="${param['x-fill-example'] === 'no' ? '' : live_l(this.fillRequestFieldsWithExample === 'true' ? example.exampleVal : '')}"
3091930921
style = "resize:vertical; width:100%; height: ${'read focused'.includes(this.renderStyle) ? '180px' : '120px'};"
3092030922
></textarea>
3092130923
</div>` : $`
@@ -31896,9 +31898,10 @@ class ApiRequest extends lit_element_s {
3189631898
let respJson;
3189731899
let respText;
3189831900
tryBtnEl.disabled = true;
31899-
const startTime = performance.now();
3190031901
this.responseText = '⌛';
31902+
this.responseMessage = '';
3190131903
this.requestUpdate();
31904+
const startTime = performance.now();
3190231905
fetchResponse = await fetch(fetchRequest, {
3190331906
signal
3190431907
});
@@ -33230,7 +33233,7 @@ function navbarTemplate() {
3323033233
<nav class='nav-bar ${this.renderStyle}' part="section-navbar">
3323133234
<slot name="nav-logo" class="logo"></slot>
3323233235
${this.allowSearch === 'false' && this.allowAdvancedSearch === 'false' ? '' : $`
33233-
<div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}">
33236+
<div style="display:flex; flex-direction:row; justify-content:center; align-items:stretch; padding:8px 24px 12px 24px; ${this.allowAdvancedSearch === 'false' ? 'border-bottom: 1px solid var(--nav-hover-bg-color)' : ''}" part="section-navbar-search">
3323433237
${this.allowSearch === 'false' ? '' : $`
3323533238
<div style="display:flex; flex:1; line-height:22px;">
3323633239
<input id="nav-bar-search"
@@ -35567,10 +35570,13 @@ class RapiDoc extends lit_element_s {
3556735570
this.scrollTo(elementId);
3556835571
}
3556935572
} else if (this.renderStyle === 'focused') {
35570-
var _this$resolvedSpec$ta;
35573+
// If goto-path is provided and no location-hash is present then try to scroll to default element
35574+
if (!this.gotoPath) {
35575+
var _this$resolvedSpec$ta;
3557135576

35572-
const defaultElementId = this.showInfo ? 'overview' : (_this$resolvedSpec$ta = this.resolvedSpec.tags[0]) === null || _this$resolvedSpec$ta === void 0 ? void 0 : _this$resolvedSpec$ta.paths[0];
35573-
this.scrollTo(defaultElementId);
35577+
const defaultElementId = this.showInfo ? 'overview' : (_this$resolvedSpec$ta = this.resolvedSpec.tags[0]) === null || _this$resolvedSpec$ta === void 0 ? void 0 : _this$resolvedSpec$ta.paths[0];
35578+
this.scrollTo(defaultElementId);
35579+
}
3557435580
}
3557535581
}
3557635582

@@ -35741,7 +35747,6 @@ class RapiDoc extends lit_element_s {
3574135747
// for focused mode update this.focusedElementId to update the rendering, else it wont find the needed html elements
3574235748
// focusedElementId will get validated in the template
3574335749
this.focusedElementId = elementId;
35744-
await sleep(0);
3574535750
}
3574635751

3574735752
if (this.renderStyle === 'view') {
@@ -40454,7 +40459,7 @@ function getType(str) {
4045440459
/******/
4045540460
/******/ /* webpack/runtime/getFullHash */
4045640461
/******/ (() => {
40457-
/******/ __webpack_require__.h = () => ("7e5b4aa8cf9c2be345b4")
40462+
/******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96")
4045840463
/******/ })();
4045940464
/******/
4046040465
/******/ /* webpack/runtime/global */

0 commit comments

Comments
 (0)