+
{children}
@@ -81,7 +81,6 @@ const ToolbarElement = (props: ToolbarProps) => {
export class Toolbar {
public toolbarElement: HTMLElement;
- public folderSpan: HTMLElement;
public downloadButton: HTMLButtonElement;
public downloadPopup: HTMLDivElement;
public mode: 'markdown' | 'json';
@@ -182,7 +181,6 @@ export class Toolbar {
mount(ToolbarElement(this.props), this.toolbarElement);
this.downloadButton = this.toolbarElement.querySelector('#download') as HTMLButtonElement;
this.downloadPopup = this.toolbarElement.querySelector('#downloadPopup') as HTMLDivElement;
- this.folderSpan = this.toolbarElement.querySelector('#folderSpan') as HTMLDivElement;
}
// Helper method to trigger a download
From bfc76cc965f464b9514873338c5ead89ec04b45e Mon Sep 17 00:00:00 2001
From: Dan Marshall
Date: Wed, 10 Sep 2025 10:29:50 -0700
Subject: [PATCH 17/17] regen
---
docs/dist/v1/chartifact.host.umd.js | 4 +---
docs/dist/v1/chartifact.toolbar.umd.js | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/docs/dist/v1/chartifact.host.umd.js b/docs/dist/v1/chartifact.host.umd.js
index c7aee7d1..903ea0a3 100644
--- a/docs/dist/v1/chartifact.host.umd.js
+++ b/docs/dist/v1/chartifact.host.umd.js
@@ -3279,7 +3279,7 @@ ${htmlJsonJs}
createElement("a", { href: `${home}chartifact/`, target }, "Chartifact"),
" viewer"
),
- createElement("div", { className: "toolbar-item", id: "folderSpan", style: { display: children ? "" : "none" } }, children),
+ createElement("div", { className: "toolbar-item", style: { display: children ? "" : "none" } }, children),
createElement(
"div",
{ className: "toolbar-item" },
@@ -3324,7 +3324,6 @@ ${htmlJsonJs}
constructor(toolbarElementOrSelector, options = {}) {
__publicField(this, "options");
__publicField(this, "toolbarElement");
- __publicField(this, "folderSpan");
__publicField(this, "downloadButton");
__publicField(this, "downloadPopup");
__publicField(this, "mode");
@@ -3409,7 +3408,6 @@ ${htmlJsonJs}
mount(ToolbarElement(this.props), this.toolbarElement);
this.downloadButton = this.toolbarElement.querySelector("#download");
this.downloadPopup = this.toolbarElement.querySelector("#downloadPopup");
- this.folderSpan = this.toolbarElement.querySelector("#folderSpan");
}
// Helper method to trigger a download
triggerDownload(content, filename, mimeType) {
diff --git a/docs/dist/v1/chartifact.toolbar.umd.js b/docs/dist/v1/chartifact.toolbar.umd.js
index be8b8a15..fd4aafae 100644
--- a/docs/dist/v1/chartifact.toolbar.umd.js
+++ b/docs/dist/v1/chartifact.toolbar.umd.js
@@ -313,7 +313,7 @@ ${htmlJsonJs}
const { mode, restartClick, tweakClick, downloadClick, restartDisplay, tweakDisplay, downloadDisplay, downloadSource, downloadHtml, children } = props;
const { home, target } = window.location.hostname === "localhost" ? { home: "/", target: "_self" } : { home: "https://microsoft.github.io/", target: "_blank" };
const displayMode = mode === "json" ? "json" : "markdown";
- return /* @__PURE__ */ createElement("div", { className: "toolbar-group", style: { backgroundColor: "inherit" } }, /* @__PURE__ */ createElement("div", { className: "toolbar-item" }, /* @__PURE__ */ createElement("a", { href: `${home}chartifact/`, target }, "Chartifact"), " viewer"), /* @__PURE__ */ createElement("div", { className: "toolbar-item", id: "folderSpan", style: { display: children ? "" : "none" } }, children), /* @__PURE__ */ createElement("div", { className: "toolbar-item" }, /* @__PURE__ */ createElement("button", { type: "button", id: "restart", style: { display: restartDisplay }, onClick: restartClick }, "start over"), /* @__PURE__ */ createElement("button", { type: "button", id: "tweak", style: { display: tweakDisplay }, onClick: tweakClick }, "view source"), /* @__PURE__ */ createElement("button", { type: "button", id: "download", style: { display: downloadDisplay }, onClick: downloadClick }, "download")), /* @__PURE__ */ createElement("div", { id: "downloadPopup", style: {
+ return /* @__PURE__ */ createElement("div", { className: "toolbar-group", style: { backgroundColor: "inherit" } }, /* @__PURE__ */ createElement("div", { className: "toolbar-item" }, /* @__PURE__ */ createElement("a", { href: `${home}chartifact/`, target }, "Chartifact"), " viewer"), /* @__PURE__ */ createElement("div", { className: "toolbar-item", style: { display: children ? "" : "none" } }, children), /* @__PURE__ */ createElement("div", { className: "toolbar-item" }, /* @__PURE__ */ createElement("button", { type: "button", id: "restart", style: { display: restartDisplay }, onClick: restartClick }, "start over"), /* @__PURE__ */ createElement("button", { type: "button", id: "tweak", style: { display: tweakDisplay }, onClick: tweakClick }, "view source"), /* @__PURE__ */ createElement("button", { type: "button", id: "download", style: { display: downloadDisplay }, onClick: downloadClick }, "download")), /* @__PURE__ */ createElement("div", { id: "downloadPopup", style: {
position: "absolute",
display: "none",
padding: "12px 16px",
@@ -324,7 +324,6 @@ ${htmlJsonJs}
class Toolbar {
constructor(toolbarElementOrSelector, options = {}) {
__publicField(this, "toolbarElement");
- __publicField(this, "folderSpan");
__publicField(this, "downloadButton");
__publicField(this, "downloadPopup");
__publicField(this, "mode");
@@ -407,7 +406,6 @@ ${htmlJsonJs}
mount(ToolbarElement(this.props), this.toolbarElement);
this.downloadButton = this.toolbarElement.querySelector("#download");
this.downloadPopup = this.toolbarElement.querySelector("#downloadPopup");
- this.folderSpan = this.toolbarElement.querySelector("#folderSpan");
}
// Helper method to trigger a download
triggerDownload(content, filename, mimeType) {