@chainvibe/components 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.
Files changed (49) hide show
  1. package/README.md +1 -0
  2. package/dist/_virtual/config.js +4 -0
  3. package/dist/_virtual/core.js +4 -0
  4. package/dist/_virtual/debug.js +4 -0
  5. package/dist/_virtual/encode.js +4 -0
  6. package/dist/_virtual/helpers.js +4 -0
  7. package/dist/_virtual/index.js +5 -0
  8. package/dist/_virtual/index2.js +4 -0
  9. package/dist/_virtual/memory.js +4 -0
  10. package/dist/_virtual/number.js +4 -0
  11. package/dist/components/NotificationBox/NotificationBox.d.ts +41 -0
  12. package/dist/components/NotificationBox/NotificationBox.d.ts.map +1 -0
  13. package/dist/components/NotificationBox/NotificationBox.js +86 -0
  14. package/dist/components/NotificationBox/NotificationBox.module.css +1 -0
  15. package/dist/components/NotificationBox/NotificationBox.module.css.js +29 -0
  16. package/dist/components/NotificationBox/index.d.ts +3 -0
  17. package/dist/components/NotificationBox/index.d.ts.map +1 -0
  18. package/dist/components/NotificationBoxAmount/NotificationBoxAmount.d.ts +13 -0
  19. package/dist/components/NotificationBoxAmount/NotificationBoxAmount.d.ts.map +1 -0
  20. package/dist/components/NotificationBoxAmount/NotificationBoxAmount.js +45 -0
  21. package/dist/components/NotificationBoxAmount/NotificationBoxAmount.module.css +1 -0
  22. package/dist/components/NotificationBoxAmount/NotificationBoxAmount.module.css.js +11 -0
  23. package/dist/components/NotificationBoxAmount/index.d.ts +2 -0
  24. package/dist/components/NotificationBoxAmount/index.d.ts.map +1 -0
  25. package/dist/components/NotificationBoxStack/NotificationBoxStack.d.ts +14 -0
  26. package/dist/components/NotificationBoxStack/NotificationBoxStack.d.ts.map +1 -0
  27. package/dist/components/NotificationBoxStack/NotificationBoxStack.js +47 -0
  28. package/dist/components/NotificationBoxStack/index.d.ts +3 -0
  29. package/dist/components/NotificationBoxStack/index.d.ts.map +1 -0
  30. package/dist/components/utils/cn.d.ts +2 -0
  31. package/dist/components/utils/cn.d.ts.map +1 -0
  32. package/dist/components/utils/cn.js +4 -0
  33. package/dist/dev/utils.js +55 -0
  34. package/dist/hooks/useChainVibeStream.js +60 -0
  35. package/dist/index.js +10 -0
  36. package/dist/node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.js +111 -0
  37. package/dist/node_modules/compress-json/dist/config.js +16 -0
  38. package/dist/node_modules/compress-json/dist/core.js +92 -0
  39. package/dist/node_modules/compress-json/dist/debug.js +19 -0
  40. package/dist/node_modules/compress-json/dist/encode.js +58 -0
  41. package/dist/node_modules/compress-json/dist/helpers.js +27 -0
  42. package/dist/node_modules/compress-json/dist/index.js +38 -0
  43. package/dist/node_modules/compress-json/dist/memory.js +128 -0
  44. package/dist/node_modules/compress-json/dist/number.js +119 -0
  45. package/dist/node_modules/number-flow/dist/lite-BtgQ9jUv.js +435 -0
  46. package/dist/node_modules/sonner/dist/index.js +744 -0
  47. package/dist/types/events.d.ts +22 -0
  48. package/dist/types/events.d.ts.map +1 -0
  49. package/package.json +67 -0
@@ -0,0 +1,22 @@
1
+ import { ExtractAbiEventNames, Abi } from 'abitype';
2
+ export type ChainVibeEvent<TAbi extends Abi> = {
3
+ clientId: string;
4
+ timestamp: number;
5
+ data: {
6
+ id: string;
7
+ title: string;
8
+ message: string;
9
+ hash: `0x${string}` | null;
10
+ wallet: `0x${string}` | null;
11
+ tokenSymbol: string | null;
12
+ amount: string | null;
13
+ amountRaw: string | null;
14
+ amountUSD: string | null;
15
+ amountUSDRaw: string | null;
16
+ action: ExtractAbiEventNames<TAbi>;
17
+ scannerUrl?: string;
18
+ };
19
+ recentEvents?: ChainVibeEvent<TAbi>[];
20
+ globalEventsCount?: string;
21
+ };
22
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,cAAc,CAAC,IAAI,SAAS,GAAG,IAAI;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;QAC3B,MAAM,EAAE,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;QAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,MAAM,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACnC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,YAAY,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@chainvibe/components",
3
+ "version": "0.2.0",
4
+ "description": "Lean React component library",
5
+ "type": "module",
6
+ "exports": {
7
+ "./NotificationBoxStack": {
8
+ "types": "./dist/components/NotificationBoxStack/NotificationBoxStack.d.ts",
9
+ "import": "./dist/components/NotificationBoxStack/NotificationBoxStack.js"
10
+ },
11
+ "./NotificationBox": {
12
+ "types": "./dist/components/NotificationBox/NotificationBox.d.ts",
13
+ "import": "./dist/components/NotificationBox/NotificationBox.js"
14
+ },
15
+ "./NotificationBoxAmount": {
16
+ "types": "./dist/components/NotificationBoxAmount/NotificationBoxAmount.d.ts",
17
+ "import": "./dist/components/NotificationBoxAmount/NotificationBoxAmount.js"
18
+ },
19
+ "./useChainVibeStream": {
20
+ "types": "./dist/hooks/useChainVibeStream/useChainVibeStream.d.ts",
21
+ "import": "./dist/hooks/useChainVibeStream/useChainVibeStream.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "sideEffects": [
28
+ "**/*.css"
29
+ ],
30
+ "engines": {
31
+ "node": ">=18"
32
+ },
33
+ "scripts": {
34
+ "dev": "vite",
35
+ "build": "vite build",
36
+ "type-check": "tsc --noEmit",
37
+ "analyze-size": "tsx scripts/analyze-size.ts",
38
+ "prepublishOnly": "npm run build",
39
+ "release:patch": "npm version patch && npm publish",
40
+ "release:minor": "npm version minor && npm publish",
41
+ "release:major": "npm version major && npm publish"
42
+ },
43
+ "peerDependencies": {
44
+ "@number-flow/react": "0.5.11",
45
+ "react-dom": "^18.0.0 || ^19.0.0",
46
+ "react": "^18.0.0 || ^19.0.0",
47
+ "sonner": "2.0.7",
48
+ "viem": "2.45.1"
49
+ },
50
+ "dependencies": {
51
+ "abitype": "1.2.3"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "20.2.1",
55
+ "@types/react-dom": "19.2.3",
56
+ "@types/react": "19.2.3",
57
+ "@vitejs/plugin-react": "5.1.3",
58
+ "compress-json": "^3.4.0",
59
+ "esbuild": "0.27.3",
60
+ "react-dom": "19.2.3",
61
+ "react": "19.2.3",
62
+ "tsx": "4.21.0",
63
+ "typescript": "5.9.3",
64
+ "vite": "7.3.1",
65
+ "vite-plugin-dts": "4.5.4"
66
+ }
67
+ }