nostr-blog-widget 0.1.0 → 0.2.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": "nostr-blog-widget",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A drop-in JavaScript widget that transforms any webpage into a Nostr-powered blog",
5
5
  "main": "dist/nostr-blog.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,6 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@types/node": "^20.10.0",
30
30
  "autoprefixer": "^10.4.16",
31
+ "babel-loader": "^10.0.0",
31
32
  "babel-preset-solid": "^1.9.3",
32
33
  "css-loader": "^6.8.1",
33
34
  "mini-css-extract-plugin": "^2.7.6",
@@ -1 +0,0 @@
1
- {"version":3,"file":"537.nostr-blog.js","mappings":"8hBAUO,MAAMA,EAA0CC,IACrD,oDAMgBC,IACRA,EAAEC,iBACFF,EAAMG,WACP,mBAKF,IAAG,SAACC,GAAI,OAAEJ,EAAMK,KAAK,WAClBC,IAAI,sBAKQL,IACRA,EAAEC,iBACFF,EAAMO,WAAWD,EAAKE,MACvB,cAEAF,EAAKG,QAAK,kBARL,UAAUH,EAAKE,KAAI,EAEd,CAAE,oCAAqCR,EAAMU,gBAAkBJ,EAAKE,IAAI,yFAJjF,SAYL,6BAtBU,CAAE,qCAAsCR,EAAMU,eAAe,MALvE,IAAP,MA+BA,kB","sources":["webpack://NostrBlog/./src/components/Navigation.tsx"],"sourcesContent":["import { Component, For } from 'solid-js';\nimport { BlogPost } from '../types/config';\n\ninterface NavigationProps {\n posts: BlogPost[];\n currentPostId?: string;\n onNavigate: (postId: string) => void;\n onHome: () => void;\n}\n\nexport const Navigation: Component<NavigationProps> = (props) => {\n return (\n <nav class=\"nbw-space-y-2\">\n <a\n href=\"#/\"\n class=\"nbw-block nbw-px-4 nbw-py-2 nbw-rounded nbw-transition-colors hover:nbw-bg-gray-100 nbw-text-gray-900 nbw-no-underline\"\n classList={{ 'nbw-bg-gray-200 nbw-font-semibold': !props.currentPostId }}\n onClick={(e) => {\n e.preventDefault();\n props.onHome();\n }}\n >\n Home\n </a>\n <div class=\"nbw-border-t nbw-border-gray-200 nbw-my-2\"></div>\n <For each={props.posts}>\n {(post) => (\n <a\n href={`#/post/${post.id}`}\n class=\"nbw-block nbw-px-4 nbw-py-2 nbw-rounded nbw-transition-colors hover:nbw-bg-gray-100 nbw-text-gray-700 nbw-no-underline nbw-text-sm\"\n classList={{ 'nbw-bg-gray-200 nbw-font-semibold': props.currentPostId === post.id }}\n onClick={(e) => {\n e.preventDefault();\n props.onNavigate(post.id);\n }}\n >\n {post.title}\n </a>\n )}\n </For>\n </nav>\n );\n};\n"],"names":["Navigation","props","e","preventDefault","onHome","each","posts","post","onNavigate","id","title","currentPostId"],"ignoreList":[],"sourceRoot":""}