uisv 0.0.18 → 0.0.19

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.
@@ -26,7 +26,6 @@
26
26
  .replaceAll('"', '\"')
27
27
  .replace('<', '%3C')
28
28
  .replace('>', '%3E')}');
29
- display: inline-block;
30
29
  width: 1em;
31
30
  height: 1em;
32
31
  background-color: currentColor;
@@ -47,6 +46,8 @@
47
46
  },
48
47
  );
49
48
 
49
+ $inspect(isComponent(name), name);
50
+
50
51
  useStyle(() => css_style);
51
52
  </script>
52
53
 
@@ -5,6 +5,8 @@ import { extract, useMutationObserver, useResizeObserver, } from 'runed';
5
5
  * @returns true if the value is a component, false otherwise
6
6
  */
7
7
  export function isComponent(v) {
8
+ if (typeof document !== 'undefined')
9
+ return typeof v === 'function';
8
10
  return typeof v === 'function' && 'render' in v;
9
11
  }
10
12
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uisv",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "ui library for the rest of us",
5
5
  "license": "MIT",
6
6
  "repository": "ui-sv/uisv",