feedbackkit-web 1.0.49 → 1.0.50

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.
@@ -1994,7 +1994,7 @@ class Dialog {
1994
1994
  const summary = el("span", "fk-options-summary");
1995
1995
  const renderSummary = () => {
1996
1996
  const parts = [];
1997
- if (!this.includeScreenshot) parts.push("No screenshot");
1997
+ if (!this.shot) parts.push("No screenshot");
1998
1998
  if (this.notifyReporter) parts.push("Notify me");
1999
1999
  summary.textContent = parts.join(" · ");
2000
2000
  };
@@ -2018,16 +2018,6 @@ class Dialog {
2018
2018
  menu.append(item("Attach file…", () => fileInput.click()));
2019
2019
  if (window.matchMedia?.("(pointer: coarse)").matches) menu.append(item("Take photo", () => cameraInput.click()));
2020
2020
  menu.append(el("hr", "fk-menu-sep"));
2021
- if (this.shot) {
2022
- menu.append(
2023
- item("Include screenshot", () => {
2024
- this.includeScreenshot = !this.includeScreenshot;
2025
- this.stage.dataset.screenshot = this.includeScreenshot ? "on" : "off";
2026
- renderSummary();
2027
- this.refreshState();
2028
- }, this.includeScreenshot)
2029
- );
2030
- }
2031
2021
  menu.append(
2032
2022
  item("Notify me when it's fixed", () => {
2033
2023
  this.notifyReporter = !this.notifyReporter;
@@ -2078,7 +2068,17 @@ class Dialog {
2078
2068
  this.sendButton.title = "Send (⌘/Ctrl + Enter)";
2079
2069
  this.sendButton.addEventListener("click", () => void this.send());
2080
2070
  actions.append(cancel, this.sendButton);
2081
- composer.append(header, textGroup, productsGroup, optionsRow);
2071
+ composer.append(header, textGroup, productsGroup);
2072
+ if (this.shot) {
2073
+ composer.append(
2074
+ switchControl("Include screenshot", this.includeScreenshot, (on) => {
2075
+ this.includeScreenshot = on;
2076
+ this.stage.dataset.screenshot = on ? "on" : "off";
2077
+ this.refreshState();
2078
+ })
2079
+ );
2080
+ }
2081
+ composer.append(optionsRow);
2082
2082
  if (meta) composer.append(meta);
2083
2083
  composer.append(el("div", "fk-spacer"), this.errorBox, actions);
2084
2084
  this.refreshState();