viconic-react-icons 1.5.3 → 1.5.5

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/dist/index.js CHANGED
@@ -2062,13 +2062,11 @@ function _dispatchBatchFetch(prefix, iconBaseName, entry) {
2062
2062
  W.icons[`${prefix}/${n}`] = svg;
2063
2063
  W.icons[n] = W.icons[n] || svg;
2064
2064
  }
2065
- delete _kitQueued[kitId];
2066
2065
  try {
2067
2066
  document.dispatchEvent(new CustomEvent("viconic:ready", { detail: { prefix, kitId } }));
2068
2067
  } catch (e) {
2069
2068
  }
2070
2069
  }).catch(() => {
2071
- delete _kitQueued[kitId];
2072
2070
  });
2073
2071
  }, 150);
2074
2072
  }
@@ -2152,7 +2150,7 @@ var ViconicIcon = ({ name, className, style, size, color, ...props }) => {
2152
2150
  window.CopyIcons.forceProcess(el);
2153
2151
  }
2154
2152
  }
2155
- if (!isInjected() && el._u) {
2153
+ if (!isInjected() && !isKitIcon && el._u) {
2156
2154
  el._u();
2157
2155
  }
2158
2156
  if (isInjected()) return;
@@ -2168,7 +2166,7 @@ var ViconicIcon = ({ name, className, style, size, color, ...props }) => {
2168
2166
  return;
2169
2167
  }
2170
2168
  }
2171
- if (el._u) el._u();
2169
+ if (!isKitIcon && el._u) el._u();
2172
2170
  if (!isKitIcon && window.CopyIcons && window.CopyIcons.forceProcess) {
2173
2171
  window.CopyIcons.forceProcess(el);
2174
2172
  }
package/dist/index.mjs CHANGED
@@ -2027,13 +2027,11 @@ function _dispatchBatchFetch(prefix, iconBaseName, entry) {
2027
2027
  W.icons[`${prefix}/${n}`] = svg;
2028
2028
  W.icons[n] = W.icons[n] || svg;
2029
2029
  }
2030
- delete _kitQueued[kitId];
2031
2030
  try {
2032
2031
  document.dispatchEvent(new CustomEvent("viconic:ready", { detail: { prefix, kitId } }));
2033
2032
  } catch (e) {
2034
2033
  }
2035
2034
  }).catch(() => {
2036
- delete _kitQueued[kitId];
2037
2035
  });
2038
2036
  }, 150);
2039
2037
  }
@@ -2117,7 +2115,7 @@ var ViconicIcon = ({ name, className, style, size, color, ...props }) => {
2117
2115
  window.CopyIcons.forceProcess(el);
2118
2116
  }
2119
2117
  }
2120
- if (!isInjected() && el._u) {
2118
+ if (!isInjected() && !isKitIcon && el._u) {
2121
2119
  el._u();
2122
2120
  }
2123
2121
  if (isInjected()) return;
@@ -2133,7 +2131,7 @@ var ViconicIcon = ({ name, className, style, size, color, ...props }) => {
2133
2131
  return;
2134
2132
  }
2135
2133
  }
2136
- if (el._u) el._u();
2134
+ if (!isKitIcon && el._u) el._u();
2137
2135
  if (!isKitIcon && window.CopyIcons && window.CopyIcons.forceProcess) {
2138
2136
  window.CopyIcons.forceProcess(el);
2139
2137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viconic-react-icons",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "Viconic Smart Icons loader for React — supports Kit and 200k+ system icons",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/index.jsx CHANGED
@@ -119,11 +119,9 @@ function _dispatchBatchFetch(prefix, iconBaseName, entry) {
119
119
  W.icons[`${prefix}/${n}`] = svg;
120
120
  W.icons[n] = W.icons[n] || svg;
121
121
  }
122
- // Clear queued tracking so future kit updates can refetch
123
- delete _kitQueued[kitId];
124
122
  try { document.dispatchEvent(new CustomEvent('viconic:ready', { detail: { prefix, kitId } })); } catch(e) {}
125
123
  })
126
- .catch(() => { delete _kitQueued[kitId]; });
124
+ .catch(() => {});
127
125
  }, 150);
128
126
  }
129
127
 
@@ -265,8 +263,8 @@ export const ViconicIcon = ({ name, className, style, size, color, ...props }) =
265
263
  }
266
264
  }
267
265
 
268
- // --- PATH 3: Custom element _u() call (kit loader registered element) ---
269
- if (!isInjected() && el._u) {
266
+ // --- PATH 3: Custom element _u() call (kit loader registered element, system icons only) ---
267
+ if (!isInjected() && !isKitIcon && el._u) {
270
268
  el._u();
271
269
  }
272
270
 
@@ -288,7 +286,7 @@ export const ViconicIcon = ({ name, className, style, size, color, ...props }) =
288
286
  return;
289
287
  }
290
288
  }
291
- if (el._u) el._u();
289
+ if (!isKitIcon && el._u) el._u();
292
290
  if (!isKitIcon && window.CopyIcons && window.CopyIcons.forceProcess) {
293
291
  window.CopyIcons.forceProcess(el);
294
292
  }