ain-ui 0.2.3 → 1.0.4

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 (56) hide show
  1. package/NOTICE +37 -0
  2. package/README.md +179 -77
  3. package/dist/agent.d.ts +131 -0
  4. package/dist/agent.js +822 -0
  5. package/dist/ainui.d.ts +15 -1
  6. package/dist/ainui.js +53 -10
  7. package/dist/basic.d.ts +5 -47
  8. package/dist/basic.js +22 -29
  9. package/dist/catalog/standard.gen.d.ts +5 -0
  10. package/dist/catalog/standard.gen.js +6 -0
  11. package/dist/catalog-v1.json +2560 -0
  12. package/dist/catalog.json +19917 -2061
  13. package/dist/chat.js +6 -7
  14. package/dist/expression.d.ts +23 -0
  15. package/dist/expression.js +222 -0
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.js +2 -0
  18. package/dist/macros.d.ts +12 -0
  19. package/dist/macros.js +57 -0
  20. package/dist/payment.js +6 -7
  21. package/dist/pickers.d.ts +158 -0
  22. package/dist/pickers.js +110 -0
  23. package/dist/protocol.d.ts +100 -0
  24. package/dist/protocol.js +232 -0
  25. package/dist/react/ain.d.ts +1 -0
  26. package/dist/react/ain.js +225 -0
  27. package/dist/react/catalog.d.ts +9 -0
  28. package/dist/react/catalog.js +23 -0
  29. package/dist/react/core.d.ts +91 -0
  30. package/dist/react/core.js +173 -0
  31. package/dist/react/functions.d.ts +2 -0
  32. package/dist/react/functions.js +29 -0
  33. package/dist/react/standard/composites.d.ts +1 -0
  34. package/dist/react/standard/composites.js +110 -0
  35. package/dist/react/standard/data.d.ts +1 -0
  36. package/dist/react/standard/data.js +481 -0
  37. package/dist/react/standard/feedback.d.ts +11 -0
  38. package/dist/react/standard/feedback.js +111 -0
  39. package/dist/react/standard/inputs.d.ts +5 -0
  40. package/dist/react/standard/inputs.js +467 -0
  41. package/dist/react/standard/layout.d.ts +5 -0
  42. package/dist/react/standard/layout.js +104 -0
  43. package/dist/react/standard/media.d.ts +33 -0
  44. package/dist/react/standard/media.js +208 -0
  45. package/dist/react/standard/rich.d.ts +1 -0
  46. package/dist/react/standard/rich.js +146 -0
  47. package/dist/react/standard/text.d.ts +9 -0
  48. package/dist/react/standard/text.js +209 -0
  49. package/dist/react/surface.d.ts +46 -0
  50. package/dist/react/surface.js +134 -0
  51. package/dist/react.d.ts +3 -35
  52. package/dist/react.js +3 -272
  53. package/dist/renderer.d.ts +1 -1
  54. package/dist/renderer.js +299 -4
  55. package/dist/styles.css +805 -20
  56. package/package.json +28 -11
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ain-ui",
3
- "version": "0.2.3",
4
- "description": "AIN-UI: A2UI and AG-UI extensions for grids, files, uploads and x402 payments",
3
+ "version": "1.0.4",
4
+ "description": "AIN-UI: A2UI 1.0 components, renderers and agent tools \u2014 standard catalog, files, uploads and x402 payments",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -11,7 +11,8 @@
11
11
  "files": [
12
12
  "dist",
13
13
  "README.md",
14
- "LICENSE"
14
+ "LICENSE",
15
+ "NOTICE"
15
16
  ],
16
17
  "exports": {
17
18
  ".": {
@@ -35,20 +36,35 @@
35
36
  "import": "./dist/x402.js",
36
37
  "default": "./dist/x402.js"
37
38
  },
38
- "./catalog.json": "./dist/catalog.json"
39
+ "./catalog.json": "./dist/catalog.json",
40
+ "./agent": {
41
+ "types": "./dist/agent.d.ts",
42
+ "import": "./dist/agent.js",
43
+ "default": "./dist/agent.js"
44
+ },
45
+ "./macros": {
46
+ "types": "./dist/macros.d.ts",
47
+ "import": "./dist/macros.js",
48
+ "default": "./dist/macros.js"
49
+ },
50
+ "./catalog-v1.json": "./dist/catalog-v1.json"
39
51
  },
40
52
  "scripts": {
41
- "build": "tsc && cp src/styles.css dist/styles.css && node scripts/catalog.mjs",
42
- "test": "tsx --test test/*.test.ts",
43
- "prepublishOnly": "npm run build && npm test"
53
+ "build": "node scripts/standard.mjs && tsc && node scripts/styles.mjs && node scripts/catalog.mjs",
54
+ "test": "node scripts/standard.mjs && tsx --test test/*.test.ts test/*.test.tsx",
55
+ "prepublishOnly": "npm run build && npm test",
56
+ "generate": "node scripts/standard.mjs",
57
+ "test:built": "tsx --test test/*.test.ts test/*.test.tsx"
44
58
  },
45
59
  "dependencies": {
46
- "@a2ui/react": "0.11.1",
47
- "@a2ui/web_core": "0.11.0",
60
+ "@a2ui/agent": "^0.2.1",
61
+ "@a2ui/markdown-it": "^0.2.4",
62
+ "@a2ui/react": "^0.16.1",
63
+ "@a2ui/web_core": "^0.16.1",
48
64
  "@x402/core": "~2.14.0",
49
65
  "@x402/evm": "~2.14.0",
50
- "zod": "^3.25.76",
51
- "@a2ui/markdown-it": "0.1.2"
66
+ "lucide": "^1.0.0",
67
+ "zod": "^3.25.76"
52
68
  },
53
69
  "peerDependencies": {
54
70
  "react": "^18.0.0 || ^19.0.0",
@@ -60,6 +76,7 @@
60
76
  "@types/react": "^19",
61
77
  "@types/react-dom": "^19",
62
78
  "jsdom": "^26.1.0",
79
+ "katex": "^0.19.1",
63
80
  "react": "^19.2.0",
64
81
  "react-dom": "^19.2.0",
65
82
  "tsx": "^4.22.5",