@kolkrabbi/kol-icons 0.33.0 → 0.34.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-icons",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "The icon loader and icon sets",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/Icon.jsx CHANGED
@@ -42,7 +42,11 @@ loadIcons()
42
42
  const useIconsReady = () => {
43
43
  const [ready, setReady] = useState(() => !!ICONS)
44
44
  useEffect(() => {
45
- if (ICONS) return undefined
45
+ /* the chunk can land BETWEEN the render (which read `ICONS` as null) and this effect — under a
46
+ Suspense boundary that gap is as long as the lazy route takes. Nobody was subscribed then, so
47
+ returning here without setting the state left the icon blank for good (kol-fxr's rail on
48
+ /editor and /randomiser, found in apps/editor-hub 2026-10-03). */
49
+ if (ICONS) { setReady(true); return undefined }
46
50
  const cb = () => setReady(true)
47
51
  subscribers.add(cb)
48
52
  loadIcons()
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 V5 M12 10 V14 M12 19 V21" /><rect x="5" y="5" width="14" height="5" rx="1" /><rect x="8" y="14" width="8" height="5" rx="1" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2.5V5M12 10V14M12 19V21.5" stroke-width="2" /><rect x="5" y="5" width="14" height="5" rx="1" fill="currentColor" stroke="none" /><rect x="8" y="14" width="8" height="5" rx="1" fill="currentColor" stroke="none" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 3 V21" /><rect x="7" y="5" width="13" height="5" rx="1" /><rect x="7" y="14" width="8" height="5" rx="1" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 3V21" stroke-width="2" /><rect x="7" y="5" width="13" height="5" rx="1" fill="currentColor" stroke="none" /><rect x="7" y="14" width="8" height="5" rx="1" fill="currentColor" stroke="none" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 3 V21" /><rect x="4" y="5" width="13" height="5" rx="1" /><rect x="9" y="14" width="8" height="5" rx="1" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 3V21" stroke-width="2" /><rect x="4" y="5" width="13" height="5" rx="1" fill="currentColor" stroke="none" /><rect x="9" y="14" width="8" height="5" rx="1" fill="currentColor" stroke="none" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 20 H21" /><rect x="5" y="4" width="5" height="13" rx="1" /><rect x="14" y="9" width="5" height="8" rx="1" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 20H21" stroke-width="2" /><rect x="5" y="4" width="5" height="13" rx="1" fill="currentColor" stroke="none" /><rect x="14" y="9" width="5" height="8" rx="1" fill="currentColor" stroke="none" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12 H5 M10 12 H14 M19 12 H21" /><rect x="5" y="5" width="5" height="14" rx="1" /><rect x="14" y="8" width="5" height="8" rx="1" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 12H5M10 12H14M19 12H21.5" stroke-width="2" /><rect x="5" y="5" width="5" height="14" rx="1" fill="currentColor" stroke="none" /><rect x="14" y="8" width="5" height="8" rx="1" fill="currentColor" stroke="none" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 4 H21" /><rect x="5" y="7" width="5" height="13" rx="1" /><rect x="14" y="7" width="5" height="8" rx="1" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 4H21" stroke-width="2" /><rect x="5" y="7" width="5" height="13" rx="1" fill="currentColor" stroke="none" /><rect x="14" y="7" width="5" height="8" rx="1" fill="currentColor" stroke="none" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 V21" stroke-dasharray="3 2.5" /><path d="M3.5 6.5 L9.5 12 L3.5 17.5 Z" /><path d="M20.5 6.5 L14.5 12 L20.5 17.5 Z" fill="currentColor" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3V21" /><path d="M3.5 7L9 12L3.5 17Z" /><path d="M20.5 7L15 12L20.5 17Z" fill="currentColor" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12 H21" stroke-dasharray="3 2.5" /><path d="M6.5 3.5 L12 9.5 L17.5 3.5 Z" /><path d="M6.5 20.5 L12 14.5 L17.5 20.5 Z" fill="currentColor" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12H21" /><path d="M7 3.5L12 9L17 3.5Z" /><path d="M7 20.5L12 15L17 20.5Z" fill="currentColor" /></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M17.3 18.14A7.5 7.5 0 1 0 5.5 12" /><path d="M8.5 9l-3 3-3-3" /></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5A7 7 0 1 0 19 12" /><path d="M16.5 14.5L19 12L21.5 14.5" /></svg>