nostr-components 0.2.0 → 0.2.1

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.
@@ -1,10 +1,10 @@
1
- import { default as NostrProfileBadge } from './nostr-profile-badge/nostr-profile-badge.ts';
2
- import { default as NostrPost } from './nostr-post/nostr-post.ts';
3
- import { default as NostrProfile } from './nostr-profile/nostr-profile.ts';
4
- import { default as NostrFollowButton } from './nostr-follow-button/nostr-follow-button.ts';
5
- import { default as NostrZap } from './nostr-zap/nostr-zap.ts';
6
- import { default as NostrComment } from './nostr-comment/nostr-comment.ts';
7
- import { default as NostrDm } from './nostr-dm/nostr-dm.ts';
8
- import { default as NostrLiveChat } from './nostr-live-chat/nostr-live-chat.ts';
9
- import { default as NostrLike } from './nostr-like/nostr-like.ts';
10
- export { NostrProfileBadge, NostrPost, NostrProfile, NostrFollowButton, NostrZap, NostrComment, NostrDm, NostrLiveChat, NostrLike };
1
+ export { default as NostrProfileBadge } from './nostr-profile-badge/nostr-profile-badge.ts';
2
+ export { default as NostrPost } from './nostr-post/nostr-post.ts';
3
+ export { default as NostrProfile } from './nostr-profile/nostr-profile.ts';
4
+ export { default as NostrFollowButton } from './nostr-follow-button/nostr-follow-button.ts';
5
+ export { default as NostrZap } from './nostr-zap/nostr-zap.ts';
6
+ export { default as NostrComment } from './nostr-comment/nostr-comment.ts';
7
+ export { default as NostrDm } from './nostr-dm/nostr-dm.ts';
8
+ export { default as NostrLiveChat } from './nostr-live-chat/nostr-live-chat.ts';
9
+ export { default as NostrLike } from './nostr-like/nostr-like.ts';
10
+ export declare function init(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-components",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Embed Nostr anywhere on the internet, a Zap Button for every webpage",
6
6
  "keywords": [
@@ -33,6 +33,9 @@
33
33
  "require": "./dist/nostr-components.umd.js",
34
34
  "types": "./dist/index.d.ts"
35
35
  },
36
+ "./jsx": {
37
+ "types": "./dist/jsx.d.ts"
38
+ },
36
39
  "./themes": {
37
40
  "import": "./dist/themes.css",
38
41
  "default": "./dist/themes.css"
@@ -45,7 +48,42 @@
45
48
  "import": "./dist/themes/light.css",
46
49
  "default": "./dist/themes/light.css"
47
50
  },
48
- "./components/*": "./dist/components/*.es.js"
51
+ "./components/nostr-like": {
52
+ "import": "./dist/components/nostr-like.es.js",
53
+ "types": "./dist/components/nostr-like.d.ts"
54
+ },
55
+ "./components/nostr-zap": {
56
+ "import": "./dist/components/nostr-zap.es.js",
57
+ "types": "./dist/components/nostr-zap.d.ts"
58
+ },
59
+ "./components/nostr-profile": {
60
+ "import": "./dist/components/nostr-profile.es.js",
61
+ "types": "./dist/components/nostr-profile.d.ts"
62
+ },
63
+ "./components/nostr-profile-badge": {
64
+ "import": "./dist/components/nostr-profile-badge.es.js",
65
+ "types": "./dist/components/nostr-profile-badge.d.ts"
66
+ },
67
+ "./components/nostr-post": {
68
+ "import": "./dist/components/nostr-post.es.js",
69
+ "types": "./dist/components/nostr-post.d.ts"
70
+ },
71
+ "./components/nostr-follow-button": {
72
+ "import": "./dist/components/nostr-follow-button.es.js",
73
+ "types": "./dist/components/nostr-follow-button.d.ts"
74
+ },
75
+ "./components/nostr-comment": {
76
+ "import": "./dist/components/nostr-comment.es.js",
77
+ "types": "./dist/components/nostr-comment.d.ts"
78
+ },
79
+ "./components/nostr-dm": {
80
+ "import": "./dist/components/nostr-dm.es.js",
81
+ "types": "./dist/components/nostr-dm.d.ts"
82
+ },
83
+ "./components/nostr-live-chat": {
84
+ "import": "./dist/components/nostr-live-chat.es.js",
85
+ "types": "./dist/components/nostr-live-chat.d.ts"
86
+ }
49
87
  },
50
88
  "files": [
51
89
  "LICENSE",
@@ -57,7 +95,8 @@
57
95
  "build:esm": "vite build --config vite.config.esm.ts",
58
96
  "build:umd": "vite build --config vite.config.umd.ts",
59
97
  "build:themes": "node scripts/build-themes.js",
60
- "build": "npm run build:esm && npm run build:umd && npm run build:themes",
98
+ "build:assets": "node scripts/copy-assets.js",
99
+ "build": "npm run build:esm && npm run build:umd && npm run build:themes && npm run build:assets",
61
100
  "preview": "vite preview",
62
101
  "storybook": "storybook dev -p 6006",
63
102
  "build-storybook": "cross-env STORYBOOK_ENV=production storybook build && npm run build:themes",