@rogieking/figui3 10.0.9 → 10.0.11

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/fig.js CHANGED
@@ -7446,13 +7446,13 @@ class FigInputText extends HTMLElement {
7446
7446
  if (icon && icon.getAttribute("name") !== "search") {
7447
7447
  icon.setAttribute("name", "search");
7448
7448
  }
7449
+ icon?.removeAttribute("color");
7449
7450
  return;
7450
7451
  }
7451
7452
 
7452
7453
  const icon = createFigIcon("search");
7453
7454
  icon.setAttribute("slot", "prepend");
7454
7455
  icon.setAttribute("data-generated", "search-prefix");
7455
- icon.setAttribute("color", "var(--figma-color-icon)");
7456
7456
  icon.addEventListener("click", this.#boundFocusControl);
7457
7457
  this.prepend(icon);
7458
7458
  }
@@ -20049,30 +20049,11 @@ class FigChooser extends HTMLElement {
20049
20049
  }
20050
20050
 
20051
20051
  #scheduleInitialScrollSettle() {
20052
- const resettle = () => {
20052
+ requestAnimationFrame(() => {
20053
20053
  if (!this.isConnected || !this.autoScroll) return;
20054
20054
  if (this.#selectedChoice) {
20055
20055
  this.#scrollToChoice(this.#selectedChoice);
20056
20056
  }
20057
- };
20058
- const wireImages = () => {
20059
- const imgs = this.querySelectorAll("img, video");
20060
- for (const m of imgs) {
20061
- if (m.tagName === "IMG" ? m.complete : m.readyState >= 1) continue;
20062
- const done = () => {
20063
- m.removeEventListener("load", done);
20064
- m.removeEventListener("loadedmetadata", done);
20065
- m.removeEventListener("error", done);
20066
- resettle();
20067
- };
20068
- m.addEventListener("load", done);
20069
- m.addEventListener("loadedmetadata", done);
20070
- m.addEventListener("error", done);
20071
- }
20072
- };
20073
- requestAnimationFrame(() => {
20074
- wireImages();
20075
- resettle();
20076
20057
  });
20077
20058
  }
20078
20059
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "10.0.9",
3
+ "version": "10.0.11",
4
4
  "description": "A lightweight web components library for building Figma plugin and widget UIs with native look and feel",
5
5
  "author": "Rogie King",
6
6
  "license": "SEE LICENSE IN LICENSE",