@api-viewer/demo
Advanced tools
Comparing version 1.0.0-pre.5 to 1.0.0-pre.6
@@ -7,3 +7,3 @@ import { __decorate } from "tslib"; | ||
import './layout.js'; | ||
async function renderDemo(jsonFetched, onSelect, selected, id, exclude = '') { | ||
async function renderDemo(jsonFetched, onSelect, only, selected, id, exclude = '') { | ||
const manifest = await jsonFetched; | ||
@@ -13,3 +13,3 @@ if (!hasCustomElements(manifest)) { | ||
} | ||
const elements = getCustomElements(manifest); | ||
const elements = getCustomElements(manifest, only); | ||
const data = getElementData(manifest, selected); | ||
@@ -53,3 +53,3 @@ const props = getPublicFields(data.members); | ||
return html ` | ||
${until(renderDemo(this.jsonFetched, this._onSelect, this.selected, this._id, this.excludeKnobs))} | ||
${until(renderDemo(this.jsonFetched, this._onSelect, this.only, this.selected, this._id, this.excludeKnobs))} | ||
`; | ||
@@ -56,0 +56,0 @@ } |
{ | ||
"name": "@api-viewer/demo", | ||
"version": "1.0.0-pre.5", | ||
"version": "1.0.0-pre.6", | ||
"publishConfig": { | ||
@@ -35,4 +35,4 @@ "access": "public" | ||
"dependencies": { | ||
"@api-viewer/common": "^1.0.0-pre.5", | ||
"@api-viewer/tabs": "^1.0.0-pre.5", | ||
"@api-viewer/common": "^1.0.0-pre.6", | ||
"@api-viewer/tabs": "^1.0.0-pre.6", | ||
"highlight-ts": "9.12.1-2", | ||
@@ -39,0 +39,0 @@ "lit": "^2.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146079