visualknowledge 0.1.4 → 0.1.6

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.
@@ -29,7 +29,8 @@
29
29
  "react": "https://esm.sh/react@18.3.1",
30
30
  "react-dom/client": "https://esm.sh/react-dom@18.3.1/client",
31
31
  "react/jsx-runtime": "https://esm.sh/react@18.3.1/jsx-runtime",
32
- "htm": "https://esm.sh/htm@3.1.1"
32
+ "htm": "https://esm.sh/htm@3.1.1",
33
+ "htm/react": "./src/lib/html.js"
33
34
  }
34
35
  }
35
36
  </script>
@@ -0,0 +1,11 @@
1
+ /**
2
+ * html tagged template - binds htm to React.createElement
3
+ *
4
+ * Ensures a single React instance is used across the entire app.
5
+ * Avoids the dual-React-instance bug when using htm/react from esm.sh.
6
+ */
7
+
8
+ import htm from 'htm';
9
+ import { createElement } from 'react';
10
+
11
+ export const html = htm.bind(createElement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visualknowledge",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Interactive AI Chat with Visualization - one-click launch via npx",
5
5
  "bin": {
6
6
  "visualknowledge": "./bin/visualknowledge.js"